Class JxtaPipeManager


  • public class JxtaPipeManager
    extends java.lang.Object
    This 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
      boolean broadcast​(net.jxta.endpoint.Message message)  
      void clearPipeCache()  
      void removePipeFromCache​(net.jxta.peer.PeerID peerid)
      in the event of a failure or planned shutdown, remove the pipe from the pipeCache
      boolean send​(net.jxta.peer.PeerID peerid, net.jxta.endpoint.Message message)  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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