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 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
  • Field Details

  • Constructor Details

    • ActionBean

      public ActionBean(UidWrapper w)
      Deprecated.
  • Method Details

    • createWrapper

      protected ActionBeanWrapperInterface createWrapper(UidWrapper w, boolean activate)
      Deprecated.
    • toString

      public StringBuilder toString(String prefix, StringBuilder sb)
      Deprecated.
      Overrides:
      toString in class OSEntryBean
    • getUid

      public Uid getUid(AbstractRecord rec)
      Deprecated.
      return the Uid for given AbstractRecord
      Overrides:
      getUid in class OSEntryBean
      Parameters:
      rec - the record whose Uid is required
      Returns:
      the Uid of the requested record
    • remove

      public String remove() throws MBeanException
      Deprecated.
      Remove this AtomicAction from the ObjectStore
      Specified by:
      remove in interface ActionBeanMBean
      Specified by:
      remove in interface OSEntryBeanMBean
      Overrides:
      remove in class OSEntryBean
      Returns:
      a textual indication of whether the remove operation succeeded
      Throws:
      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 MBean
      listType - 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:
      register in class OSEntryBean
    • unregister

      public void unregister()
      Deprecated.
      unregister this bean (and its participants) with the MBeanServer
      Overrides:
      unregister in class OSEntryBean
    • getAgeInSeconds

      public long getAgeInSeconds()
      Deprecated.
      Specified by:
      getAgeInSeconds in interface ActionBeanMBean
    • getCreationTime

      public String getCreationTime()
      Deprecated.
      Specified by:
      getCreationTime in interface ActionBeanMBean
    • isParticipant

      public boolean isParticipant()
      Deprecated.
      Specified by:
      isParticipant in interface ActionBeanMBean
    • 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 changed
      newStatus - the desired status
      Returns:
      true if the status was changed
    • getParticipants

      public 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