|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectp2ps.imp.pipe.PipeConnectHandler
A class that handles the resolving and connecting of output pipes, including the searching for appropriate resolvers.
TODO: time out connect events TODO: publish resolver query if existing resolvers fail
| Constructor Summary | |
PipeConnectHandler(Peer peer)
Connects an output pipe to the specified pipe |
|
| Method Summary | |
void |
addPipeConnectionListener(PipeConnectionListener listener)
Adds a pipe connection listener to the pipe service |
void |
advertDiscovered(DiscoveryEvent event)
|
void |
connectOutputPipe(PipeAdvertisement pipead)
Tries to create a new output pipe, notifies registered PipeConnectionListeners. |
void |
connectOutputPipe(PipeAdvertisement pipead,
java.net.URI endpointuri)
Creates an output pipe from a resolved endpoint |
void |
handleEndpointAdvertisement(EndpointAdvertisement advert)
Called when a pipe is resolved |
void |
init()
|
void |
messageReceived(MessageReceivedEvent event)
Called when a message is received by the pipe |
void |
removePipeConnectionListener(PipeConnectionListener listener)
Removes a pipe connection listener from the pipe service |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PipeConnectHandler(Peer peer)
| Method Detail |
public void init()
throws java.io.IOException
java.io.IOExceptionpublic void addPipeConnectionListener(PipeConnectionListener listener)
public void removePipeConnectionListener(PipeConnectionListener listener)
public void connectOutputPipe(PipeAdvertisement pipead)
throws java.io.IOException
java.io.IOException
public void connectOutputPipe(PipeAdvertisement pipead,
java.net.URI endpointuri)
throws UnknownSchemeException,
java.io.IOException
UnknownSchemeException
java.io.IOExceptionpublic void messageReceived(MessageReceivedEvent event)
messageReceived in interface MessageListenerpublic void advertDiscovered(DiscoveryEvent event)
advertDiscovered in interface DiscoveryListenerpublic void handleEndpointAdvertisement(EndpointAdvertisement advert)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||