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

java.lang.Object
  extended by com.sun.enterprise.ee.cms.impl.common.AliveAndReadyViewImpl
All Implemented Interfaces:
AliveAndReadyView

public class AliveAndReadyViewImpl
extends Object
implements AliveAndReadyView


Constructor Summary
AliveAndReadyViewImpl(SortedSet<String> members, long viewId)
           
 
Method Summary
 SortedSet<String> getMembers()
           
 Signal getSignal()
           
 long getSignalTime()
           
 long getViewCreationTime()
           
 long getViewDuration()
           
 long getViewId()
           
 void setSignal(Signal signal)
          Terminates this view as being the current view.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AliveAndReadyViewImpl

public AliveAndReadyViewImpl(SortedSet<String> members,
                             long viewId)
Method Detail

setSignal

public void setSignal(Signal signal)
Terminates this view as being the current view.

Parameters:
signal -
Throws:
NullPointerException - if closeViewSignal is null.

getSignal

public Signal getSignal()
Specified by:
getSignal in interface AliveAndReadyView
Returns:
signal that caused transition to this view.

getMembers

public SortedSet<String> getMembers()
Specified by:
getMembers in interface AliveAndReadyView
Returns:
an unmodifiable list of members who were alive and ready.

getSignalTime

public long getSignalTime()
Specified by:
getSignalTime in interface AliveAndReadyView
Returns:
time that this signal notification first occurred.

getViewId

public long getViewId()
Specified by:
getViewId in interface AliveAndReadyView

getViewCreationTime

public long getViewCreationTime()
Specified by:
getViewCreationTime in interface AliveAndReadyView

getViewDuration

public long getViewDuration()
Specified by:
getViewDuration in interface AliveAndReadyView

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.