Package net.jxta.peer

Examples of net.jxta.peer.PeerID


    private boolean createPipes(int numPipes, PipeAdvertisement pipeAdvertisement, String newPartnerInstance) {
        if (_pipelogger.isLoggable(Level.FINE)) {
            _pipelogger.fine("JxtaBiDiPipeWrapper>>createPipes:newPartnerInstance: " + newPartnerInstance);
        }
        PipeConnectionResult connectionResult = null;
        PeerID partnerPeerId = JxtaStarter.getPeerID(newPartnerInstance);
        ArrayList pipeWrappers = new ArrayList();
        for (int i=0; i<numPipes; i++) {
            try {
                JxtaBiDiPipe nextPipe = new JxtaBiDiPipe();
                nextPipe.setReliable(true);
View Full Code Here


    protected Socket connect(String instanceName) {
        JxtaStarter jxtaStarter = JxtaStarter.createInstance();
        PeerGroup netPeerGroup = jxtaStarter.getNetPeerGroup();
        PipeAdvertisement pipeAdv = JxtaUtil.getServerSocketAdv(instanceName + "-OOB");
        Socket socket = null;
        PeerID peerId = null;
        try {
            peerId = JxtaUtil.getPeerID(instanceName);
        } catch (Exception ex) {
            logger.log(Level.WARNING, "Unable to get the peerId for " +
                    instanceName + ". Trying to connect without peerId.", ex);
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=" +
View Full Code Here

TOP

Related Classes of net.jxta.peer.PeerID

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.