com.arjuna.ats.arjuna.tools.osb.api.mbeans
Class RecoveryStoreBean

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by com.arjuna.ats.arjuna.tools.osb.api.mbeans.BaseStoreBean
          extended by com.arjuna.ats.arjuna.tools.osb.api.mbeans.TxLogBean
              extended by com.arjuna.ats.arjuna.tools.osb.api.mbeans.RecoveryStoreBean
All Implemented Interfaces:
BaseStoreMBean, RecoveryStoreBeanMBean, TxLogBeanMBean, NotificationBroadcaster, NotificationEmitter

public class RecoveryStoreBean
extends TxLogBean
implements RecoveryStoreBeanMBean

implementation of the JMX interface to the JBossTS recovery store


Constructor Summary
RecoveryStoreBean()
          Construct an MBean corresponding to the default recovery store in this JVM
RecoveryStoreBean(RecoveryStore rs)
          Construct an MBean corresponding to the given store
 
Method Summary
 ObjectStateWrapper allObjUids(String type)
           
 ObjectStateWrapper allObjUids(String type, int m)
           
 ObjectStateWrapper allTypes()
           
 int currentState(Uid u, String tn)
           
protected  ObjectName getMBeanName()
          The object name that the MBean will be registered with the MBean Server
 boolean hide_state(Uid u, String tn)
           
 boolean isType(Uid u, String tn, int st)
           
 ObjectStateWrapper read_committed(Uid u, String tn)
           
 boolean reveal_state(Uid u, String tn)
           
 
Methods inherited from class com.arjuna.ats.arjuna.tools.osb.api.mbeans.TxLogBean
getStore, remove_committed, sync, write_committed
 
Methods inherited from class com.arjuna.ats.arjuna.tools.osb.api.mbeans.BaseStoreBean
getNotificationInfo, getStoreName, start, stop
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arjuna.ats.arjuna.tools.osb.api.mbeans.TxLogBeanMBean
remove_committed, sync, write_committed
 
Methods inherited from interface com.arjuna.ats.arjuna.tools.osb.api.mbeans.BaseStoreMBean
getStoreName, start, stop
 

Constructor Detail

RecoveryStoreBean

public RecoveryStoreBean()
Construct an MBean corresponding to the default recovery store in this JVM


RecoveryStoreBean

public RecoveryStoreBean(RecoveryStore rs)
Construct an MBean corresponding to the given store

Parameters:
rs - the RecoveryStore that is wrapped by this MBean
Method Detail

getMBeanName

protected ObjectName getMBeanName()
Description copied from class: BaseStoreBean
The object name that the MBean will be registered with the MBean Server

Specified by:
getMBeanName in class TxLogBean
Returns:
the MBeans object name

allObjUids

public ObjectStateWrapper allObjUids(String type,
                                     int m)
                              throws ObjectStoreException
Specified by:
allObjUids in interface RecoveryStoreBeanMBean
Throws:
ObjectStoreException

allObjUids

public ObjectStateWrapper allObjUids(String type)
                              throws ObjectStoreException
Specified by:
allObjUids in interface RecoveryStoreBeanMBean
Throws:
ObjectStoreException

allTypes

public ObjectStateWrapper allTypes()
                            throws ObjectStoreException
Specified by:
allTypes in interface RecoveryStoreBeanMBean
Throws:
ObjectStoreException

currentState

public int currentState(Uid u,
                        String tn)
                 throws ObjectStoreException
Specified by:
currentState in interface RecoveryStoreBeanMBean
Throws:
ObjectStoreException

hide_state

public boolean hide_state(Uid u,
                          String tn)
                   throws ObjectStoreException
Specified by:
hide_state in interface RecoveryStoreBeanMBean
Throws:
ObjectStoreException

reveal_state

public boolean reveal_state(Uid u,
                            String tn)
                     throws ObjectStoreException
Specified by:
reveal_state in interface RecoveryStoreBeanMBean
Throws:
ObjectStoreException

read_committed

public ObjectStateWrapper read_committed(Uid u,
                                         String tn)
                                  throws ObjectStoreException
Specified by:
read_committed in interface RecoveryStoreBeanMBean
Throws:
ObjectStoreException

isType

public boolean isType(Uid u,
                      String tn,
                      int st)
               throws ObjectStoreException
Specified by:
isType in interface RecoveryStoreBeanMBean
Throws:
ObjectStoreException


Copyright © 2012. All Rights Reserved.