org.jppf.jca.util
Class JPPFAccessorImpl

java.lang.Object
  extended by org.jppf.jca.util.JPPFAccessorImpl
All Implemented Interfaces:
JPPFAccessor
Direct Known Subclasses:
JPPFConnectionFactory, JPPFConnectionImpl, JPPFManagedConnection, JPPFManagedConnectionFactory, JPPFResourceAdapter

public abstract class JPPFAccessorImpl
extends Object
implements JPPFAccessor

Utility class used to provide access to JPPF components.

Author:
Laurent Cohen

Field Summary
protected  JPPFJcaClient jppfClient
          The JPPF client used to submit tasks.
protected  PrintWriter logWriter
          The log writer for this object.
 
Constructor Summary
protected JPPFAccessorImpl()
          Default constructor.
 
Method Summary
 JPPFJcaClient getJppfClient()
          Get the JPPF client used to submit tasks.
 PrintWriter getLogWriter()
          Get the log writer for this object.
 void setJppfClient(JPPFJcaClient jppfClient)
          Set the JPPF client used to submit tasks.
 void setLogWriter(PrintWriter writer)
          Set the log writer for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jppfClient

protected transient JPPFJcaClient jppfClient
The JPPF client used to submit tasks.


logWriter

protected PrintWriter logWriter
The log writer for this object.

Constructor Detail

JPPFAccessorImpl

protected JPPFAccessorImpl()
Default constructor.

Method Detail

getJppfClient

public JPPFJcaClient getJppfClient()
Get the JPPF client used to submit tasks.

Specified by:
getJppfClient in interface JPPFAccessor
Returns:
a JPPFJcaClient instance.

setJppfClient

public void setJppfClient(JPPFJcaClient jppfClient)
Set the JPPF client used to submit tasks.

Specified by:
setJppfClient in interface JPPFAccessor
Parameters:
jppfClient - a JPPFJcaClient instance.

getLogWriter

public PrintWriter getLogWriter()
                         throws ResourceException
Get the log writer for this object.

Specified by:
getLogWriter in interface JPPFAccessor
Returns:
a PrintWriter instance.
Throws:
ResourceException - if the log writer could not be obtained.
See Also:
ManagedConnectionFactory.getLogWriter()

setLogWriter

public void setLogWriter(PrintWriter writer)
                  throws ResourceException
Set the log writer for this object.

Specified by:
setLogWriter in interface JPPFAccessor
Parameters:
writer - a PrintWriter instance.
Throws:
ResourceException - if the log writer could not be set.
See Also:
ManagedConnectionFactory.setLogWriter(java.io.PrintWriter)


Copyright © 2005-2010 JPPF Team.