Class 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
    • Constructor Detail

      • ActionBean

        public ActionBean​(UidWrapper w)
        Deprecated.
    • Method Detail

      • toString

        public java.lang.StringBuilder toString​(java.lang.String prefix,
                                                java.lang.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 java.lang.String remove()
                                throws javax.management.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:
        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 MBean
        listType - the status of the record
        Returns:
        the MBean implementation of the participant
      • 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
      • 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 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