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
@Deprecated public class ActionBean extends OSEntryBean implements ActionBeanMBean
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
Nested Classes Modifier and Type Class Description static classActionBean.GenericAtomicActionWrapperDeprecated.The ActionBean needs access to the participant lists maintained by an AtomicAction but these lists are protected.
-
Field Summary
Fields Modifier and Type Field Description protected ActionBeanWrapperInterfaceraDeprecated.protected java.util.List<UidWrapper>recuidsDeprecated.-
Fields inherited from class com.arjuna.ats.arjuna.tools.osb.mbean.OSEntryBean
_uidWrapper, REMOVE_NOK_1, REMOVE_OK_1
-
-
Constructor Summary
Constructors Constructor Description ActionBean(UidWrapper w)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected LogRecordWrappercreateParticipant(AbstractRecord rec, ParticipantStatus listType)Deprecated.Extension point for other Bean implementations to provide an implementation bean for its participants.protected LogRecordWrappercreateParticipant(AbstractRecord rec, ParticipantStatus listType, UidWrapper wrapper)Deprecated.protected ActionBeanWrapperInterfacecreateWrapper(UidWrapper w, boolean activate)Deprecated.longgetAgeInSeconds()Deprecated.java.lang.StringgetCreationTime()Deprecated.LogRecordWrappergetParticipant(AbstractRecord rec)Deprecated.See if there is participant Bean corresponding to the given recordjava.util.Collection<LogRecordWrapper>getParticipants()Deprecated.UidgetUid(AbstractRecord rec)Deprecated.return the Uid for given AbstractRecordbooleanisParticipant()Deprecated.voidregister()Deprecated.register this bean (and its participants) with the MBeanServerjava.lang.Stringremove()Deprecated.Remove this AtomicAction from the ObjectStorevoidremove(LogRecordWrapper logRecordWrapper)Deprecated.remove the a participantbooleansetStatus(LogRecordWrapper logrec, ParticipantStatus newStatus)Deprecated.Request a change in status of a participant.java.lang.StringBuildertoString(java.lang.String prefix, java.lang.StringBuilder sb)Deprecated.voidunregister()Deprecated.unregister this bean (and its participants) with the MBeanServer-
Methods 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 Detail
-
ra
protected ActionBeanWrapperInterface ra
Deprecated.
-
recuids
protected java.util.List<UidWrapper> recuids
Deprecated.
-
-
Constructor Detail
-
ActionBean
public ActionBean(UidWrapper w)
Deprecated.
-
-
Method Detail
-
createWrapper
protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate)
Deprecated.
-
toString
public java.lang.StringBuilder toString(java.lang.String prefix, java.lang.StringBuilder sb)Deprecated.- Overrides:
toStringin classOSEntryBean
-
getUid
public Uid getUid(AbstractRecord rec)
Deprecated.return the Uid for given AbstractRecord- Overrides:
getUidin classOSEntryBean- Parameters:
rec- the record whose Uid is required- Returns:
- the Uid of the requested record
-
remove
public java.lang.String remove() throws javax.management.MBeanExceptionDeprecated.Remove this AtomicAction from the ObjectStore- Specified by:
removein interfaceActionBeanMBean- Specified by:
removein interfaceOSEntryBeanMBean- Overrides:
removein classOSEntryBean- Returns:
- a textual indication of whether the remove operation succeeded
- Throws:
javax.management.MBeanException
-
createParticipant
protected LogRecordWrapper createParticipant(AbstractRecord rec, ParticipantStatus listType)
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
public LogRecordWrapper getParticipant(AbstractRecord rec)
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:
registerin classOSEntryBean
-
unregister
public void unregister()
Deprecated.unregister this bean (and its participants) with the MBeanServer- Overrides:
unregisterin classOSEntryBean
-
getAgeInSeconds
public long getAgeInSeconds()
Deprecated.- Specified by:
getAgeInSecondsin interfaceActionBeanMBean
-
getCreationTime
public java.lang.String getCreationTime()
Deprecated.- Specified by:
getCreationTimein interfaceActionBeanMBean
-
isParticipant
public boolean isParticipant()
Deprecated.- Specified by:
isParticipantin interfaceActionBeanMBean
-
setStatus
public boolean setStatus(LogRecordWrapper logrec, ParticipantStatus newStatus)
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
public java.util.Collection<LogRecordWrapper> getParticipants()
Deprecated.- Returns:
- the MBeans corresponding to the participants within this action
-
remove
public void remove(LogRecordWrapper logRecordWrapper)
Deprecated.remove the a participant- Parameters:
logRecordWrapper- the wrapped log record
-
-