Class JxtaPipeManager
- java.lang.Object
-
- com.sun.enterprise.mgmt.transport.jxta.JxtaPipeManager
-
public class JxtaPipeManager extends java.lang.ObjectThis class manages Jxta's InputPipe and OutputPipe and sends Jxta's message through JxtaUtility This stores and caches Jxta's OutputPipe according to Jxta's PeerID- Author:
- Bongjae Chang
-
-
Constructor Summary
Constructors Constructor Description JxtaPipeManager(JxtaNetworkManager networkManager, net.jxta.pipe.PipeService pipeService, net.jxta.protocol.PipeAdvertisement pipeAdv, net.jxta.pipe.PipeMsgListener pipeMsgListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbroadcast(net.jxta.endpoint.Message message)voidclearPipeCache()voidremovePipeFromCache(net.jxta.peer.PeerID peerid)in the event of a failure or planned shutdown, remove the pipe from the pipeCachebooleansend(net.jxta.peer.PeerID peerid, net.jxta.endpoint.Message message)voidstart()voidstop()
-
-
-
Constructor Detail
-
JxtaPipeManager
public JxtaPipeManager(JxtaNetworkManager networkManager, net.jxta.pipe.PipeService pipeService, net.jxta.protocol.PipeAdvertisement pipeAdv, net.jxta.pipe.PipeMsgListener pipeMsgListener)
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
removePipeFromCache
public void removePipeFromCache(net.jxta.peer.PeerID peerid)
in the event of a failure or planned shutdown, remove the pipe from the pipeCache- Parameters:
peerid- peerID
-
clearPipeCache
public void clearPipeCache()
-
send
public boolean send(net.jxta.peer.PeerID peerid, net.jxta.endpoint.Message message) throws java.io.IOException- Throws:
java.io.IOException
-
broadcast
public boolean broadcast(net.jxta.endpoint.Message message) throws java.io.IOException- Throws:
java.io.IOException
-
-