|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The service for constructing pipes between peers.
| Method Summary | |
void |
addPipeConnectionListener(PipeConnectionListener listener)
Adds a pipe connection listener to the pipe service |
Endpoint |
connectOutputEndpoint(java.net.URI uri)
Connects and intializes an output endpoint to the specified URI. |
Endpoint |
connectOutputEndpoint(java.net.URI uri,
boolean init,
SecurityContext context)
Connects an output endpoint to the specified URI |
void |
connectOutputPipe(PipeAdvertisement pipead)
Attempts to connect an output pipe to the pipe specified in the advert. |
void |
connectOutputPipe(java.net.URI uri)
Attempts to connect an output pipe to the specified URI. |
Endpoint |
createInputEndpoint(java.net.URI uri)
Creates and initializes input endpoint for the specified URI |
Endpoint |
createInputEndpoint(java.net.URI uri,
boolean init)
Creates an input endpoint for the specified URI |
Endpoint[] |
createInputEndpoints(PipeAdvertisement pipead,
boolean init)
|
InputPipe |
createInputPipe(PipeAdvertisement pipead)
Creates an input pipe using the specified advert |
InputPipe |
createInputPipe(PipeAdvertisement pipead,
Endpoint[] endpoints)
Creates an input pipe using the specified advert with the specified set of endpoints. |
InputPipe |
createInputPipe(java.net.URI uri)
Creates an input pipe for the specified URI |
EndpointResolver[] |
getEndpointResolvers()
|
java.lang.String[] |
getEndpointSchemes(boolean input)
|
EndpointResolver[] |
getPipeResolvers(java.lang.String scheme,
boolean input)
|
java.lang.String[] |
getPipeSchemes(boolean input)
|
void |
init()
Initialises the pipe service |
boolean |
isEndpointScheme(java.lang.String scheme,
boolean input)
|
boolean |
isPipeSchemes(java.lang.String scheme,
boolean input)
|
void |
register(EndpointResolver resolver)
Register a pipe resolver to create pipes for a particular protocol |
void |
removePipeConnectionListener(PipeConnectionListener listener)
Removes a pipe connection listener from the pipe service |
void |
unregister(EndpointResolver resolver)
Unregister a pipe resolver |
| Method Detail |
public void init()
throws InitializationException,
java.io.IOException
InitializationException
java.io.IOExceptionpublic void addPipeConnectionListener(PipeConnectionListener listener)
public void removePipeConnectionListener(PipeConnectionListener listener)
public Endpoint createInputEndpoint(java.net.URI uri)
throws java.io.IOException
java.io.IOException
public Endpoint createInputEndpoint(java.net.URI uri,
boolean init)
throws java.io.IOException
uri - the uri to connect toinit - true if the endpoint should be initialized
java.io.IOException
public Endpoint[] createInputEndpoints(PipeAdvertisement pipead,
boolean init)
throws UnknownSchemeException,
java.io.IOException
UnknownSchemeException
java.io.IOException
public InputPipe createInputPipe(java.net.URI uri)
throws UnknownSchemeException,
java.io.IOException
UnknownSchemeException
java.io.IOException
public InputPipe createInputPipe(PipeAdvertisement pipead)
throws UnknownSchemeException,
java.io.IOException
UnknownSchemeException
java.io.IOException
public InputPipe createInputPipe(PipeAdvertisement pipead,
Endpoint[] endpoints)
throws java.io.IOException
java.io.IOException
public Endpoint connectOutputEndpoint(java.net.URI uri)
throws UnknownSchemeException,
java.io.IOException
UnknownSchemeException
java.io.IOException
public Endpoint connectOutputEndpoint(java.net.URI uri,
boolean init,
SecurityContext context)
throws UnknownSchemeException,
java.io.IOException
uri - the uri to connect toinit - true if the endpoint should be initializedcontext -
UnknownSchemeException
java.io.IOException
public void connectOutputPipe(java.net.URI uri)
throws UnknownSchemeException,
java.io.IOException
UnknownSchemeException
java.io.IOException
public void connectOutputPipe(PipeAdvertisement pipead)
throws UnknownSchemeException,
java.io.IOException
UnknownSchemeException
java.io.IOExceptionpublic void register(EndpointResolver resolver)
public void unregister(EndpointResolver resolver)
public java.lang.String[] getEndpointSchemes(boolean input)
input - true if input schemes, false if output schemes
public boolean isEndpointScheme(java.lang.String scheme,
boolean input)
scheme - the scheme nameinput - true if input scheme, false if output scheme
public java.lang.String[] getPipeSchemes(boolean input)
input - true if input schemes, false if output schemes
public boolean isPipeSchemes(java.lang.String scheme,
boolean input)
scheme - the scheme nameinput - true if input scheme, false if output scheme
public EndpointResolver[] getEndpointResolvers()
public EndpointResolver[] getPipeResolvers(java.lang.String scheme,
boolean input)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||