com.sun.enterprise.ee.cms.impl.common
Class PlannedShutdownSignalImpl

java.lang.Object
  extended by com.sun.enterprise.ee.cms.impl.common.PlannedShutdownSignalImpl
All Implemented Interfaces:
AliveAndReadySignal, PlannedShutdownSignal, Signal

public class PlannedShutdownSignalImpl
extends Object
implements PlannedShutdownSignal

Implementation of PlannedShutdownSignal.

Version:
$Revision: 1261 $
Author:
Shreedhar Ganapathy Date: Feb 22, 2005

Field Summary
protected static Logger logger
           
 
Constructor Summary
PlannedShutdownSignalImpl(String memberToken, String groupName, long startTime, GMSConstants.shutdownType shutdownType)
           
 
Method Summary
 void acquire()
          Signal is acquired prior to processing of the signal to protect group resources being acquired from being affected by a race condition
 AliveAndReadyView getCurrentView()
           
 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()
           
 AliveAndReadyView getPreviousView()
           
 long getStartTime()
           
 void release()
          Signal is released after processing of the signal to bring the group resources to a state of availability
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Logger logger
Constructor Detail

PlannedShutdownSignalImpl

public PlannedShutdownSignalImpl(String memberToken,
                                 String groupName,
                                 long startTime,
                                 GMSConstants.shutdownType shutdownType)
Method Detail

acquire

public void acquire()
             throws 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 Signal
Throws:
SignalAcquireException

release

public void release()
             throws SignalReleaseException
Signal is released after processing of the signal to bring the group resources to a state of availability

Specified by:
release in interface Signal
Throws:
SignalReleaseException

getMemberToken

public String getMemberToken()
Specified by:
getMemberToken in interface 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 Signal
Returns:
Map -

getGroupName

public String getGroupName()
returns the group to which the member involved in the Signal belonged to

Specified by:
getGroupName in interface Signal
Returns:
String

getStartTime

public long getStartTime()
Specified by:
getStartTime in interface Signal

getEventSubType

public 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 PlannedShutdownSignal
Returns:
GMSConstants.shutdownType
See Also:
GMSConstants

getCurrentView

public AliveAndReadyView getCurrentView()
Specified by:
getCurrentView in interface AliveAndReadySignal

getPreviousView

public AliveAndReadyView getPreviousView()
Specified by:
getPreviousView in interface AliveAndReadySignal


Copyright © 2012. All Rights Reserved.