public class ClusterInteractionRequest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterInteractionRequest.Operation
The operations which can be requested to be performed by the cluster
heartbeat.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
clusterName
The name of the cluster if this is a force lost request for the server
within this cluster,
null otherwise. |
protected java.lang.String |
nodeName
The name of the server node if this is a force lost request,
null otherwise. |
protected ClusterInteractionRequest.Operation |
operation
The operation which to perform by the cluster heartbeat.
|
protected long |
runningSince
The time since when the server node to be forcibly lost has been running
since,
Long.MIN_VALUE otherwise. |
| Constructor and Description |
|---|
ClusterInteractionRequest(ClusterInteractionRequest.Operation operation)
Creates a new request with the designated operation.
|
ClusterInteractionRequest(java.lang.String clusterName,
java.lang.String nodeName,
long runningSince)
Creates a new force lost request for the designated (different) server node.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClusterName()
Gets the name of the cluster if this is a force lost request for the server
within this cluster,
null otherwise. |
java.lang.String |
getNodeName()
Gets the name of the server node if this is a force lost request,
null otherwise. |
ClusterInteractionRequest.Operation |
getOperation()
Gets the operation which to perform by the cluster heartbeat.
|
long |
getRunningSince()
Gets the time since when the server node to be forcibly lost has been
running since,
Long.MIN_VALUE otherwise. |
protected final ClusterInteractionRequest.Operation operation
protected final java.lang.String clusterName
null otherwise.protected final java.lang.String nodeName
null otherwise.protected final long runningSince
Long.MIN_VALUE otherwise.public ClusterInteractionRequest(ClusterInteractionRequest.Operation operation)
operation - The operation which to perform by the cluster heartbeat.public ClusterInteractionRequest(java.lang.String clusterName,
java.lang.String nodeName,
long runningSince)
clusterName - The name of the cluster of the server node to request a
force lost of.nodeName - The name of the server node to request a force lost of.runningSince - The time since when the server node has been running.public ClusterInteractionRequest.Operation getOperation()
public java.lang.String getClusterName()
null otherwise.null otherwise.public java.lang.String getNodeName()
null otherwise.null otherwise.public long getRunningSince()
Long.MIN_VALUE otherwise.Long.MIN_VALUE otherwise.