jgroup.util.log
Class ViewEvent

java.lang.Object
  extended by jgroup.util.log.Event
      extended by 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.
 
Field Summary
 
Fields inherited from class jgroup.util.log.Event
description, eventHost, time, type
 
Constructor Summary
ViewEvent(EventType type, View view)
           
 
Method Summary
protected  void commonToString(java.lang.StringBuilder buf)
           
 int getGroupId()
           
 View getView()
           
 long getViewId()
           
 int getViewSize()
           
 boolean hasTooManyReplicas()
           
 boolean isFirstView()
           
 boolean isFullyReplicated()
           
 boolean isOK()
           
 boolean needRecovery()
           
 java.lang.String shortToString()
          Print the content of this view event without the host and time.
 java.lang.String toString()
           
 
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
 

Constructor Detail

ViewEvent

public ViewEvent(EventType type,
                 View view)
Method Detail

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.