|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectp2ps.imp.pipe.PipeServiceImp
The service for creating input pipes and connecting output pipes.
| Constructor Summary | |
PipeServiceImp(Peer peer)
|
|
| 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)
Connects an output pipe to the specified URI |
Endpoint |
createInputEndpoint(java.net.URI uri)
Creates an 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 the pipe resolver |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PipeServiceImp(Peer peer)
| Method Detail |
public void init()
throws InitializationException,
java.io.IOException
init in interface PipeServiceInitializationException
java.io.IOExceptionpublic void addPipeConnectionListener(PipeConnectionListener listener)
addPipeConnectionListener in interface PipeServicepublic void removePipeConnectionListener(PipeConnectionListener listener)
removePipeConnectionListener in interface PipeServicepublic void register(EndpointResolver resolver)
register in interface PipeServicepublic void unregister(EndpointResolver resolver)
unregister in interface PipeServicepublic java.lang.String[] getEndpointSchemes(boolean input)
getEndpointSchemes in interface PipeServiceinput - true if input schemes, false if output schemes
public boolean isEndpointScheme(java.lang.String scheme,
boolean input)
isEndpointScheme in interface PipeServicescheme - the scheme nameinput - true if input scheme, false if output scheme
public java.lang.String[] getPipeSchemes(boolean input)
getPipeSchemes in interface PipeServiceinput - true if input schemes, false if output schemes
public boolean isPipeSchemes(java.lang.String scheme,
boolean input)
isPipeSchemes in interface PipeServicescheme - the scheme nameinput - true if input scheme, false if output scheme
public EndpointResolver[] getEndpointResolvers()
getEndpointResolvers in interface PipeService
public EndpointResolver[] getPipeResolvers(java.lang.String scheme,
boolean input)
getPipeResolvers in interface PipeService
public Endpoint createInputEndpoint(java.net.URI uri)
throws java.io.IOException
createInputEndpoint in interface PipeServicejava.io.IOException
public Endpoint createInputEndpoint(java.net.URI uri,
boolean init)
throws java.io.IOException
createInputEndpoint in interface PipeServiceuri - 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
createInputEndpoints in interface PipeServiceUnknownSchemeException
java.io.IOException
public InputPipe createInputPipe(java.net.URI uri)
throws UnknownSchemeException,
java.io.IOException
createInputPipe in interface PipeServiceUnknownSchemeException
java.io.IOException
public InputPipe createInputPipe(PipeAdvertisement pipead)
throws UnknownSchemeException,
java.io.IOException
createInputPipe in interface PipeServiceUnknownSchemeException
java.io.IOException
public InputPipe createInputPipe(PipeAdvertisement pipead,
Endpoint[] endpoints)
throws java.io.IOException
createInputPipe in interface PipeServicejava.io.IOException
public Endpoint connectOutputEndpoint(java.net.URI uri)
throws UnknownSchemeException,
java.io.IOException
connectOutputEndpoint in interface PipeServiceUnknownSchemeException
java.io.IOException
public Endpoint connectOutputEndpoint(java.net.URI uri,
boolean init,
SecurityContext context)
throws UnknownSchemeException,
java.io.IOException
connectOutputEndpoint in interface PipeServiceuri - 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
connectOutputPipe in interface PipeServiceUnknownSchemeException
java.io.IOException
public void connectOutputPipe(PipeAdvertisement pipead)
throws UnknownSchemeException,
java.io.IOException
connectOutputPipe in interface PipeServiceUnknownSchemeException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||