public class CloudServer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CloudServer.ServerType |
Constructor and Description |
---|
CloudServer(java.lang.String id,
java.lang.String displayId,
CloudPod pod,
int index,
java.lang.String address,
int port,
boolean isSSL,
CloudServer.ServerType isStatic,
boolean isAllowExternal) |
Modifier and Type | Method and Description |
---|---|
static int |
decode(int code) |
void |
disable() |
void |
disableSoft() |
void |
enable() |
java.lang.String |
getAddress()
Gets the address
|
CloudCluster |
getCluster()
Returns the cluster.
|
<T> T |
getData(java.lang.Class<T> cl) |
java.lang.String |
getDebugId() |
java.lang.String |
getDisplayId() |
java.lang.String |
getId()
Gets the unique server identifier.
|
java.lang.String |
getIdWithinCluster()
Returns the server's id within the cluster
|
java.lang.String |
getIdWithinDomain()
Returns the server's id within all Resin clusters
|
int |
getIndex()
Returns the index within the pod.
|
java.lang.String |
getIpAddress() |
CloudPod |
getPod()
Returns the pod
|
int |
getPort()
Gets the port
|
CloudServerState |
getState()
Returns the servers current state.
|
CloudSystem |
getSystem()
Returns the system.
|
TriadOwner |
getTriadOwner()
Returns the pod owner
|
boolean |
isAllowExternal()
True for external-address configured servers.
|
boolean |
isExternal()
True for external-address configured servers.
|
boolean |
isSelf()
True for the active server
|
boolean |
isSSL() |
boolean |
isStatic()
True for statically configured servers.
|
boolean |
isTriad()
True if this server is a triad.
|
void |
onHeartbeatStart() |
void |
onHeartbeatStop() |
void |
overrideState(CloudServerState state) |
void |
putData(java.lang.Object value) |
<T> T |
putDataIfAbsent(T value) |
<T> T |
removeData(java.lang.Class<T> cl) |
void |
setSelf(boolean isSelf)
Sets true for the active server.
|
void |
setState(CloudServerState state) |
java.lang.String |
toString() |
public CloudServer(java.lang.String id, java.lang.String displayId, CloudPod pod, int index, java.lang.String address, int port, boolean isSSL, CloudServer.ServerType isStatic, boolean isAllowExternal)
public final java.lang.String getId()
public final java.lang.String getDisplayId()
public final java.lang.String getDebugId()
public final int getIndex()
public final java.lang.String getIdWithinCluster()
public final java.lang.String getIdWithinDomain()
public boolean isTriad()
public boolean isStatic()
public boolean isExternal()
public boolean isAllowExternal()
public boolean isSelf()
public void setSelf(boolean isSelf)
public CloudServerState getState()
public CloudPod getPod()
public CloudCluster getCluster()
public CloudSystem getSystem()
public TriadOwner getTriadOwner()
public final java.lang.String getAddress()
public final java.lang.String getIpAddress()
public final int getPort()
public boolean isSSL()
public void onHeartbeatStart()
public void onHeartbeatStop()
public void setState(CloudServerState state)
public void overrideState(CloudServerState state)
public void disable()
public void disableSoft()
public void enable()
public void putData(java.lang.Object value)
public <T> T putDataIfAbsent(T value)
public <T> T getData(java.lang.Class<T> cl)
public <T> T removeData(java.lang.Class<T> cl)
public java.lang.String toString()
toString
in class java.lang.Object
public static int decode(int code)