Class ClusterInteractionRequest


  • public class ClusterInteractionRequest
    extends Object
    Requests to the cluster heartbeat, that is, signals to the cluster database. If this is a request to force the server on a different node to be lost, the cluster name, node name and the running since time from the corresponding server will be provided within the request.
    • Field Detail

      • clusterName

        protected final String clusterName
        The name of the cluster if this is a force lost request for the server within this cluster, null otherwise.
      • nodeName

        protected final String nodeName
        The name of the server node if this is a force lost request, null otherwise.
      • runningSince

        protected final long runningSince
        The time since when the server node to be forcibly lost has been running since, Long.MIN_VALUE otherwise.
    • Constructor Detail

      • ClusterInteractionRequest

        public ClusterInteractionRequest​(ClusterInteractionRequest.Operation operation)
        Creates a new request with the designated operation.
        Parameters:
        operation - The operation which to perform by the cluster heartbeat.
      • ClusterInteractionRequest

        public ClusterInteractionRequest​(String clusterName,
                                         String nodeName,
                                         long runningSince)
        Creates a new force lost request for the designated (different) server node.
        Parameters:
        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.
    • Method Detail

      • getOperation

        public ClusterInteractionRequest.Operation getOperation()
        Gets the operation which to perform by the cluster heartbeat.
        Returns:
        The operation which to perform by the cluster heartbeat.
      • getClusterName

        public String getClusterName()
        Gets the name of the cluster if this is a force lost request for the server within this cluster, null otherwise.
        Returns:
        The name of the cluster if this is a force lost request for the server within this cluster, null otherwise.
      • getNodeName

        public String getNodeName()
        Gets the name of the server node if this is a force lost request, null otherwise.
        Returns:
        The name of the server node if this is a force lost request, null otherwise.
      • getRunningSince

        public long getRunningSince()
        Gets the time since when the server node to be forcibly lost has been running since, Long.MIN_VALUE otherwise.
        Returns:
        The time since when the server node to be forcibly lost has been running since, Long.MIN_VALUE otherwise.