public class PlannedShutdownSignalImpl extends Object implements com.sun.enterprise.ee.cms.core.PlannedShutdownSignal
| Constructor and Description |
|---|
PlannedShutdownSignalImpl(String memberToken,
String groupName,
long startTime,
com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType shutdownType) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire()
Signal is acquired prior to processing of the signal
to protect group resources being
acquired from being affected by a race condition
|
com.sun.enterprise.ee.cms.core.AliveAndReadyView |
getCurrentView() |
com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType |
getEventSubType()
Planned shutdown events can be one of two types, Group Shutdown or
Instance Shutdown.
|
String |
getGroupName()
returns the group to which the member involved in the Signal belonged to
|
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
|
String |
getMemberToken() |
com.sun.enterprise.ee.cms.core.AliveAndReadyView |
getPreviousView() |
long |
getStartTime() |
void |
release()
Signal is released after processing of the signal to bring the
group resources to a state of availability
|
protected static final Logger logger
public void acquire()
throws com.sun.enterprise.ee.cms.core.SignalAcquireException
acquire in interface com.sun.enterprise.ee.cms.core.Signalcom.sun.enterprise.ee.cms.core.SignalAcquireException - Exception when unable to aquire the signalpublic void release()
throws com.sun.enterprise.ee.cms.core.SignalReleaseException
release in interface com.sun.enterprise.ee.cms.core.Signalcom.sun.enterprise.ee.cms.core.SignalReleaseException - Exception when unable to release the signalpublic String getMemberToken()
getMemberToken in interface com.sun.enterprise.ee.cms.core.Signalpublic Map<Serializable,Serializable> getMemberDetails()
getMemberDetails in interface com.sun.enterprise.ee.cms.core.Signalpublic String getGroupName()
getGroupName in interface com.sun.enterprise.ee.cms.core.Signalpublic long getStartTime()
getStartTime in interface com.sun.enterprise.ee.cms.core.Signalpublic com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType getEventSubType()
getEventSubType in interface com.sun.enterprise.ee.cms.core.PlannedShutdownSignalGMSConstantspublic com.sun.enterprise.ee.cms.core.AliveAndReadyView getCurrentView()
getCurrentView in interface com.sun.enterprise.ee.cms.core.AliveAndReadySignalpublic com.sun.enterprise.ee.cms.core.AliveAndReadyView getPreviousView()
getPreviousView in interface com.sun.enterprise.ee.cms.core.AliveAndReadySignalCopyright © 2017–2019 Eclipse Foundation. All rights reserved.