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

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.ParticipantStoreBean
All Implemented Interfaces:
BaseStoreMBean, ParticipantStoreBeanMBean, TxLogBeanMBean, NotificationBroadcaster, NotificationEmitter

public class ParticipantStoreBean
extends TxLogBean
implements ParticipantStoreBeanMBean

implementation of the JMX interface to the JBossTS participant store


Constructor Summary
ParticipantStoreBean()
          Construct an MBean corresponding to the default participant store in this JVM
ParticipantStoreBean(ParticipantStore ps)
          Construct an MBean corresponding to the given store
 
Method Summary
 boolean commit_state(Uid u, String tn)
           
 boolean fullCommitNeeded()
           
protected  ObjectName getMBeanName()
          The object name that the MBean will be registered with the MBean Server
 ObjectStateWrapper read_committed(Uid u, String tn)
           
 ObjectStateWrapper read_uncommitted(Uid u, String tn)
           
 boolean remove_uncommitted(Uid u, String tn)
           
 boolean write_uncommitted(Uid u, String tn, OutputObjectStateWrapper buff)
           
 
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

ParticipantStoreBean

public ParticipantStoreBean()
Construct an MBean corresponding to the default participant store in this JVM


ParticipantStoreBean

public ParticipantStoreBean(ParticipantStore ps)
Construct an MBean corresponding to the given store

Parameters:
ps - the ParticipantStore 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

commit_state

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

read_committed

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

read_uncommitted

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

remove_uncommitted

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

write_uncommitted

public boolean write_uncommitted(Uid u,
                                 String tn,
                                 OutputObjectStateWrapper buff)
                          throws ObjectStoreException
Specified by:
write_uncommitted in interface ParticipantStoreBeanMBean
Throws:
ObjectStoreException

fullCommitNeeded

public boolean fullCommitNeeded()
Specified by:
fullCommitNeeded in interface ParticipantStoreBeanMBean


Copyright © 2012. All Rights Reserved.