|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.ats.arjuna.tools.osb.api.proxy.StoreManagerProxy
public class StoreManagerProxy
Miscellaneous methods for obtaining remote proxies to the JBossTS Recovery and Participant stores
Field Summary | |
---|---|
static java.lang.String |
PARTICIPANT_BEAN_NAME
|
static java.lang.String |
RECOVERY_BEAN_NAME
|
Method Summary | |
---|---|
static ParticipantStoreProxy |
getParticipantStore()
Get a participant store proxy from the local MBeanServer |
static ParticipantStoreProxy |
getParticipantStore(javax.management.NotificationListener listener)
Get a participant store proxy from the local MBeanServer |
static ParticipantStoreProxy |
getParticipantStore(java.lang.String serviceUrl,
javax.management.NotificationListener listener)
Get a participant store proxy. |
static RecoveryStoreProxy |
getRecoveryStore()
Get a recovery store proxy from the local MBeanServer |
static RecoveryStoreProxy |
getRecoveryStore(javax.management.NotificationListener listener)
Get a recovery store proxy from the local MBeanServer |
static RecoveryStoreProxy |
getRecoveryStore(java.lang.String serviceUrl,
javax.management.NotificationListener listener)
Get a RecoveryStore proxy. |
static boolean |
registerBean(javax.management.ObjectName name,
java.lang.Object bean,
boolean register)
MBean registration helper method |
static void |
releaseProxy()
release proxies to the object stores |
static void |
releaseProxy(java.lang.String serviceUrl)
release proxies to the object stores |
static void |
startServerConnector(java.lang.String serviceUrl)
Helper method for remote clients to connect to an MBean Server |
static void |
stopServerConnector()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RECOVERY_BEAN_NAME
public static final java.lang.String PARTICIPANT_BEAN_NAME
Method Detail |
---|
public static void startServerConnector(java.lang.String serviceUrl) throws java.io.IOException
serviceUrl
- the url on which the target MBean Server resides
java.io.IOException
- if the serviceUrl is invalid or if the connection cannot be startedpublic static void stopServerConnector() throws java.io.IOException
java.io.IOException
public static boolean registerBean(javax.management.ObjectName name, java.lang.Object bean, boolean register)
name
- MBean object namebean
- MBean implementationregister
- whether to register or unregister the MBean
public static void releaseProxy() throws javax.management.JMException, java.io.IOException
javax.management.JMException
- if there are errors removing listeners
java.io.IOException
- if there are errors removing listeners or closing the JMX connectionpublic static void releaseProxy(java.lang.String serviceUrl) throws javax.management.JMException, java.io.IOException
serviceUrl
- the service url of the MBean Server where the proxies are located
javax.management.JMException
- if there are errors removing listeners
java.io.IOException
- if there are errors removing listeners or closing the JMX connectionpublic static RecoveryStoreProxy getRecoveryStore() throws java.io.IOException, javax.management.JMException
javax.management.JMException
- if there are JMX errors during registration of MBeans
java.io.IOException
- if there are errors on the connection to the MBean Serverpublic static RecoveryStoreProxy getRecoveryStore(javax.management.NotificationListener listener) throws java.io.IOException, javax.management.JMException
listener
- listener an optional notification listener (use null if one is not required)
javax.management.JMException
- if there are JMX errors during registration of MBeans and notification listeners
java.io.IOException
- if there are errors on the connection to the MBean Serverpublic static RecoveryStoreProxy getRecoveryStore(java.lang.String serviceUrl, javax.management.NotificationListener listener) throws java.io.IOException, javax.management.JMException
serviceUrl
- the location of the MBean Serverlistener
- an optional notification listener (use null if one is not required)
javax.management.JMException
- if there are JMX errors during registration of MBeans and notification listeners
java.io.IOException
- if there are errors on the connection to the MBean Serverpublic static ParticipantStoreProxy getParticipantStore() throws java.io.IOException, javax.management.JMException
javax.management.JMException
- if there are JMX errors during registration of MBeans
java.io.IOException
- if there are errors on the connection to the MBean Serverpublic static ParticipantStoreProxy getParticipantStore(javax.management.NotificationListener listener) throws java.io.IOException, javax.management.JMException
listener
- listener an optional notification listener (use null if one is not required)
javax.management.JMException
- if there are JMX errors during registration of MBeans and notification listeners
java.io.IOException
- if there are errors on the connection to the MBean Serverpublic static ParticipantStoreProxy getParticipantStore(java.lang.String serviceUrl, javax.management.NotificationListener listener) throws java.io.IOException, javax.management.JMException
serviceUrl
- the location of the MBean Serverlistener
- an optional notification listener (use null if one is not required)
javax.management.JMException
- if there are JMX errors during registration of MBeans and notification listeners
java.io.IOException
- if there are errors on the connection to the MBean Server
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |