Class ActionBean
java.lang.Object
com.arjuna.ats.arjuna.tools.osb.mbean.OSEntryBean
com.arjuna.ats.arjuna.tools.osb.mbean.ActionBean
- All Implemented Interfaces:
ActionBeanMBean
,ObjStoreItemMBean
,OSEntryBeanMBean
- Direct Known Subclasses:
JTAActionBean
Deprecated.
as of 5.0.5.Final In a subsequent release we will change packages names in order to
provide a better separation between public and internal classes.
MBean implementation of an ObjectStore entry that represents an AtomicAction
- Author:
- Mike Musgrove
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.The ActionBean needs access to the participant lists maintained by an AtomicAction but these lists are protected. -
Field Summary
Modifier and TypeFieldDescriptionprotected ActionBeanWrapperInterface
Deprecated.protected List<UidWrapper>
Deprecated.Fields inherited from class com.arjuna.ats.arjuna.tools.osb.mbean.OSEntryBean
_uidWrapper, REMOVE_NOK_1, REMOVE_OK_1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected LogRecordWrapper
createParticipant
(AbstractRecord rec, ParticipantStatus listType) Deprecated.Extension point for other Bean implementations to provide an implementation bean for its participants.protected LogRecordWrapper
createParticipant
(AbstractRecord rec, ParticipantStatus listType, UidWrapper wrapper) Deprecated.protected ActionBeanWrapperInterface
createWrapper
(UidWrapper w, boolean activate) Deprecated.long
Deprecated.Deprecated.Deprecated.See if there is participant Bean corresponding to the given recordDeprecated.getUid
(AbstractRecord rec) Deprecated.return the Uid for given AbstractRecordboolean
Deprecated.void
register()
Deprecated.register this bean (and its participants) with the MBeanServerremove()
Deprecated.Remove this AtomicAction from the ObjectStorevoid
remove
(LogRecordWrapper logRecordWrapper) Deprecated.remove the a participantboolean
setStatus
(LogRecordWrapper logrec, ParticipantStatus newStatus) Deprecated.Request a change in status of a participant.toString
(String prefix, StringBuilder sb) Deprecated.void
Deprecated.unregister this bean (and its participants) with the MBeanServerMethods inherited from class com.arjuna.ats.arjuna.tools.osb.mbean.OSEntryBean
activate, doRemove, getId, getName, getType, getUid, register, remove, 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 Details
-
ra
Deprecated. -
recuids
Deprecated.
-
-
Constructor Details
-
ActionBean
Deprecated.
-
-
Method Details
-
createWrapper
Deprecated. -
toString
Deprecated.- Overrides:
toString
in classOSEntryBean
-
getUid
Deprecated.return the Uid for given AbstractRecord- Overrides:
getUid
in classOSEntryBean
- Parameters:
rec
- the record whose Uid is required- Returns:
- the Uid of the requested record
-
remove
Deprecated.Remove this AtomicAction from the ObjectStore- Specified by:
remove
in interfaceActionBeanMBean
- Specified by:
remove
in interfaceOSEntryBeanMBean
- Overrides:
remove
in classOSEntryBean
- Returns:
- a textual indication of whether the remove operation succeeded
- Throws:
MBeanException
-
createParticipant
Deprecated.Extension point for other Bean implementations to provide an implementation bean for its participants. For example @see com.arjuna.ats.internal.jta.tools.osb.mbean.jta.JTAActionBean- Parameters:
rec
- the record that should be represented by an MBeanlistType
- the status of the record- Returns:
- the MBean implementation of the participant
-
createParticipant
protected LogRecordWrapper createParticipant(AbstractRecord rec, ParticipantStatus listType, UidWrapper wrapper) Deprecated. -
getParticipant
Deprecated.See if there is participant Bean corresponding to the given record- Parameters:
rec
- the record for the target participant- Returns:
- the bean corresponding to the requested record
-
register
public void register()Deprecated.register this bean (and its participants) with the MBeanServer- Overrides:
register
in classOSEntryBean
-
unregister
public void unregister()Deprecated.unregister this bean (and its participants) with the MBeanServer- Overrides:
unregister
in classOSEntryBean
-
getAgeInSeconds
public long getAgeInSeconds()Deprecated.- Specified by:
getAgeInSeconds
in interfaceActionBeanMBean
-
getCreationTime
Deprecated.- Specified by:
getCreationTime
in interfaceActionBeanMBean
-
isParticipant
public boolean isParticipant()Deprecated.- Specified by:
isParticipant
in interfaceActionBeanMBean
-
setStatus
Deprecated.Request a change in status of a participant. For example if a record has a heuristic status then this method could be used to move it back into the prepared state so that the recovery system can replay phase 2 of the commitment protocol- Parameters:
logrec
- the record whose status is to be changednewStatus
- the desired status- Returns:
- true if the status was changed
-
getParticipants
Deprecated.- Returns:
- the MBeans corresponding to the participants within this action
-
remove
Deprecated.remove the a participant- Parameters:
logRecordWrapper
- the wrapped log record
-