Class PlannedShutdownSignalImpl
- java.lang.Object
-
- com.sun.enterprise.ee.cms.impl.common.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 java.lang.Object implements com.sun.enterprise.ee.cms.core.PlannedShutdownSignalImplementation of PlannedShutdownSignal.- Version:
- $Revision$
- Author:
- Shreedhar Ganapathy Date: Feb 22, 2005
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.logging.Loggerlogger
-
Constructor Summary
Constructors Constructor Description PlannedShutdownSignalImpl(java.lang.String memberToken, java.lang.String groupName, long startTime, com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType shutdownType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquire()Signal is acquired prior to processing of the signal to protect group resources being acquired from being affected by a race conditioncom.sun.enterprise.ee.cms.core.AliveAndReadyViewgetCurrentView()com.sun.enterprise.ee.cms.core.GMSConstants.shutdownTypegetEventSubType()Planned shutdown events can be one of two types, Group Shutdown or Instance Shutdown.java.lang.StringgetGroupName()returns the group to which the member involved in the Signal belonged tojava.util.Map<java.io.Serializable,java.io.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 detailsjava.lang.StringgetMemberToken()com.sun.enterprise.ee.cms.core.AliveAndReadyViewgetPreviousView()longgetStartTime()voidrelease()Signal is released after processing of the signal to bring the group resources to a state of availability
-
-
-
Method Detail
-
acquire
public void acquire() throws com.sun.enterprise.ee.cms.core.SignalAcquireExceptionSignal is acquired prior to processing of the signal to protect group resources being acquired from being affected by a race condition- Specified by:
acquirein interfacecom.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.SignalReleaseExceptionSignal is released after processing of the signal to bring the group resources to a state of availability- Specified by:
releasein interfacecom.sun.enterprise.ee.cms.core.Signal- Throws:
com.sun.enterprise.ee.cms.core.SignalReleaseException- Exception when unable to release the signal
-
getMemberToken
public java.lang.String getMemberToken()
- Specified by:
getMemberTokenin interfacecom.sun.enterprise.ee.cms.core.Signal
-
getMemberDetails
public java.util.Map<java.io.Serializable,java.io.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:
getMemberDetailsin interfacecom.sun.enterprise.ee.cms.core.Signal- Returns:
- Map - <Serializable, Serializable>
-
getGroupName
public java.lang.String getGroupName()
returns the group to which the member involved in the Signal belonged to- Specified by:
getGroupNamein interfacecom.sun.enterprise.ee.cms.core.Signal- Returns:
- String
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfacecom.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:
getEventSubTypein interfacecom.sun.enterprise.ee.cms.core.PlannedShutdownSignal- Returns:
- GMSConstants.shutdownType
- See Also:
GMSConstants
-
getCurrentView
public com.sun.enterprise.ee.cms.core.AliveAndReadyView getCurrentView()
- Specified by:
getCurrentViewin interfacecom.sun.enterprise.ee.cms.core.AliveAndReadySignal
-
getPreviousView
public com.sun.enterprise.ee.cms.core.AliveAndReadyView getPreviousView()
- Specified by:
getPreviousViewin interfacecom.sun.enterprise.ee.cms.core.AliveAndReadySignal
-
-