public class ActionBean extends OSEntryBean implements ActionBeanMBean
| Modifier and Type | Class and Description |
|---|---|
static class |
ActionBean.GenericAtomicActionWrapper
The ActionBean needs access to the participant lists maintained by an AtomicAction but these
lists are protected.
|
| Modifier and Type | Field and Description |
|---|---|
protected ActionBeanWrapperInterface |
ra |
w| Constructor and Description |
|---|
ActionBean(UidWrapper w) |
| Modifier and Type | Method and Description |
|---|---|
protected LogRecordWrapper |
createParticipant(AbstractRecord rec,
ParticipantStatus listType)
Extension point for other Bean implementations to provide an implementation bean for its participants.
|
protected LogRecordWrapper |
createParticipant(AbstractRecord rec,
ParticipantStatus listType,
UidWrapper wrapper) |
protected ActionBeanWrapperInterface |
createWrapper(UidWrapper w,
boolean activate) |
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
|
activate, getId, getName, getType, getUid, register, type, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getTypeprotected ActionBeanWrapperInterface ra
public ActionBean(UidWrapper w)
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate)
public StringBuilder toString(String prefix, StringBuilder sb)
toString in class OSEntryBeanpublic Uid getUid(AbstractRecord rec)
getUid in class OSEntryBeanrec - the record whose Uid is requiredpublic String remove()
remove in interface ActionBeanMBeanremove in interface OSEntryBeanMBeanremove in class OSEntryBeanprotected LogRecordWrapper createParticipant(AbstractRecord rec, ParticipantStatus listType)
rec - the record that should be represented by an MBeanlistType - the status of the recordprotected LogRecordWrapper createParticipant(AbstractRecord rec, ParticipantStatus listType, UidWrapper wrapper)
public LogRecordWrapper getParticipant(AbstractRecord rec)
rec - the record for the target participantpublic 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 ActionBeanMBeanpublic boolean setStatus(LogRecordWrapper logrec, ParticipantStatus newStatus)
logrec - the record whose status is to be changednewStatus - the desired statuspublic Collection<LogRecordWrapper> getParticipants()
Copyright © 2014. All Rights Reserved.