|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.endpoint.router.Destinations
public class Destinations
This class is a repository of wisdom regarding destinations. It also provides a messenger if there is one. Currently, the wisdom is very limited and is only about direct destinations (for which a messenger once existed). The wisdom that can be obtained is:
Nested Class Summary | |
---|---|
(package private) class |
Destinations.Wisdom
This class stores knowlege about one particular destination. |
Constructor Summary | |
---|---|
Destinations(EndpointService endpoint)
|
Method Summary | |
---|---|
boolean |
addIncomingMessenger(EndpointAddress destination,
Messenger messenger)
Here is an incoming messenger that just poped out. |
boolean |
addOutgoingMessenger(EndpointAddress destination,
Messenger messenger)
Here is a messenger that we were able to obtain. |
List |
allDestinations()
|
void |
close()
Shutdown this cache. |
Messenger |
getCurrentMessenger(EndpointAddress destination)
If there is a messenger at hand (incoming or otherwise), return it. |
boolean |
isCurrentlyReachable(EndpointAddress destination)
Is there a messenger at hand, or is it likely that we can make one ? |
boolean |
isNormallyReachable(EndpointAddress destination)
Is it likely that one can be made from this end. |
boolean |
isWelcomeNeeded(EndpointAddress destination)
Are we supposed to send a welcome to that destination (we can't remember having done it). |
void |
noOutgoingMessenger(EndpointAddress destination)
We tried to get a messenger but could not. |
void |
run()
garbage collector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Destinations(EndpointService endpoint)
Method Detail |
---|
public void close()
public void run()
run
in interface Runnable
public List allDestinations()
public Messenger getCurrentMessenger(EndpointAddress destination)
destination
- The destination as an endpoint address (is automatically normalized to protocol and address only).public boolean isNormallyReachable(EndpointAddress destination)
destination
- The destination as an endpoint address (is automatically normalized to protocol and address only).
public boolean isCurrentlyReachable(EndpointAddress destination)
destination
- The destination as an endpoint address (is automatically normalized to protocol and address only).
public boolean isWelcomeNeeded(EndpointAddress destination)
destination
- The destination as an endpoint address (is automatically normalized to protocol and address only).
public boolean addOutgoingMessenger(EndpointAddress destination, Messenger messenger)
destination
- The destination as an endpoint address (is automatically normalized to protocol and address only).messenger
- The incoming messenger for that destination.
public boolean addIncomingMessenger(EndpointAddress destination, Messenger messenger)
destination
- The destination as an endpoint address (is automatically normalized to protocol and address only).messenger
- The incoming messenger for that destination.
public void noOutgoingMessenger(EndpointAddress destination)
destination
- The destination as an endpoint address (is automatically normalized to protocol and address only).
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |