Interface ClassServerDelegate

All Superinterfaces:
AutoCloseable, Runnable
All Known Implementing Classes:
AbstractClassServerDelegate

public interface ClassServerDelegate extends Runnable
Interface for all class server clients.
Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the name of this delegate.
    org.jppf.comm.socket.SocketWrapper
    Get the socket client uses to communicate over a socket connection.
    void
    Initialize the connection.
    void
    Initialize the underlying socket connection of this connection handler.
    boolean
    Determine whether this connection handler is closed.
    void
    Set the name of this delegate.

    Methods inherited from interface java.lang.AutoCloseable

    close

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • getName

      String getName()
      Get the name of this delegate.
      Returns:
      the name as a string.
    • setName

      void setName(String name)
      Set the name of this delegate.
      Parameters:
      name - the name as a string.
    • init

      void init() throws Exception
      Initialize the connection.
      Throws:
      Exception - if an error is raised while initializing the connection.
    • initSocketClient

      void initSocketClient() throws Exception
      Initialize the underlying socket connection of this connection handler.
      Throws:
      Exception - if an error is raised during initialization.
    • getSocketClient

      org.jppf.comm.socket.SocketWrapper getSocketClient() throws Exception
      Get the socket client uses to communicate over a socket connection.
      Returns:
      a SocketWrapper instance.
      Throws:
      Exception - if the connection has failed or timed out.
    • isClosed

      boolean isClosed()
      Determine whether this connection handler is closed.
      Returns:
      true if this connection handler is closed, false otherwise.