JXTA

net.jxta.impl.rendezvous.rpv
Class PeerViewEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.jxta.impl.rendezvous.rpv.PeerViewEvent
All Implemented Interfaces:
Serializable

public class PeerViewEvent
extends EventObject

Container for PeerViewEvent events.

See Also:
Serialized Form

Field Summary
static int ADD
           
static int FAIL
           
static int REMOVE
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PeerViewEvent(Object source, int type, PeerViewElement element)
          Creates a new event
 
Method Summary
 PeerViewElement getPeerViewElement()
          Returns the PeerViewElement
 int getType()
          Returns the event type
 String toString()
          
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
See Also:
Constant Field Values

REMOVE

public static final int REMOVE
See Also:
Constant Field Values

FAIL

public static final int FAIL
See Also:
Constant Field Values
Constructor Detail

PeerViewEvent

public PeerViewEvent(Object source,
                     int type,
                     PeerViewElement element)
Creates a new event

Parameters:
source - The peer view which is generating the event.
type - the event type
element - the peer associated with the event
Method Detail

toString

public String toString()

Overrides:
toString in class EventObject

getType

public int getType()
Returns the event type

Returns:
int type

getPeerViewElement

public PeerViewElement getPeerViewElement()
Returns the PeerViewElement

Returns:
the peer view element associated with the event

JXSE