Package org.apache.cloudstack.framework.transport

Examples of org.apache.cloudstack.framework.transport.TransportEndpointSite


    } else {
      endpointId = String.valueOf(getNextEndpointId());
      transportAddress = new TransportAddress(_nodeId, TransportAddress.LOCAL_SERVICE_CONNECTION, endpointId);
    }
   
    TransportEndpointSite endpointSite;
    synchronized(this) {
      endpointSite = _endpointMap.get(endpointId);
      if(endpointSite != null) {
        // already attached
        return endpointSite;
      }
      endpointSite = new TransportEndpointSite(this, endpoint, transportAddress);
      _endpointMap.put(endpointId, endpointSite);
    }
   
    endpoint.onAttachConfirm(true, transportAddress.toString());
    return endpointSite;
View Full Code Here


  private void dispatchPdu(TransportPdu pdu) {
   
    TransportAddress transportAddress = TransportAddress.fromAddressString(pdu.getDestAddress());
   
    if(isLocalAddress(transportAddress)) {
      TransportEndpointSite endpointSite = null;
      synchronized(this) {
        endpointSite = _endpointMap.get(transportAddress.getEndpointId());
      }
     
      if(endpointSite != null)
        endpointSite.addOutputPdu(pdu);
    } else {
      // do cross-node forwarding
      // ???
    }
  }
View Full Code Here

  public boolean initialize() {
    assert(_transportProvider != null);
    if(_transportProvider == null)
      return false;
   
    TransportEndpointSite endpointSite = _transportProvider.attach(_transportEndpoint, "RpcProvider");
    endpointSite.registerMultiplexier(RPC_MULTIPLEXIER, this);
    return true;
  }
View Full Code Here

    public boolean initialize() {
        assert (_transportProvider != null);
        if (_transportProvider == null)
            return false;

        TransportEndpointSite endpointSite = _transportProvider.attach(_transportEndpoint, "RpcProvider");
        endpointSite.registerMultiplexier(RPC_MULTIPLEXIER, this);
        return true;
    }
View Full Code Here

        } else {
            endpointId = String.valueOf(getNextEndpointId());
            transportAddress = new TransportAddress(_nodeId, TransportAddress.LOCAL_SERVICE_CONNECTION, endpointId);
        }

        TransportEndpointSite endpointSite;
        synchronized (this) {
            endpointSite = _endpointMap.get(endpointId);
            if (endpointSite != null) {
                // already attached
                return endpointSite;
            }
            endpointSite = new TransportEndpointSite(this, endpoint, transportAddress);
            _endpointMap.put(endpointId, endpointSite);
        }

        endpoint.onAttachConfirm(true, transportAddress.toString());
        return endpointSite;
View Full Code Here

    private void dispatchPdu(TransportPdu pdu) {

        TransportAddress transportAddress = TransportAddress.fromAddressString(pdu.getDestAddress());

        if (isLocalAddress(transportAddress)) {
            TransportEndpointSite endpointSite = null;
            synchronized (this) {
                endpointSite = _endpointMap.get(transportAddress.getEndpointId());
            }

            if (endpointSite != null)
                endpointSite.addOutputPdu(pdu);
        } else {
            // do cross-node forwarding
            // ???
        }
    }
View Full Code Here

    } else {
      endpointId = String.valueOf(getNextEndpointId());
      transportAddress = new TransportAddress(_nodeId, TransportAddress.LOCAL_SERVICE_CONNECTION, endpointId);
    }
   
    TransportEndpointSite endpointSite;
    synchronized(this) {
      endpointSite = _endpointMap.get(endpointId);
      if(endpointSite != null) {
        // already attached
        return endpointSite;
      }
      endpointSite = new TransportEndpointSite(this, endpoint, transportAddress);
      _endpointMap.put(endpointId, endpointSite);
    }
   
    endpoint.onAttachConfirm(true, transportAddress.toString());
    return endpointSite;
View Full Code Here

  private void dispatchPdu(TransportPdu pdu) {
   
    TransportAddress transportAddress = TransportAddress.fromAddressString(pdu.getDestAddress());
   
    if(isLocalAddress(transportAddress)) {
      TransportEndpointSite endpointSite = null;
      synchronized(this) {
        endpointSite = _endpointMap.get(transportAddress.getEndpointId());
      }
     
      if(endpointSite != null)
        endpointSite.addOutputPdu(pdu);
    } else {
      // do cross-node forwarding
      // ???
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.cloudstack.framework.transport.TransportEndpointSite

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.