|
||||||||||
| 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
| Field Summary |
|---|
| 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. |
long |
getAgeInSeconds()
|
String |
getCreationTime()
|
LogRecordWrapper |
getParticipant(AbstractRecord rec)
See if there is participant Bean corresponding to the given record |
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 |
String |
remove()
Remove this AtomicAction from the ObjectStore |
boolean |
setStatus(LogRecordWrapper logrec,
ParticipantStatus newStatus)
Request a change in status of a participant. |
StringBuilder |
toString(String prefix,
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 |
| Constructor Detail |
|---|
public ActionBean(UidWrapper w)
| Method Detail |
|---|
public StringBuilder toString(String prefix,
StringBuilder sb)
toString in class OSEntryBeanpublic Uid getUid(AbstractRecord rec)
getUid in class OSEntryBeanrec - the record whose Uid is required
public 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 OSEntryBeanpublic void unregister()
unregister in class OSEntryBeanpublic long getAgeInSeconds()
getAgeInSeconds in interface ActionBeanMBeanpublic String getCreationTime()
getCreationTime in interface ActionBeanMBeanpublic 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 Collection<LogRecordWrapper> getParticipants()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||