public class ActionBean extends OSEntryBean implements ActionBeanMBean
Modifier and Type | Class and Description |
---|---|
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, unregister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, getType
protected ActionBeanWrapperInterface ra
public ActionBean(UidWrapper w)
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate)
public StringBuilder toString(String prefix, StringBuilder sb)
toString
in class OSEntryBean
public Uid getUid(AbstractRecord rec)
getUid
in class OSEntryBean
rec
- the record whose Uid is requiredpublic String remove()
remove
in interface ActionBeanMBean
remove
in interface OSEntryBeanMBean
remove
in class OSEntryBean
protected 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 OSEntryBean
public void unregister()
unregister
in class OSEntryBean
public long getAgeInSeconds()
getAgeInSeconds
in interface ActionBeanMBean
public 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 statuspublic Collection<LogRecordWrapper> getParticipants()
Copyright © 2012. All Rights Reserved.