Package org.jppf.server.nio.classloader
Class AsyncResourceRequest
java.lang.Object
org.jppf.server.nio.classloader.AsyncResourceRequest
Instances of this class represent a class loading request from a node to a client channel.
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncResourceRequest(AsyncNodeClassContext context, org.jppf.classloader.JPPFResourceWrapper resource) Initialize this request with the specified node channel and resource. -
Method Summary
Modifier and TypeMethodDescriptionGet the node class loader channel.longGet the time at which this request was submitted.org.jppf.classloader.JPPFResourceWrapperGet the resource to lookup in the client.voidsetRequestStartTime(long requestStartTime) Set the time at which this request was submitted.voidsetResource(org.jppf.classloader.JPPFResourceWrapper resource) Set the resource to lookup in the client.toString()
-
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
Get the node class loader channel.- Returns:
- a
AsyncNodeClassContextinstance.
-
getResource
public org.jppf.classloader.JPPFResourceWrapper getResource()Get the resource to lookup in the client.- Returns:
- a
JPPFResourceWrapperinstance.
-
setResource
public void setResource(org.jppf.classloader.JPPFResourceWrapper resource) Set the resource to lookup in the client.- Parameters:
resource- aJPPFResourceWrapperinstance.
-
toString
-
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.
-