public class CloudDataNode
extends java.lang.Object
implements com.github.ambry.clustermap.DataNodeId
DataNodeId
implementation to use within VCR cluster.Constructor and Description |
---|
CloudDataNode(com.github.ambry.config.CloudConfig cloudConfig,
com.github.ambry.config.ClusterMapConfig clusterMapConfig)
Instantiate an CloudDataNode object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDatacenterName() |
java.lang.String |
getHostname() |
int |
getPort() |
com.github.ambry.network.Port |
getPortToConnectTo() |
java.lang.String |
getRackId() |
org.json.JSONObject |
getSnapshot() |
int |
getSSLPort() |
com.github.ambry.clustermap.HardwareState |
getState() |
long |
getXid() |
boolean |
hasSSLPort() |
java.lang.String |
toString() |
public CloudDataNode(com.github.ambry.config.CloudConfig cloudConfig, com.github.ambry.config.ClusterMapConfig clusterMapConfig)
cloudConfig
- the CloudConfig
to use.clusterMapConfig
- the ClusterMapConfig
to use.public java.lang.String getHostname()
getHostname
in interface com.github.ambry.clustermap.DataNodeId
public int getPort()
getPort
in interface com.github.ambry.clustermap.DataNodeId
public int getSSLPort()
getSSLPort
in interface com.github.ambry.clustermap.DataNodeId
public boolean hasSSLPort()
hasSSLPort
in interface com.github.ambry.clustermap.DataNodeId
public com.github.ambry.network.Port getPortToConnectTo()
getPortToConnectTo
in interface com.github.ambry.clustermap.DataNodeId
public com.github.ambry.clustermap.HardwareState getState()
getState
in interface com.github.ambry.clustermap.DataNodeId
public java.lang.String getDatacenterName()
getDatacenterName
in interface com.github.ambry.clustermap.DataNodeId
public java.lang.String getRackId()
getRackId
in interface com.github.ambry.clustermap.DataNodeId
public long getXid()
getXid
in interface com.github.ambry.clustermap.DataNodeId
public org.json.JSONObject getSnapshot()
getSnapshot
in interface com.github.ambry.clustermap.Resource
public java.lang.String toString()
toString
in class java.lang.Object