Package com.subgraph.orchid

Examples of com.subgraph.orchid.DirectoryCircuit.openDirectoryStream()


      final DirectoryCircuit circuit = openDirectoryCircuit();
      if(requestEventCode > 0) {
        initializationTracker.notifyEvent(requestEventCode);
      }
      try {
        final Stream stream = circuit.openDirectoryStream(OPEN_DIRECTORY_STREAM_TIMEOUT, true);
        if(loadingEventCode > 0) {
          initializationTracker.notifyEvent(loadingEventCode);
        }
        return stream;
      } catch (StreamConnectFailedException e) {
View Full Code Here


    final InternalCircuit circuit = circuitManager.getCleanInternalCircuit();
   
    try {
      final DirectoryCircuit dc = circuit.cannibalizeToDirectory(directory);
      return dc.openDirectoryStream(10000, true);
    } catch (StreamConnectFailedException e) {
      circuit.markForClose();
      throw new OpenFailedException("Failed to open directory stream");
    } catch (TorException e) {
      circuit.markForClose();
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.