Class StoreManagerProxy
java.lang.Object
com.arjuna.ats.arjuna.tools.osb.api.proxy.StoreManagerProxy
Miscellaneous methods for obtaining remote proxies to the JBossTS Recovery and Participant stores
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParticipantStoreProxy
Get a participant store proxy from the local MBeanServerstatic ParticipantStoreProxy
getParticipantStore
(String serviceUrl, NotificationListener listener) Get a participant store proxy.static ParticipantStoreProxy
getParticipantStore
(NotificationListener listener) Get a participant store proxy from the local MBeanServerstatic RecoveryStoreProxy
Get a recovery store proxy from the local MBeanServerstatic RecoveryStoreProxy
getRecoveryStore
(String serviceUrl, NotificationListener listener) Get a RecoveryStore proxy.static RecoveryStoreProxy
getRecoveryStore
(NotificationListener listener) Get a recovery store proxy from the local MBeanServerstatic boolean
registerBean
(ObjectName name, Object bean, boolean register) MBean registration helper methodstatic void
release proxies to the object storesstatic void
releaseProxy
(String serviceUrl) release proxies to the object storesstatic void
startServerConnector
(String serviceUrl) Helper method for remote clients to connect to an MBean Serverstatic void
-
Field Details
-
RECOVERY_BEAN_NAME
- See Also:
-
PARTICIPANT_BEAN_NAME
- See Also:
-
-
Method Details
-
startServerConnector
Helper method for remote clients to connect to an MBean Server- Parameters:
serviceUrl
- the url on which the target MBean Server resides- Throws:
IOException
- if the serviceUrl is invalid or if the connection cannot be started
-
stopServerConnector
- Throws:
IOException
-
registerBean
MBean registration helper method- Parameters:
name
- MBean object namebean
- MBean implementationregister
- whether to register or unregister the MBean- Returns:
- true if the bean was successfully registered or unregistered
-
releaseProxy
release proxies to the object stores- Throws:
JMException
- if there are errors removing listenersIOException
- if there are errors removing listeners or closing the JMX connection
-
releaseProxy
release proxies to the object stores- Parameters:
serviceUrl
- the service url of the MBean Server where the proxies are located- Throws:
JMException
- if there are errors removing listenersIOException
- if there are errors removing listeners or closing the JMX connection
-
getRecoveryStore
Get a recovery store proxy from the local MBeanServer- Returns:
- a proxy for the target RecoveryStore
- Throws:
JMException
- if there are JMX errors during registration of MBeansIOException
- if there are errors on the connection to the MBean Server
-
getRecoveryStore
public static RecoveryStoreProxy getRecoveryStore(NotificationListener listener) throws IOException, JMException Get a recovery store proxy from the local MBeanServer- Parameters:
listener
- listener an optional notification listener (use null if one is not required)- Returns:
- a proxy for the target RecoveryStore
- Throws:
JMException
- if there are JMX errors during registration of MBeans and notification listenersIOException
- if there are errors on the connection to the MBean Server
-
getRecoveryStore
public static RecoveryStoreProxy getRecoveryStore(String serviceUrl, NotificationListener listener) throws IOException, JMException Get a RecoveryStore proxy.- Parameters:
serviceUrl
- the location of the MBean Serverlistener
- an optional notification listener (use null if one is not required)- Returns:
- a proxy for the target RecoveryStore
- Throws:
JMException
- if there are JMX errors during registration of MBeans and notification listenersIOException
- if there are errors on the connection to the MBean Server
-
getParticipantStore
Get a participant store proxy from the local MBeanServer- Returns:
- a proxy for the target ParticipantStore
- Throws:
JMException
- if there are JMX errors during registration of MBeansIOException
- if there are errors on the connection to the MBean Server
-
getParticipantStore
public static ParticipantStoreProxy getParticipantStore(NotificationListener listener) throws IOException, JMException Get a participant store proxy from the local MBeanServer- Parameters:
listener
- listener an optional notification listener (use null if one is not required)- Returns:
- a proxy for the target ParticipantStore
- Throws:
JMException
- if there are JMX errors during registration of MBeans and notification listenersIOException
- if there are errors on the connection to the MBean Server
-
getParticipantStore
public static ParticipantStoreProxy getParticipantStore(String serviceUrl, NotificationListener listener) throws IOException, JMException Get a participant store proxy.- Parameters:
serviceUrl
- the location of the MBean Serverlistener
- an optional notification listener (use null if one is not required)- Returns:
- a proxy for the target ParticipantStore
- Throws:
JMException
- if there are JMX errors during registration of MBeans and notification listenersIOException
- if there are errors on the connection to the MBean Server
-