Package ch.ethz.iks.r_osgi.channels

Examples of ch.ethz.iks.r_osgi.channels.ChannelEndpoint


        return primary.invokeMethod(mapping.getMapped(primary),
            methodSignature, args);
      } else {
        final int policy = p.intValue();
        if (policy == LOADBALANCING_ANY_POLICY) {
          final ChannelEndpoint endpoint = mapping.getAny();
          try {
            return endpoint.invokeMethod(mapping
                .getMapped(endpoint), methodSignature, args);
          } catch (final RemoteOSGiException e) {
            final ChannelEndpointImpl next = mapping.getNext();
            if (next != null) {
              primary.untrackRegistration(serviceURI);
View Full Code Here


   * @see ch.ethz.iks.r_osgi.channels.ChannelEndpointManager#addRedundantEndpoint(ch.ethz.iks.r_osgi.URI,
   *      ch.ethz.iks.r_osgi.URI)
   */
  public void addRedundantEndpoint(final URI service,
      final URI redundantService) {
    final ChannelEndpoint redundantEndpoint = RemoteOSGiServiceImpl
        .getChannel(redundantService);
    primary.hasRedundantLinks = true;
    Mapping mapping = (Mapping) mappings.get(service);
    if (mapping == null) {
      mapping = new Mapping(service.toString());
View Full Code Here

   * @see ch.ethz.iks.r_osgi.channels.ChannelEndpointManager#removeRedundantEndpoint(ch.ethz.iks.r_osgi.URI,
   *      ch.ethz.iks.r_osgi.URI)
   */
  public void removeRedundantEndpoint(final URI service,
      final URI redundantService) {
    final ChannelEndpoint redundantEndpoint = RemoteOSGiServiceImpl
        .getChannel(redundantService);
    final Mapping mapping = (Mapping) mappings.get(service.toString());
    mapping.removeRedundant(redundantEndpoint);
    if (mapping.isEmpty()) {
      mappings.remove(service);
View Full Code Here

TOP

Related Classes of ch.ethz.iks.r_osgi.channels.ChannelEndpoint

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.