Package org.jppf.node

Interface Node

All Superinterfaces:
Runnable

public interface Node extends Runnable
Interface for a node that provides information about its activity.
Author:
Laurent Cohen
  • Method Details

    • getUuid

      String getUuid()
      Get this node's UUID.
      Returns:
      the uuid as a string.
    • getSystemInformation

      JPPFSystemInformation getSystemInformation()
      Get the system information for this node.
      Returns:
      a JPPFSystemInformation instance.
    • isLocal

      boolean isLocal()
      Determine whether this node is local to another component.
      Returns:
      true if this node is local, false otherwise.
    • resetTaskClassLoader

      ClassLoader resetTaskClassLoader(Object... params)
      Reset the current task class loader if any is present (i.e. if a job is being executed), without reconnecting to the server.
      Parameters:
      params - a (possibly empty) set of arbitrary parameters to propagate to the class loader.
      Returns:
      the newly created class loader, or null if none could be created at this time. This class loader can be safely cast to an AbstractJPPFClassLoader.
    • isOffline

      boolean isOffline()
      Determine whether this node is running in offline mode.
      Returns:
      true if this node is offline, false otherwise.
    • isMasterNode

      boolean isMasterNode()
      Determine whether this node is a 'master' node for the provisioning features.
      Returns:
      true if this node is a master, false otherwise.
    • isSlaveNode

      boolean isSlaveNode()
      Determine whether this node is a 'slave' node for the provisioning features.
      Returns:
      true if this node is a slave, false otherwise.
    • getMasterNodeUuid

      String getMasterNodeUuid()
      Get the uuid of the node who this node is a slave of.
      Returns:
      the uuid of this node's master node, or null if this node is not a slave.
      Since:
      6.0
    • isDotnetCapable

      @Deprecated default boolean isDotnetCapable()
      Deprecated.
      the .Net port is no longer part of JPPF, there is no replacement.
      Determine whether this node can execute .Net tasks.
      Returns:
      true if this node can execute .Net tasks, false otherwise.
    • isAndroid

      @Deprecated default boolean isAndroid()
      Deprecated.
      the Android port is no longer part of JPPF, there is no replacement.
      Determine whether this node is an Android node.
      Returns:
      true if this node runs on Android, false otherwise.
    • getConfiguration

      TypedProperties getConfiguration()
      Get the configuration of this node.
      Returns:
      the node configuration as a TypedProperties instance.
    • getManagementInfo

      JPPFManagementInfo getManagementInfo()
      Get the management information for this node.
      Returns:
      a JPPFManagementInfo object.
    • getExecutedTaskCount

      int getExecutedTaskCount()
      Get the total number of tasks executed.
      Returns:
      the number of tasks as an int.