Interface JPPFClientConnection

All Superinterfaces:
AutoCloseable, ClientConnectionStatusHandler
All Known Implementing Classes:
ChannelWrapperLocal, JPPFClientConnectionImpl

public interface JPPFClientConnection extends ClientConnectionStatusHandler, AutoCloseable
Interface for a client connection to a JPPF driver.
Author:
Laurent Cohen
  • Method Details

    • getPriority

      int getPriority()
      Get the priority assigned to this connection.
      Returns:
      a priority as an int value.
    • close

      void close()
      Shutdown this connection and release all the resources it is using.
      Specified by:
      close in interface AutoCloseable
    • isClosed

      boolean isClosed()
      Determine whether this connection was closed.
      Returns:
      true if the connection is closed, false otherwise.
    • getName

      String getName()
      Get the name assigned to this client connection.
      Returns:
      the name as a string.
    • isSSLEnabled

      boolean isSSLEnabled()
      Determines if this connection is over SSL.
      Returns:
      true if this is an SSL connection, false otherwise.
    • getHost

      String getHost()
      Get the driver's host name or ip address.
      Returns:
      the host as a stirng.
    • getPort

      int getPort()
      Get the port number on which the dirver is listeneing for connections.
      Returns:
      the port number as an int.
    • getDriverUuid

      String getDriverUuid()
      Get the unique identifier of the remote driver.
      Returns:
      the uuid as a string.
    • getSystemInfo

      org.jppf.management.JPPFSystemInformation getSystemInfo()
      Get the system information for the remote driver this connection refers to.
      Returns:
      a JPPFSystemInformation instance.
    • getConnectionUuid

      String getConnectionUuid()
      Get the unique ID for this connection and its two channels.
      Returns:
      the id as a string.
    • getConnectionPool

      JPPFConnectionPool getConnectionPool()
      Get the pool this connection belongs to.
      Returns:
      a JPPFConnectionPool instance.
    • isLocal

      default boolean isLocal()
      Determine whether this connection is local, that is, whether it executes jobs in the local JVM.
      Returns:
      true if this connection is local, false otherwise.