Project JXTA

net.jxta.rendezvous
Class RendezvousEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bynet.jxta.rendezvous.RendezvousEvent
All Implemented Interfaces:
Serializable

public class RendezvousEvent
extends EventObject

Container for RendezvousEvent events. The source of the event is the rendezvous service which

See Also:
Serialized Form

Field Summary
static int BECAMEEDGE
           
static int BECAMERDV
           
static int CLIENTCONNECT
           
static int CLIENTDISCONNECT
           
static int CLIENTFAILED
           
static int CLIENTRECONNECT
           
static int RDVCONNECT
           
static int RDVDISCONNECT
           
static int RDVFAILED
           
static int RDVRECONNECT
           
 
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
See Also:
Constant Field Values

RDVRECONNECT

public static final int RDVRECONNECT
See Also:
Constant Field Values

CLIENTCONNECT

public static final int CLIENTCONNECT
See Also:
Constant Field Values

CLIENTRECONNECT

public static final int CLIENTRECONNECT
See Also:
Constant Field Values

RDVDISCONNECT

public static final int RDVDISCONNECT
See Also:
Constant Field Values

RDVFAILED

public static final int RDVFAILED
See Also:
Constant Field Values

CLIENTDISCONNECT

public static final int CLIENTDISCONNECT
See Also:
Constant Field Values

CLIENTFAILED

public static final int CLIENTFAILED
See Also:
Constant Field Values

BECAMERDV

public static final int BECAMERDV
See Also:
Constant Field Values

BECAMEEDGE

public static final int BECAMEEDGE
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()


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

JXTA J2SE