public class StoreManagerProxy extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PARTICIPANT_BEAN_NAME |
static String |
RECOVERY_BEAN_NAME |
| Modifier and Type | Method and Description |
|---|---|
static ParticipantStoreProxy |
getParticipantStore()
Get a participant store proxy from the local MBeanServer
|
static ParticipantStoreProxy |
getParticipantStore(NotificationListener listener)
Get a participant store proxy from the local MBeanServer
|
static ParticipantStoreProxy |
getParticipantStore(String serviceUrl,
NotificationListener listener)
Get a participant store proxy.
|
static RecoveryStoreProxy |
getRecoveryStore()
Get a recovery store proxy from the local MBeanServer
|
static RecoveryStoreProxy |
getRecoveryStore(NotificationListener listener)
Get a recovery store proxy from the local MBeanServer
|
static RecoveryStoreProxy |
getRecoveryStore(String serviceUrl,
NotificationListener listener)
Get a RecoveryStore proxy.
|
static boolean |
registerBean(ObjectName name,
Object bean,
boolean register)
MBean registration helper method
|
static void |
releaseProxy()
release proxies to the object stores
|
static void |
releaseProxy(String serviceUrl)
release proxies to the object stores
|
static void |
startServerConnector(String serviceUrl)
Helper method for remote clients to connect to an MBean Server
|
static void |
stopServerConnector() |
public static final String RECOVERY_BEAN_NAME
public static final String PARTICIPANT_BEAN_NAME
public static void startServerConnector(String serviceUrl) throws IOException
serviceUrl - the url on which the target MBean Server residesIOException - if the serviceUrl is invalid or if the connection cannot be startedpublic static void stopServerConnector()
throws IOException
IOExceptionpublic static boolean registerBean(ObjectName name, Object bean, boolean register)
name - MBean object namebean - MBean implementationregister - whether to register or unregister the MBeanpublic static void releaseProxy()
throws JMException,
IOException
JMException - if there are errors removing listenersIOException - if there are errors removing listeners or closing the JMX connectionpublic static void releaseProxy(String serviceUrl) throws JMException, IOException
serviceUrl - the service url of the MBean Server where the proxies are locatedJMException - if there are errors removing listenersIOException - if there are errors removing listeners or closing the JMX connectionpublic static RecoveryStoreProxy getRecoveryStore() throws IOException, JMException
JMException - if there are JMX errors during registration of MBeansIOException - if there are errors on the connection to the MBean Serverpublic static RecoveryStoreProxy getRecoveryStore(NotificationListener listener) throws IOException, JMException
listener - listener an optional notification listener (use null if one is not required)JMException - if there are JMX errors during registration of MBeans and notification listenersIOException - if there are errors on the connection to the MBean Serverpublic static RecoveryStoreProxy getRecoveryStore(String serviceUrl, NotificationListener listener) throws IOException, JMException
serviceUrl - the location of the MBean Serverlistener - an optional notification listener (use null if one is not required)JMException - if there are JMX errors during registration of MBeans and notification listenersIOException - if there are errors on the connection to the MBean Serverpublic static ParticipantStoreProxy getParticipantStore() throws IOException, JMException
JMException - if there are JMX errors during registration of MBeansIOException - if there are errors on the connection to the MBean Serverpublic static ParticipantStoreProxy getParticipantStore(NotificationListener listener) throws IOException, JMException
listener - listener an optional notification listener (use null if one is not required)JMException - if there are JMX errors during registration of MBeans and notification listenersIOException - if there are errors on the connection to the MBean Serverpublic static ParticipantStoreProxy getParticipantStore(String serviceUrl, NotificationListener listener) throws IOException, JMException
serviceUrl - the location of the MBean Serverlistener - an optional notification listener (use null if one is not required)JMException - if there are JMX errors during registration of MBeans and notification listenersIOException - if there are errors on the connection to the MBean ServerCopyright © 2013. All Rights Reserved.