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

java.lang.Object
  extended by com.sun.enterprise.ee.cms.impl.common.FailureNotificationSignalImpl
All Implemented Interfaces:
FailureNotificationSignal, Signal
Direct Known Subclasses:
FailureRecoverySignalImpl

public class FailureNotificationSignalImpl
extends Object
implements FailureNotificationSignal

Implements FailureNotificationSignal

Version:
$Revision: 1.2 $
Author:
Shreedhar Ganapathy Date: Jan 21, 2004

Field Summary
protected  GMSContext ctx
           
protected  String failedMember
           
protected  String groupName
           
protected static Logger logger
           
protected static String MEMBER_DETAILS
           
protected  long startTime
           
 
Constructor Summary
FailureNotificationSignalImpl(String failedMember, String groupName, long startTime)
           
 
Method Summary
 void acquire()
          Signal is acquired prior to processing of the signal to protect group resources that are being acquired from being affected by a race condition
 String getFailedMemberToken()
          Deprecated.  
 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()
          returns the identity token of the failed member
 long getStartTime()
          returns the start time of the member involved in this Signal.
 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

failedMember

protected String failedMember

groupName

protected String groupName

MEMBER_DETAILS

protected static final String MEMBER_DETAILS
See Also:
Constant Field Values

ctx

protected GMSContext ctx

logger

protected static final Logger logger

startTime

protected long startTime
Constructor Detail

FailureNotificationSignalImpl

public FailureNotificationSignalImpl(String failedMember,
                                     String groupName,
                                     long startTime)
Method Detail

acquire

public void acquire()
             throws SignalAcquireException
Signal is acquired prior to processing of the signal to protect group resources that are 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()
returns the identity token of the failed member

Specified by:
getMemberToken in interface Signal
Returns:
returns the identity token of the member

getFailedMemberToken

public String getFailedMemberToken()
Deprecated. 

returns the identity token of the failed member

Specified by:
getFailedMemberToken in interface FailureNotificationSignal
Returns:
java.lang.String

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()
Description copied from interface: Signal
returns the start time of the member involved in this Signal.

Specified by:
getStartTime in interface Signal
Returns:
long - time stamp of when this member started


Copyright © 2003 Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.