|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbitronix.tm.resource.ResourceRegistrar
public class ResourceRegistrar
Collection of initialized XAResourceProducer
s. All resources must be registered in the ResourceRegistrar
before they can be used by the transaction manager.
Constructor Summary | |
---|---|
ResourceRegistrar()
|
Method Summary | |
---|---|
static XAResourceHolder |
findXAResourceHolder(XAResource xaResource)
Find in the registered XAResourceProducer s the XAResourceHolder from which the specified XAResource comes from. |
static XAResourceProducer |
get(String uniqueName)
Get a registered XAResourceProducer . |
static Set<String> |
getResourcesUniqueNames()
Get all XAResourceProducer s unique names. |
static void |
register(XAResourceProducer producer)
Register a XAResourceProducer . |
static void |
unregister(XAResourceProducer producer)
Unregister a previously registered XAResourceProducer . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceRegistrar()
Method Detail |
---|
public static XAResourceProducer get(String uniqueName)
XAResourceProducer
.
uniqueName
- the name of the recoverable resource producer.
XAResourceProducer
or null if there was none registered under that name.public static Set<String> getResourcesUniqueNames()
XAResourceProducer
s unique names.
XAResourceProducer
s unique names.public static void register(XAResourceProducer producer) throws RecoveryException
XAResourceProducer
. If registration happens after the transaction manager started, incremental
recovery is run on that resource.
producer
- the XAResourceProducer
.
RecoveryException
- when an error happens during recovery.public static void unregister(XAResourceProducer producer)
XAResourceProducer
.
producer
- the XAResourceProducer
.public static XAResourceHolder findXAResourceHolder(XAResource xaResource)
XAResourceProducer
s the XAResourceHolder
from which the specified XAResource
comes from.
xaResource
- the XAResource
to look for
XAResourceHolder
or null if it cannot be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |