Class AsyncLocalClassLoaderConnection

All Implemented Interfaces:
ClassLoaderConnection<AsyncLocalNodeClassloaderContext>, NodeConnection<AsyncLocalNodeClassloaderContext>

public class AsyncLocalClassLoaderConnection extends AbstractClassLoaderConnection<AsyncLocalNodeClassloaderContext>
Author:
Laurent Cohen
  • Field Details

    • nodeLock

      protected final org.jppf.utils.concurrent.ThreadSynchronization nodeLock
      Object used to synchronize threads when reading/writing the node message.
    • serverLock

      protected final org.jppf.utils.concurrent.ThreadSynchronization serverLock
      Object used to synchronize threads when reading/writing the server message.
  • Constructor Details

    • AsyncLocalClassLoaderConnection

      public AsyncLocalClassLoaderConnection(String uuid, AsyncLocalNodeClassloaderContext channel)
      Initialize this connection with the specified channel.
      Parameters:
      uuid - this node's uuid.
      channel - the communication channel with the driver.
  • Method Details

    • init

      public void init() throws Exception
      Description copied from interface: NodeConnection
      Initialize this connection.
      Throws:
      Exception - if any error occurs.
    • close

      public void close()
      Description copied from interface: NodeConnection
      Close this connection.
    • getNodeLock

      public org.jppf.utils.concurrent.ThreadSynchronization getNodeLock()
      Get the object used to synchronize threads when reading/writing the node resource.
      Returns:
      a ThreadSynchronization instance.
    • getServerLock

      public org.jppf.utils.concurrent.ThreadSynchronization getServerLock()
      Get the object used to synchronize threads when reading/writing the server resource.
      Returns:
      a ThreadSynchronization instance.
    • toString

      public String toString()
      Overrides:
      toString in class AbstractClassLoaderConnection<AsyncLocalNodeClassloaderContext>