Class JxtaPipeManagerWrapper

    • Constructor Detail

      • JxtaPipeManagerWrapper

        public JxtaPipeManagerWrapper​(JxtaNetworkManager networkManager,
                                      PeerID<net.jxta.peer.PeerID> localPeerID)
    • Method Detail

      • doBroadcast

        protected boolean doBroadcast​(Message message)
                               throws java.io.IOException
        Broadcasts or Multicasts the given Message to all members
        Specified by:
        doBroadcast in class AbstractMultiMessageSender
        Parameters:
        message - a message which is sent to all members
        Returns:
        true if the message is sent to all members successfully, otherwise false
        Throws:
        java.io.IOException - if I/O error occurs or given parameters are not valid
      • doSend

        protected boolean doSend​(PeerID peerID,
                                 Message message)
                          throws java.io.IOException
        Sends the given Message to the destination
        Specified by:
        doSend in class AbstractMultiMessageSender
        Parameters:
        peerID - the destination PeerID. null is not allowed
        message - a message which is sent to the peer
        Returns:
        true if the message is sent to the destination successfully, otherwise false
        Throws:
        java.io.IOException - if I/O error occurs or given parameters are not valid
      • pipeMsgEvent

        public void pipeMsgEvent​(net.jxta.pipe.PipeMsgEvent event)
        Specified by:
        pipeMsgEvent in interface net.jxta.pipe.PipeMsgListener
      • 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()