Class StorageLocation
- java.lang.Object
-
- es.bsc.dataclay.util.MgrObject<StorageLocationID>
-
- es.bsc.dataclay.util.management.metadataservice.StorageLocation
-
public final class StorageLocation extends MgrObject<StorageLocationID>
This class represents the information of a StorageLocation.
-
-
Constructor Summary
Constructors Constructor Description StorageLocation()
Empty constructor of the StorageLocationStorageLocation(String newhostname, String newname, int newtcpport)
StorageLocation specification constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object t)
This operation allows to compare this object with other object.String
getHostname()
Get the StorageLocation::hostnameString
getName()
Get the StorageLocation::nameint
getStorageTCPPort()
Get the StorageLocation::storageTCPPortint
hashCode()
This operation allows to compare with other Object by setting its Java default Hashcode to a constant.void
setHostname(String newhostname)
Set the StorageLocation::hostnamevoid
setName(String newname)
Set the StorageLocation::namevoid
setStorageTCPPort(int newstoragePort)
Set the StorageLocation::storageTCPPortString
toString()
-
Methods inherited from class es.bsc.dataclay.util.MgrObject
getDataClayID, setDataClayID
-
-
-
-
Method Detail
-
getHostname
public String getHostname()
Get the StorageLocation::hostname- Returns:
- the hostname
-
setHostname
public void setHostname(String newhostname)
Set the StorageLocation::hostname- Parameters:
newhostname
- the hostname to set
-
getName
public String getName()
Get the StorageLocation::name- Returns:
- the name
-
setName
public void setName(String newname)
Set the StorageLocation::name- Parameters:
newname
- the name to set
-
getStorageTCPPort
public int getStorageTCPPort()
Get the StorageLocation::storageTCPPort- Returns:
- the port
-
setStorageTCPPort
public void setStorageTCPPort(int newstoragePort)
Set the StorageLocation::storageTCPPort- Parameters:
newstoragePort
- the port to set
-
equals
public boolean equals(Object t)
This operation allows to compare this object with other object.
-
-