org.jppf.jca.util
Interface JPPFAccessor

All Known Subinterfaces:
JPPFConnection
All Known Implementing Classes:
JPPFAccessorImpl, JPPFConnectionFactory, JPPFConnectionImpl, JPPFManagedConnection, JPPFManagedConnectionFactory, JPPFResourceAdapter

public interface JPPFAccessor

Utility interface used for accessing common attributes of the j2ee connector objects.

Author:
Laurent Cohen

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.
 

Method Detail

getJppfClient

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

Returns:
a JPPFJcaClient instance.

setJppfClient

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

Parameters:
jppfClient - a JPPFJcaClient instance.

getLogWriter

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

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

setLogWriter

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

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.