jgroup.util.log
Class ViewEvent
java.lang.Object
jgroup.util.log.Event
jgroup.util.log.ViewEvent
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Event>
public final class ViewEvent
- extends Event
A view event to be logged.
- Author:
- Rune Vestvik, Hein Meling
- See Also:
- Serialized Form
Nested Class Summary |
static class |
ViewEvent.Type
Supported view change event types. |
Methods inherited from class jgroup.util.log.Event |
commonToString, compareTo, getDescription, getHost, getHostname, getTime, getType, isLastEvent, isType, setRelativeTo, setTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ViewEvent
public ViewEvent(EventType type,
View view)
getViewSize
public int getViewSize()
getViewId
public long getViewId()
getView
public View getView()
getGroupId
public int getGroupId()
isFirstView
public boolean isFirstView()
- Returns:
- True if this view is the first view installed by the member of this view.
False is returned otherwise. Meaning that if there is more than one member or
if the single member view is not the first that the member has installed, then
false will be returned.
isFullyReplicated
public boolean isFullyReplicated()
isOK
public boolean isOK()
needRecovery
public boolean needRecovery()
hasTooManyReplicas
public boolean hasTooManyReplicas()
toString
public java.lang.String toString()
- Overrides:
toString
in class Event
shortToString
public java.lang.String shortToString()
- Print the content of this view event without the host and time.
commonToString
protected void commonToString(java.lang.StringBuilder buf)
Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.