本文整理汇总了Java中com.subgraph.orchid.CircuitManager类的典型用法代码示例。如果您正苦于以下问题:Java CircuitManager类的具体用法?Java CircuitManager怎么用?Java CircuitManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CircuitManager类属于com.subgraph.orchid包,在下文中一共展示了CircuitManager类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: purposeToEventCode
import com.subgraph.orchid.CircuitManager; //导入依赖的package包/类
private int purposeToEventCode(int purpose, boolean getLoadingEvent) {
switch(purpose) {
case CircuitManager.DIRECTORY_PURPOSE_CONSENSUS:
return getLoadingEvent ? Tor.BOOTSTRAP_STATUS_LOADING_STATUS : Tor.BOOTSTRAP_STATUS_REQUESTING_STATUS;
case CircuitManager.DIRECTORY_PURPOSE_CERTIFICATES:
return getLoadingEvent ? Tor.BOOTSTRAP_STATUS_LOADING_KEYS : Tor.BOOTSTRAP_STATUS_REQUESTING_KEYS;
case CircuitManager.DIRECTORY_PURPOSE_DESCRIPTORS:
return getLoadingEvent ? Tor.BOOTSTRAP_STATUS_LOADING_DESCRIPTORS : Tor.BOOTSTRAP_STATUS_REQUESTING_DESCRIPTORS;
default:
return 0;
}
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:13,代码来源:DirectoryDocumentRequestor.java
示例2: setCircuitManager
import com.subgraph.orchid.CircuitManager; //导入依赖的package包/类
public void setCircuitManager(CircuitManager circuitManager) {
this.circuitManager = circuitManager;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:DirectoryDownloaderImpl.java
示例3: downloadCurrentConsensus
import com.subgraph.orchid.CircuitManager; //导入依赖的package包/类
public ConsensusDocument downloadCurrentConsensus(boolean useMicrodescriptors) throws DirectoryRequestFailedException {
return fetchSingleDocument(new ConsensusFetcher(useMicrodescriptors), CircuitManager.DIRECTORY_PURPOSE_CONSENSUS);
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:DirectoryDocumentRequestor.java
示例4: downloadKeyCertificates
import com.subgraph.orchid.CircuitManager; //导入依赖的package包/类
public List<KeyCertificate> downloadKeyCertificates(Set<RequiredCertificate> required) throws DirectoryRequestFailedException {
return fetchDocuments(new CertificateFetcher(required), CircuitManager.DIRECTORY_PURPOSE_CERTIFICATES);
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:DirectoryDocumentRequestor.java
示例5: downloadRouterDescriptors
import com.subgraph.orchid.CircuitManager; //导入依赖的package包/类
public List<RouterDescriptor> downloadRouterDescriptors(Set<HexDigest> fingerprints) throws DirectoryRequestFailedException {
return fetchDocuments(new RouterDescriptorFetcher(fingerprints), CircuitManager.DIRECTORY_PURPOSE_DESCRIPTORS);
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:DirectoryDocumentRequestor.java
示例6: downloadRouterMicrodescriptors
import com.subgraph.orchid.CircuitManager; //导入依赖的package包/类
public List<RouterMicrodescriptor> downloadRouterMicrodescriptors(Set<HexDigest> fingerprints) throws DirectoryRequestFailedException {
return fetchDocuments(new MicrodescriptorFetcher(fingerprints), CircuitManager.DIRECTORY_PURPOSE_DESCRIPTORS);
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:DirectoryDocumentRequestor.java
示例7: SocksClientTask
import com.subgraph.orchid.CircuitManager; //导入依赖的package包/类
SocksClientTask(TorConfig config, Socket socket, CircuitManager circuitManager) {
this.config = config;
this.socket = socket;
this.circuitManager = circuitManager;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:6,代码来源:SocksClientTask.java
示例8: SocksPortListenerImpl
import com.subgraph.orchid.CircuitManager; //导入依赖的package包/类
public SocksPortListenerImpl(TorConfig config, CircuitManager circuitManager) {
this.config = config;
this.circuitManager = circuitManager;
executor = Executors.newCachedThreadPool();
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:6,代码来源:SocksPortListenerImpl.java
注:本文中的com.subgraph.orchid.CircuitManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论