|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.pipe.PipeInterface
This class implements the NetPipe interface.
Fields inherited from interface net.jxta.pipe.Pipe |
HandChecking,
NonBlocking,
Propagate |
Constructor Summary | |
PipeInterface(PipeService theRealThing)
The only authorized constructor. |
Method Summary | |
void |
addAddresses(net.jxta.protocol.PipeAdvertisement adv,
java.util.Enumeration addrs)
|
net.jxta.pipe.InputPipe |
createInputPipe(net.jxta.protocol.PipeAdvertisement adv)
Creates an InputPipe of a NetPipe. |
net.jxta.endpoint.Message |
createMessage()
Creates a new Message |
net.jxta.pipe.OutputPipe |
createOutputPipe(net.jxta.protocol.PipeAdvertisement adv,
int type,
java.util.Enumeration peers,
long timeout)
create an OutputPipe from the pipe Advertisement giving a PeerId(s) where the corresponding InputPipe is supposed to be. |
net.jxta.pipe.OutputPipe |
createOutputPipe(net.jxta.protocol.PipeAdvertisement pipeAdv,
int type,
long timeout)
Creates an OutputPipe associated to a NetPipe. |
net.jxta.document.Advertisement |
getAdvertisement()
Returns the advertisment for that service. |
net.jxta.service.Service |
getInterface()
returns an interface object that permits to use this service without having access to the real object. |
void |
init(net.jxta.peergroup.PeerGroup pg,
net.jxta.document.Advertisement a)
Initialize the application FIXME: This is meaningless for the interface object; it is there only to satisfy the requirements of the interface that we implement. |
int |
startApp(java.lang.String[] arg)
This is here for temporary class hierarchy reasons. |
void |
stopApp()
This is here for temporary class hierarchy reasons. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PipeInterface(PipeService theRealThing)
Method Detail |
public net.jxta.service.Service getInterface()
public net.jxta.document.Advertisement getAdvertisement()
public void init(net.jxta.peergroup.PeerGroup pg, net.jxta.document.Advertisement a)
g
- PeerGroup this application is started frompublic int startApp(java.lang.String[] arg)
arg
- A table of strings arguments.public void stopApp()
public net.jxta.pipe.InputPipe createInputPipe(net.jxta.protocol.PipeAdvertisement adv) throws java.io.IOException
adv
- is the public advertisement of the NetPipe.public net.jxta.pipe.OutputPipe createOutputPipe(net.jxta.protocol.PipeAdvertisement pipeAdv, int type, long timeout) throws java.io.IOException
adv
- is the public advertisement of the destination NetPipe.type
- the type of output pipe to createtimeout
- the number of milliseconds to wait while creation of the pipepublic net.jxta.pipe.OutputPipe createOutputPipe(net.jxta.protocol.PipeAdvertisement adv, int type, java.util.Enumeration peers, long timeout) throws java.io.IOException
adv
- is the advertisement of the NetPipe.type
- is an int and contains the name of the diffusion mode for
this OutputPipe.peers
- is an enumeration of the PeerId of thepeers where to look for the
corresponding Pipestimeout
- the number of milliseconds to wait for pipe creationpublic net.jxta.endpoint.Message createMessage()
public void addAddresses(net.jxta.protocol.PipeAdvertisement adv, java.util.Enumeration addrs)
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |