Package com.subgraph.orchid

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


  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

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

      return rd.getAverageBandwidth();
    }
  }

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

      return rd.getBurstBandwidth();
    }
  }

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

    }
   
    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

TOP

Related Classes of com.subgraph.orchid.RouterDescriptor

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.