|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.rendezvous.RdvGreeter
public abstract class RdvGreeter
This abstract class must be extended by all rendezvous peer greeter. A Greeter is reponsible for receiving messages from walkers, and push them to the service that is listening to them.
LimitedRangeWalk,
LimitedRangeWalker,
LimitedRangeGreeter| Constructor Summary | |
|---|---|
RdvGreeter()
|
|
| Method Summary | |
|---|---|
EndpointListener |
getEndpointListener()
get the Endpoint Listener for messages received by this greeter |
abstract void |
replyMessage(Message msg,
Message reply)
Reply to a message received by the Greeter. |
EndpointListener |
setEndpointListener(EndpointListener listener)
set an Endpoint Listener for messages received by this greeter |
abstract void |
start()
Start the greeter |
void |
stop()
Stop the greeter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RdvGreeter()
| Method Detail |
|---|
public EndpointListener setEndpointListener(EndpointListener listener)
listener - An EndpointListener to process the message.
public EndpointListener getEndpointListener()
listener - An EndpointListener to process the message.
public abstract void replyMessage(Message msg,
Message reply)
throws IOException
msg - is the source message received previously by the Greeterreply - is the reply message to be sent to the source of the message.
IOException - when the reply cannot be sent.public abstract void start()
public void stop()
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||