Package net.jxta.pipe

Examples of net.jxta.pipe.OutputPipe


    /**
     *  initialize the propagated output pipe
     */   
    private void initializePropagatedOutputPipe() {
        OutputPipe op = this.createPropagatedOutputPipe();
        if (_pipelogger.isLoggable(Level.FINEST)) {
            _pipelogger.finest("setting JxtaSenderPipeManagers bidipipewrapper = " + this);
        }
        JxtaSenderPipeManager.createInstance().setJxtaBiDiPipeWrapper(this);
        JxtaSenderPipeManager.createInstance().setPropagatedOutputPipe(op);
View Full Code Here


        JxtaSenderPipeManager.createInstance().closePropagatedOutputPipe();
        JxtaReceiverPipeManager.createInstance().closePropagatedInputPipeWrapper();
    }    
   
    private void sentTestPropagatedMessage() {  
        OutputPipe outputPipe =
            JxtaSenderPipeManager.createInstance().getPropagatedOutputPipe();
        sendTestPropagatedMessages(outputPipe);
    }
View Full Code Here

        PipeService pipeService = this.netPeerGroup.getPipeService();
        PipeAdvertisement pipeAdv = JxtaUtil.getPropagatedPipeAdvertisement();
        if (_pipelogger.isLoggable(Level.FINEST)) {
            _pipelogger.finest("prop pipe adv: " + pipeAdv);
        }       
        OutputPipe op = null;
        try {
            //op = pipeService.createOutputPipe(pipeAdv, Collections.singleton(JxtaUtil.getPeerID(instanceName)), 10000);
            op = pipeService.createOutputPipe(pipeAdv, 100);
        } catch (IOException ex) {
            //log this
View Full Code Here

    private static void makePipe(JxtaUnicastPipeWrapper pw,
  String instanceName, RouteAdvertisement ra) throws IOException {

  PeerID peerID = JxtaStarter.getPeerID(instanceName);
        OutputPipe p = new BlockingWireOutputPipe(
    JxtaUtil.getNetPeerGroup(),
    JxtaUtil.getPropagatedPipeAdvertisement(), peerID, ra);
        if (_pipelogger.isLoggable(Level.FINE)) {
            _pipelogger.fine("create PropagatedPipe instance=" +
        instanceName + " peerId="+ peerID + " routeAdv=" + ra);
View Full Code Here

    private OutputPipe getPropagatedSingletonOutputPipe() {        
        return JxtaSenderPipeManager.createInstance().getPropagatedOutputPipe();
    }
   
    public void sendOverPropagatedPipe(Message theMsg) {
        OutputPipe outputPipe = getPropagatedSingletonOutputPipe();
        if(outputPipe != null) {
            try {
                outputPipe.send(theMsg);
            } catch (IOException ex) {
                // FIXME evaluate log level
                if(_pipelogger.isLoggable(Level.INFO)) {
                    _pipelogger.log(Level.INFO, "Exception occurred sending message over propagated pipe" , ex);
                }        
View Full Code Here

TOP

Related Classes of net.jxta.pipe.OutputPipe

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.