public class SystemResourceManagerImpl extends Object implements ResourceManager
| Constructor and Description |
|---|
SystemResourceManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delistResource(ResourceHandle h,
int xaresFlag)
delist the
ResourceHandle from the transaction |
void |
enlistResource(ResourceHandle handle)
Register the
ResourceHandle in the transaction |
Object |
getComponent()
Return null for System Resource.
|
Transaction |
getTransaction()
Returns the transaction component is participating.
|
void |
registerResource(ResourceHandle handle)
Dont do any thing for System Resource.
|
void |
rollBackTransaction()
Set the transaction for rolling back.
|
void |
unregisterResource(ResourceHandle resource,
int xaresFlag)
Dont do any thing for System Resource.
|
public Transaction getTransaction() throws PoolingException
getTransaction in interface ResourceManagerTransaction object.PoolingException - If exception is thrown
while getting the transaction.PoolingException - If there is any error in getting the
transactionpublic Object getComponent()
getComponent in interface ResourceManagerpublic void enlistResource(ResourceHandle handle) throws PoolingException
ResourceHandle in the transactionenlistResource in interface ResourceManagerhandle - ResourceHandle objectPoolingException - If there is any error while
enlisting.PoolingException - If there is any error in enlisting.public void registerResource(ResourceHandle handle) throws PoolingException
registerResource in interface ResourceManagerhandle - Resource to be registered.PoolingException - If there is any error in registering.public void rollBackTransaction()
ResourceManagerrollBackTransaction in interface ResourceManagerpublic void delistResource(ResourceHandle h, int xaresFlag)
ResourceHandle from the transactiondelistResource in interface ResourceManagerh - ResourceHandle objectxaresFlag - flag indicating transaction success. This can
be XAResource.TMSUCCESS or XAResource.TMFAILPoolingExceptionpublic void unregisterResource(ResourceHandle resource, int xaresFlag)
unregisterResource in interface ResourceManagerresource - Resource to be unregistered.xaresFlag - XA FlagCopyright © 2019. All rights reserved.