Package ch.ethz.iks.r_osgi

Examples of ch.ethz.iks.r_osgi.URI


    return URI.create(b.toString());
  }

  private void connect(final ServiceDescriptor desc)
      throws RemoteOSGiException, IOException {
    URI uri = this.getAddress(desc, false);
    // ChannelEndpointManager cem = remoteOSGiSvc.getEndpointManager(uri);
    // if (cem == null) {
    remoteOSGiSvc.connect(uri);
    // }
  }
View Full Code Here


        } catch (Exception e) {
          LOGGER.error("failed to establish connection (Service-Descriptor: "
              + desc + ")");
        }
        LOGGER.debug("getting remote service ({})", desc);
        URI suri = this.getAddress(desc, true);
        RemoteServiceReference rref = null;
        int retries = 5;
        while (rref == null) {
          rref = remoteOSGiSvc.getRemoteServiceReference(suri);
          if (rref == null) {
View Full Code Here

   * @param uriString
   *            the URI of a remote service.
   */
  public R_OSGiID(final String uriString) {
    super(R_OSGiNamespace.getDefault());
    this.uri = new URI(uriString);
  }
View Full Code Here

   * @since 0.6
   */
  public RemoteServiceReference[] connect(final URI uri)
      throws RemoteOSGiException, IOException {

    final URI endpoint = URI.create(getChannelURI(uri));
    final ChannelEndpointImpl test = (ChannelEndpointImpl) channels
        .get(endpoint.toString());
    if (test != null) {
      test.usageCounter++;
      return test.getAllRemoteReferences(null);
    }

    final ChannelEndpointImpl channel;
    final String protocol = endpoint.getScheme();

    final NetworkChannelFactory factory = getNetworkChannelFactory(protocol);
    channel = new ChannelEndpointImpl(factory, endpoint);

    return channel.sendLease(getServices(), getTopics());
View Full Code Here

TOP

Related Classes of ch.ethz.iks.r_osgi.URI

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.