|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.ats.arjuna.tools.osb.mbean.OSEntryBean
com.arjuna.ats.arjuna.tools.osb.mbean.ActionBean
public class ActionBean
MBean implementation of an ObjectStore entry that represents an AtomicAction
Nested Class Summary | |
---|---|
class |
ActionBean.GenericAtomicActionWrapper
The ActionBean needs access to the participant lists maintained by an AtomicAction but these lists are protected. |
Field Summary | |
---|---|
protected ActionBeanWrapperInterface |
ra
|
Fields inherited from class com.arjuna.ats.arjuna.tools.osb.mbean.OSEntryBean |
---|
w |
Constructor Summary | |
---|---|
ActionBean(UidWrapper w)
|
Method Summary | |
---|---|
protected LogRecordWrapper |
createParticipant(AbstractRecord rec,
ParticipantStatus listType)
Extension point for other Bean implementations to provide an implementation bean for its participants. |
protected ActionBeanWrapperInterface |
createWrapper(UidWrapper w,
boolean activate)
|
long |
getAgeInSeconds()
|
java.lang.String |
getCreationTime()
|
LogRecordWrapper |
getParticipant(AbstractRecord rec)
See if there is participant Bean corresponding to the given record |
java.util.Collection<LogRecordWrapper> |
getParticipants()
|
Uid |
getUid(AbstractRecord rec)
return the Uid for given AbstractRecord |
boolean |
isParticipant()
|
void |
register()
register this bean (and its participants) with the MBeanServer |
java.lang.String |
remove()
Remove this AtomicAction from the ObjectStore |
boolean |
setStatus(LogRecordWrapper logrec,
ParticipantStatus newStatus)
Request a change in status of a participant. |
java.lang.StringBuilder |
toString(java.lang.String prefix,
java.lang.StringBuilder sb)
|
void |
unregister()
unregister this bean (and its participants) with the MBeanServer |
Methods inherited from class com.arjuna.ats.arjuna.tools.osb.mbean.OSEntryBean |
---|
activate, getId, getName, getType, getUid, register, type, unregister |
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.mbean.OSEntryBeanMBean |
---|
getId, getType |
Field Detail |
---|
protected ActionBeanWrapperInterface ra
Constructor Detail |
---|
public ActionBean(UidWrapper w)
Method Detail |
---|
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate)
public java.lang.StringBuilder toString(java.lang.String prefix, java.lang.StringBuilder sb)
toString
in class OSEntryBean
public Uid getUid(AbstractRecord rec)
getUid
in class OSEntryBean
rec
- the record whose Uid is required
public java.lang.String remove()
remove
in interface ActionBeanMBean
protected LogRecordWrapper createParticipant(AbstractRecord rec, ParticipantStatus listType)
rec
- the record that should be represented by an MBeanlistType
- the status of the record
public LogRecordWrapper getParticipant(AbstractRecord rec)
rec
- the record for the target participant
public void register()
register
in class OSEntryBean
public void unregister()
unregister
in class OSEntryBean
public long getAgeInSeconds()
getAgeInSeconds
in interface ActionBeanMBean
public java.lang.String getCreationTime()
getCreationTime
in interface ActionBeanMBean
public boolean isParticipant()
isParticipant
in interface ActionBeanMBean
public boolean setStatus(LogRecordWrapper logrec, ParticipantStatus newStatus)
logrec
- the record whose status is to be changednewStatus
- the desired status
public java.util.Collection<LogRecordWrapper> getParticipants()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |