Class JPPFNodeState

java.lang.Object
org.jppf.management.JPPFNodeState
All Implemented Interfaces:
Serializable

public class JPPFNodeState extends Object implements Serializable
Instances of this class represent the state of a node. They are used as the result of node JMX monitoring request.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • JPPFNodeState

      public JPPFNodeState()
  • Method Details

    • getNbTasksExecuted

      public int getNbTasksExecuted()
      Get the number of tasks executed by the node.
      Returns:
      the number of tasks as an int.
    • setNbTasksExecuted

      public void setNbTasksExecuted(int nbTasksExecuted)
      Set the number of tasks executed by the node.
      Parameters:
      nbTasksExecuted - the number of tasks as an int.
    • getConnectionStatus

      public JPPFNodeState.ConnectionState getConnectionStatus()
      Get the status of the connection between the node and the server.
      Returns:
      the connection status.
    • setConnectionStatus

      public void setConnectionStatus(JPPFNodeState.ConnectionState connectionStatus)
      Set the status of the connection between the node and the server.
      Parameters:
      connectionStatus - the connection status.
    • getExecutionStatus

      public JPPFNodeState.ExecutionState getExecutionStatus()
      Get the latest execution status of the node.
      Returns:
      the execution status.
    • setExecutionStatus

      public void setExecutionStatus(JPPFNodeState.ExecutionState executionStatus)
      Get the latest execution status of the node.
      Parameters:
      executionStatus - the execution status.
    • getThreadPoolSize

      public int getThreadPoolSize()
      Get the size of the node's thread pool.
      Returns:
      the size as an int.
    • setThreadPoolSize

      public void setThreadPoolSize(int threadPoolSize)
      Set the size of the node's thread pool.
      Parameters:
      threadPoolSize - the size as an int.
    • getCpuTime

      public long getCpuTime()
      Get the total cpu time used by the task processing threads.
      Returns:
      the cpu time in milliseconds.
    • setCpuTime

      public void setCpuTime(long cpuTime)
      Set the total cpu time used by the task processing threads.
      Parameters:
      cpuTime - the cpu time in milliseconds.
    • getThreadPriority

      public int getThreadPriority()
      Get the priority of the threads in the pool.
      Returns:
      the priority as an int value.
    • setThreadPriority

      public void setThreadPriority(int threadPriority)
      Set the priority of the threads in the pool.
      Parameters:
      threadPriority - the priority as an int value.
    • getPendingAction

      public NodePendingAction getPendingAction()
      Get the current pending action for the node.
      Returns:
      a NodePendingAction enum element.
    • setPendingAction

      public void setPendingAction(NodePendingAction pendingAction)
      Set the current pending action for the node.
      Parameters:
      pendingAction - a NodePendingAction enum element.
    • copy

      public JPPFNodeState copy()
      Make a copy of this node state.
      Returns:
      a JPPFNodeState instance.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object