|
||||||||||
| 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 XAResourceProducers. 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 XAResourceProducers the XAResourceHolder from which the specified XAResource comes from. |
static XAResourceProducer |
get(String uniqueName)
Get a registered XAResourceProducer. |
static Set |
getResourcesUniqueNames()
Get all XAResourceProducers 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 getResourcesUniqueNames()
XAResourceProducers unique names.
XAResourceProducers 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)
XAResourceProducers 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 | |||||||||