public class InternalCircuitImpl extends CircuitImpl implements InternalCircuit, DirectoryCircuit, HiddenServiceCircuit
logger, prechosenPathDASHBOARD_CIRCUITS, DASHBOARD_CONNECTIONS, DASHBOARD_CONNECTIONS_VERBOSE, DASHBOARD_PREDICTED_PORTS, DASHBOARD_STREAMS| Modifier | Constructor and Description |
|---|---|
protected |
InternalCircuitImpl(CircuitManagerImpl circuitManager) |
| Modifier and Type | Method and Description |
|---|---|
DirectoryCircuit |
cannibalizeToDirectory(Router target) |
Circuit |
cannibalizeToIntroductionPoint(Router target) |
protected List<Router> |
choosePathForCircuit(CircuitPathChooser pathChooser) |
HiddenServiceCircuit |
connectHiddenService(CircuitNode node) |
protected String |
getCircuitTypeLabel() |
Stream |
openDirectoryStream(long timeout,
boolean autoclose)
Open an anonymous connection to the directory service running on the
final node in this circuit.
|
Stream |
openStream(int port,
long timeout) |
appendNode, createNewStream, createNewStream, createRelayCell, dashboardRender, deliverControlCell, deliverRelayCell, destroyCircuit, getActiveStreams, getCircuitId, getConnection, getFinalCircuitNode, getSecondsDirty, isClean, isConnected, isMarkedForClose, isPending, markForClose, pathToString, processStreamOpenException, receiveRelayCell, removeStream, sendRelayCell, sendRelayCellToFinalNode, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendNode, createRelayCell, deliverControlCell, deliverRelayCell, destroyCircuit, getActiveStreams, getCircuitId, getConnection, getFinalCircuitNode, getSecondsDirty, isClean, isConnected, isMarkedForClose, isPending, markForClose, receiveRelayCell, sendRelayCellprotected InternalCircuitImpl(CircuitManagerImpl circuitManager)
protected List<Router> choosePathForCircuit(CircuitPathChooser pathChooser) throws InterruptedException, PathSelectionFailedException
choosePathForCircuit in class CircuitImplInterruptedExceptionPathSelectionFailedExceptionpublic Circuit cannibalizeToIntroductionPoint(Router target)
cannibalizeToIntroductionPoint in interface InternalCircuitpublic Stream openDirectoryStream(long timeout, boolean autoclose) throws InterruptedException, TimeoutException, StreamConnectFailedException
DirectoryCircuitopenDirectoryStream in interface DirectoryCircuittimeout - in millisecondsautoclose - if set to true, closing stream also marks this circuit for closeInterruptedExceptionTimeoutExceptionStreamConnectFailedExceptionpublic DirectoryCircuit cannibalizeToDirectory(Router target)
cannibalizeToDirectory in interface InternalCircuitpublic HiddenServiceCircuit connectHiddenService(CircuitNode node)
connectHiddenService in interface InternalCircuitpublic Stream openStream(int port, long timeout) throws InterruptedException, TimeoutException, StreamConnectFailedException
openStream in interface HiddenServiceCircuitInterruptedExceptionTimeoutExceptionStreamConnectFailedExceptionprotected String getCircuitTypeLabel()
getCircuitTypeLabel in class CircuitImplCopyright © 2015. All rights reserved.