Class PlannedShutdownSignalImpl

  • All Implemented Interfaces:
    com.sun.enterprise.ee.cms.core.AliveAndReadySignal, com.sun.enterprise.ee.cms.core.PlannedShutdownSignal, com.sun.enterprise.ee.cms.core.Signal

    public class PlannedShutdownSignalImpl
    extends Object
    implements com.sun.enterprise.ee.cms.core.PlannedShutdownSignal
    Implementation of PlannedShutdownSignal.
    Version:
    $Revision$
    Author:
    Shreedhar Ganapathy Date: Feb 22, 2005
    • Field Detail

      • logger

        protected static final Logger logger
    • Constructor Detail

      • PlannedShutdownSignalImpl

        public PlannedShutdownSignalImpl​(String memberToken,
                                         String groupName,
                                         long startTime,
                                         com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType shutdownType)
    • Method Detail

      • acquire

        public void acquire()
                     throws com.sun.enterprise.ee.cms.core.SignalAcquireException
        Signal is acquired prior to processing of the signal to protect group resources being acquired from being affected by a race condition
        Specified by:
        acquire in interface com.sun.enterprise.ee.cms.core.Signal
        Throws:
        com.sun.enterprise.ee.cms.core.SignalAcquireException - Exception when unable to aquire the signal
      • release

        public void release()
                     throws com.sun.enterprise.ee.cms.core.SignalReleaseException
        Signal is released after processing of the signal to bring the group resources to a state of availability
        Specified by:
        release in interface com.sun.enterprise.ee.cms.core.Signal
        Throws:
        com.sun.enterprise.ee.cms.core.SignalReleaseException - Exception when unable to release the signal
      • getMemberToken

        public String getMemberToken()
        Specified by:
        getMemberToken in interface com.sun.enterprise.ee.cms.core.Signal
      • getMemberDetails

        public Map<Serializable,​Serializable> getMemberDetails()
        returns the details of the member who caused this Signal to be generated returns a Map containing key-value pairs constituting data pertaining to the member's details
        Specified by:
        getMemberDetails in interface com.sun.enterprise.ee.cms.core.Signal
        Returns:
        Map - <Serializable, Serializable>
      • getGroupName

        public String getGroupName()
        returns the group to which the member involved in the Signal belonged to
        Specified by:
        getGroupName in interface com.sun.enterprise.ee.cms.core.Signal
        Returns:
        String
      • getStartTime

        public long getStartTime()
        Specified by:
        getStartTime in interface com.sun.enterprise.ee.cms.core.Signal
      • getEventSubType

        public com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType getEventSubType()
        Planned shutdown events can be one of two types, Group Shutdown or Instance Shutdown. These types are defined in an enum in the class GMSConstants.shutdownType
        Specified by:
        getEventSubType in interface com.sun.enterprise.ee.cms.core.PlannedShutdownSignal
        Returns:
        GMSConstants.shutdownType
        See Also:
        GMSConstants
      • getCurrentView

        public com.sun.enterprise.ee.cms.core.AliveAndReadyView getCurrentView()
        Specified by:
        getCurrentView in interface com.sun.enterprise.ee.cms.core.AliveAndReadySignal
      • getPreviousView

        public com.sun.enterprise.ee.cms.core.AliveAndReadyView getPreviousView()
        Specified by:
        getPreviousView in interface com.sun.enterprise.ee.cms.core.AliveAndReadySignal