|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.jca.util.JPPFAccessorImpl
org.jppf.jca.spi.JPPFManagedConnectionFactory
public class JPPFManagedConnectionFactory
Implementation of the ManagedConnectionFactory interface.
| Field Summary |
|---|
| Fields inherited from class org.jppf.jca.util.JPPFAccessorImpl |
|---|
jppfClient, logWriter |
| Constructor Summary | |
|---|---|
JPPFManagedConnectionFactory()
Default constructor. |
|
| Method Summary | |
|---|---|
Object |
createConnectionFactory()
Create a jca connection factory. |
Object |
createConnectionFactory(ConnectionManager manager)
Create a jca connection factory using a specified connection manager. |
ManagedConnection |
createManagedConnection(Subject subject,
ConnectionRequestInfo cri)
Create a managed conneciton. |
boolean |
equals(Object obj)
Determine whether 2 objects are equal. |
JPPFJcaClient |
getJppfClient()
Get the JPPF client used to submit tasks. |
ResourceAdapter |
getResourceAdapter()
Get the handle to the resource adapter. |
int |
hashCode()
Get this managed conncetion factory's hashcode. |
ManagedConnection |
matchManagedConnections(Set set,
Subject subject,
ConnectionRequestInfo cri)
Returns a matched connection from the candidate set of connections. |
void |
setResourceAdapter(ResourceAdapter resourceAdapter)
Set the handle to the resource adapter. |
| Methods inherited from class org.jppf.jca.util.JPPFAccessorImpl |
|---|
getLogWriter, setJppfClient, setLogWriter |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.resource.spi.ManagedConnectionFactory |
|---|
getLogWriter, setLogWriter |
| Constructor Detail |
|---|
public JPPFManagedConnectionFactory()
| Method Detail |
|---|
public Object createConnectionFactory()
throws ResourceException
createConnectionFactory in interface ManagedConnectionFactoryResourceException - if the connection factory could not be created.ManagedConnectionFactory.createConnectionFactory()
public Object createConnectionFactory(ConnectionManager manager)
throws ResourceException
createConnectionFactory in interface ManagedConnectionFactorymanager - the connection manager to use.
ResourceException - if the connection factory could not be created.ManagedConnectionFactory.createConnectionFactory(javax.resource.spi.ConnectionManager)
public ManagedConnection createManagedConnection(Subject subject,
ConnectionRequestInfo cri)
throws ResourceException
createManagedConnection in interface ManagedConnectionFactorysubject - not used.cri - not used.
JPPFManagedConnection instance.
ResourceException - if the managed connection could not be created.ManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject, javax.resource.spi.ConnectionRequestInfo)
public ManagedConnection matchManagedConnections(Set set,
Subject subject,
ConnectionRequestInfo cri)
throws ResourceException
matchManagedConnections in interface ManagedConnectionFactoryset - not usedsubject - not usedcri - not used
JPPFManagedConnection instance, or null if none is available.
ResourceException - always.ManagedConnectionFactory.matchManagedConnections(java.util.Set, javax.security.auth.Subject, javax.resource.spi.ConnectionRequestInfo)public ResourceAdapter getResourceAdapter()
getResourceAdapter in interface ResourceAdapterAssociationResourceAdapter.ResourceAdapterAssociation.getResourceAdapter()
public void setResourceAdapter(ResourceAdapter resourceAdapter)
throws ResourceException
setResourceAdapter in interface ResourceAdapterAssociationresourceAdapter - a ResourceAdapter.
ResourceException - if the resource adapter could not be set.ResourceAdapterAssociation.setResourceAdapter(javax.resource.spi.ResourceAdapter)public boolean equals(Object obj)
equals in interface ManagedConnectionFactoryequals in class Objectobj - the other object to compare to.
Object.equals(java.lang.Object)public int hashCode()
hashCode in interface ManagedConnectionFactoryhashCode in class ObjectObject.hashCode()public JPPFJcaClient getJppfClient()
getJppfClient in interface JPPFAccessorgetJppfClient in class JPPFAccessorImplJPPFJcaClient instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||