JXTA

net.jxta.rendezvous
Class RendezvousEvent

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

public class RendezvousEvent
extends EventObject

Container for Rendezvous Service events. The source of the event is the rendezvous service generating the event

See Also:
Serialized Form

Field Summary
static int BECAMEEDGE
          Node has become a edge
static int BECAMERDV
          Node has become a rendezvous
static int CLIENTCONNECT
          Client connection event
static int CLIENTDISCONNECT
          Client disconnection event
static int CLIENTFAILED
          Client connection failure
static int CLIENTRECONNECT
          Client Connection renewal event
static int RDVCONNECT
          Rendezvous connection event
static int RDVDISCONNECT
          Rendezvous disconnection event
static int RDVFAILED
          Rendezvous connection failure
static int RDVRECONNECT
          Connection renewal event
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RendezvousEvent(Object source, int type, ID peer)
          Creates a new event
 
Method Summary
 String getPeer()
          Returns peerid
 ID getPeerID()
          Returns peerid
 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

RDVCONNECT

public static final int RDVCONNECT
Rendezvous connection event

See Also:
Constant Field Values

RDVRECONNECT

public static final int RDVRECONNECT
Connection renewal event

See Also:
Constant Field Values

CLIENTCONNECT

public static final int CLIENTCONNECT
Client connection event

See Also:
Constant Field Values

CLIENTRECONNECT

public static final int CLIENTRECONNECT
Client Connection renewal event

See Also:
Constant Field Values

RDVDISCONNECT

public static final int RDVDISCONNECT
Rendezvous disconnection event

See Also:
Constant Field Values

RDVFAILED

public static final int RDVFAILED
Rendezvous connection failure

See Also:
Constant Field Values

CLIENTDISCONNECT

public static final int CLIENTDISCONNECT
Client disconnection event

See Also:
Constant Field Values

CLIENTFAILED

public static final int CLIENTFAILED
Client connection failure

See Also:
Constant Field Values

BECAMERDV

public static final int BECAMERDV
Node has become a rendezvous

See Also:
Constant Field Values

BECAMEEDGE

public static final int BECAMEEDGE
Node has become a edge

See Also:
Constant Field Values
Constructor Detail

RendezvousEvent

public RendezvousEvent(Object source,
                       int type,
                       ID peer)
Creates a new event

Parameters:
source - The rendezvous service which generated the event.
type - the event type.
peer - 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

getPeer

public String getPeer()
Returns peerid

Returns:
the peer associated with the event

getPeerID

public ID getPeerID()
Returns peerid

Returns:
the peer associated with the event

JXSE