Class AsyncResourceRequest

java.lang.Object
org.jppf.server.nio.classloader.AsyncResourceRequest

public class AsyncResourceRequest extends Object
Instances of this class represent a class loading request from a node to a client channel.
  • Constructor Details

    • AsyncResourceRequest

      public AsyncResourceRequest(AsyncNodeClassContext context, org.jppf.classloader.JPPFResourceWrapper resource)
      Initialize this request with the specified node channel and resource.
      Parameters:
      context - the node class loader channel.
      resource - the resource to lookup in the client.
  • Method Details

    • getContext

      public AsyncNodeClassContext getContext()
      Get the node class loader channel.
      Returns:
      a AsyncNodeClassContext instance.
    • getResource

      public org.jppf.classloader.JPPFResourceWrapper getResource()
      Get the resource to lookup in the client.
      Returns:
      a JPPFResourceWrapper instance.
    • setResource

      public void setResource(org.jppf.classloader.JPPFResourceWrapper resource)
      Set the resource to lookup in the client.
      Parameters:
      resource - a JPPFResourceWrapper instance.
    • toString

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

      public long getRequestStartTime()
      Get the time at which this request was submitted.
      Returns:
      the time in nanoseconds.
    • setRequestStartTime

      public void setRequestStartTime(long requestStartTime)
      Set the time at which this request was submitted.
      Parameters:
      requestStartTime - the time in nanoseconds.