org.jppf.classloader
Class AbstractJPPFClassLoaderLifeCycle.AbstractResourceRequest

java.lang.Object
  extended by org.jppf.classloader.AbstractJPPFClassLoaderLifeCycle.AbstractResourceRequest
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
JPPFClassLoader.ResourceRequest, JPPFLocalClassLoader.ResourceRequest
Enclosing class:
AbstractJPPFClassLoaderLifeCycle

protected abstract class AbstractJPPFClassLoaderLifeCycle.AbstractResourceRequest
extends Object
implements Runnable

Encapsulates a remote resource request submitted asynchronously via the single-thread executor.


Field Summary
protected  JPPFResourceWrapper request
          The request to send.
protected  JPPFResourceWrapper response
          The response received.
protected  Throwable throwable
          Used to collect any throwable raised during communication with the server.
 
Constructor Summary
AbstractJPPFClassLoaderLifeCycle.AbstractResourceRequest(JPPFResourceWrapper request)
          Initialize with the specified request.
 
Method Summary
 JPPFResourceWrapper getResponse()
          Get the response received.
 Throwable getThrowable()
          Get the throwable eventually raised during communication with the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

throwable

protected Throwable throwable
Used to collect any throwable raised during communication with the server.


request

protected JPPFResourceWrapper request
The request to send.


response

protected JPPFResourceWrapper response
The response received.

Constructor Detail

AbstractJPPFClassLoaderLifeCycle.AbstractResourceRequest

public AbstractJPPFClassLoaderLifeCycle.AbstractResourceRequest(JPPFResourceWrapper request)
Initialize with the specified request.

Parameters:
request - the request to send.
Method Detail

getThrowable

public Throwable getThrowable()
Get the throwable eventually raised during communication with the server.

Returns:
a Throwable instance.

getResponse

public JPPFResourceWrapper getResponse()
                                throws Exception
Get the response received.

Returns:
a JPPFResourceWrapper instance.
Throws:
Exception - if any error occurs.


Copyright © 2005-2010 JPPF Team.