Examples of RouterDescriptor


Examples of com.subgraph.orchid.RouterDescriptor

  public boolean hasFlag(String flag) {
    return status.hasFlag(flag);
  }

  public boolean isHibernating() {
    final RouterDescriptor rd = downcastDescriptor();
    if(rd == null) {
      return false;
    } else {
      return rd.isHibernating();
    }
  }
View Full Code Here

Examples of com.subgraph.orchid.RouterDescriptor

  public HexDigest getIdentityHash() {
    return identityHash;
  }
 
  public TorPublicKey getIdentityKey() {
    final RouterDescriptor rd = downcastDescriptor();
    if(rd != null) {
      return rd.getIdentityKey();
    } else {
      return null;
    }
  }
View Full Code Here

Examples of com.subgraph.orchid.RouterDescriptor

      return Collections.emptySet();
    }
  }
 
  public int getAverageBandwidth() {
    final RouterDescriptor rd = downcastDescriptor();
    if(rd == null) {
      return 0;
    } else {
      return rd.getAverageBandwidth();
    }
  }
View Full Code Here

Examples of com.subgraph.orchid.RouterDescriptor

      return rd.getAverageBandwidth();
    }
  }

  public int getBurstBandwidth() {
    final RouterDescriptor rd = downcastDescriptor();
    if(rd == null) {
      return 0;
    } else {
      return rd.getBurstBandwidth();
    }
  }
View Full Code Here

Examples of com.subgraph.orchid.RouterDescriptor

      return rd.getBurstBandwidth();
    }
  }

  public int getObservedBandwidth() {
    final RouterDescriptor rd = downcastDescriptor();
    if(rd == null) {
      return 0;
    } else {
      return rd.getObservedBandwidth();
    }
  }
View Full Code Here

Examples of com.subgraph.orchid.RouterDescriptor

    }
   
    private void downloadDescriptor() {
      logger.fine("Downloading descriptor for bridge: "+ target);
      try {
        final RouterDescriptor descriptor = directoryDownloader.downloadBridgeDescriptor(target);
        if(descriptor != null) {
          logger.fine("Descriptor received for bridge "+ target +". Adding to list of usable bridges");
          target.setDescriptor(descriptor);
          synchronized(lock) {
            bridgeRouters.add(target);
View Full Code Here

Examples of juzu.impl.plugin.router.RouterDescriptor

    //
    Route root = new Router();
    RouterService router = bridge.getApplication().resolveBean(RouterService.class);
    if (router != null) {
      RouterDescriptor desc = router.getDescriptor();
      if (desc != null) {
        Map<RouteDescriptor, Route> ret = desc.popupate(root);
        for (Map.Entry<RouteDescriptor, Route> entry : ret.entrySet()) {
          forwardRoutes.put(entry.getKey().handle, entry.getValue());
          backwardRoutes.put(entry.getValue(), entry.getKey());
        }
      }
View Full Code Here

Examples of org.apache.muse.core.descriptor.RouterDescriptor

  protected RouterDefinition createRouterDefinition(Element xml,
      Environment env) throws SoapFault {
    Element routerXML = XmlUtils.getElement(xml,
        DescriptorConstants.ROUTER_QNAME);

    RouterDescriptor rd = createRouterDescriptor();
    rd.load(routerXML, env);

    return rd.getRouterDefinition();
  }
View Full Code Here

Examples of org.apache.muse.core.descriptor.RouterDescriptor

  protected RouterDefinition createRouterDefinition(Element xml,
      Environment env) throws SoapFault {
    Element routerXML = XmlUtils.getElement(xml,
        DescriptorConstants.ROUTER_QNAME);

    RouterDescriptor rd = createRouterDescriptor();
    rd.load(routerXML, env);

    return rd.getRouterDefinition();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.