com.sun.enterprise.ee.cms.core
Interface AliveAndReadyView


public interface AliveAndReadyView

A read-only view consisting of all the AliveAndReady CORE members of a GMS group. The GMS notification signals of JoinedAndReadyNotificationSignal, FailureNotificationSignal and PlannedShutdownSignal transition from one of these views to the next view. When one of these signal occurs, the current view is terminated by setting its signal. While the view's signal is null, it is considered the current view. Once a terminating signal occurs, than this view is considered the previous view and getSignal() returns the GMS notification that caused this view to conclude.


Method Summary
 java.util.SortedSet<java.lang.String> getMembers()
          These are members of this view BEFORE the GMS notification signal that terminated this view as being the current view.
 Signal getSignal()
           
 long getSignalTime()
           
 long getViewCreationTime()
           
 long getViewDuration()
           
 long getViewId()
          Monotonically increasing id.
 

Method Detail

getMembers

java.util.SortedSet<java.lang.String> getMembers()
These are members of this view BEFORE the GMS notification signal that terminated this view as being the current view.

Returns:
an unmodifiable list of sorted CORE members who are alive and ready.

getSignal

Signal getSignal()
Returns:
signal that caused transition from this view. returns null when this is the current view and no signal has occurred to cause a transition to the next view.

getSignalTime

long getSignalTime()
Returns:
time this view ceased being the current view when its signal was set.

getViewId

long getViewId()
Monotonically increasing id. Each GMS notification signal for a core member that causes a new view to be created results in this value being increased.

Returns:
a generated id

getViewDuration

long getViewDuration()
Returns:
duration in milliseconds that this view is/was the current view. If getSignal is null, this value is still growing each time this method is called.

getViewCreationTime

long getViewCreationTime()
Returns:
time that this view got created.


Copyright © 2010. All Rights Reserved.