Class DebuggingEventHandler
java.lang.Object
net.freehaven.tor.control.examples.DebuggingEventHandler
- All Implemented Interfaces:
EventHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbandwidthUsed(long read, long written) Invoked once per second.voidcircuitStatus(String status, String circID, String path) Invoked when a circuit's status has changed.voidInvoked when Tor logs a message.voidnewDescriptors(List<String> orList) Invoked whenever Tor learns about new ORs.voidorConnStatus(String status, String orName) Invoked when the status of a connection to an OR has changed.voidstreamStatus(String status, String streamID, String target) Invoked when a stream's status has changed.voidunrecognized(String type, String msg) Invoked when an unspecified message is received.
-
Constructor Details
-
DebuggingEventHandler
-
-
Method Details
-
circuitStatus
Description copied from interface:EventHandlerInvoked when a circuit's status has changed. Possible values for status are:- "LAUNCHED" : circuit ID assigned to new circuit
- "BUILT" : all hops finished, can now accept streams
- "EXTENDED" : one more hop has been completed
- "FAILED" : circuit closed (was not built)
- "CLOSED" : circuit closed (was built)
- Specified by:
circuitStatusin interfaceEventHandler
-
streamStatus
Description copied from interface:EventHandlerInvoked when a stream's status has changed. Possible values for status are:- "NEW" : New request to connect
- "NEWRESOLVE" : New request to resolve an address
- "SENTCONNECT" : Sent a connect cell along a circuit
- "SENTRESOLVE" : Sent a resolve cell along a circuit
- "SUCCEEDED" : Received a reply; stream established
- "FAILED" : Stream failed and not retriable.
- "CLOSED" : Stream closed
- "DETACHED" : Detached from circuit; still retriable.
- Specified by:
streamStatusin interfaceEventHandler
-
orConnStatus
Description copied from interface:EventHandlerInvoked when the status of a connection to an OR has changed. Possible values for status are ["LAUNCHED" | "CONNECTED" | "FAILED" | "CLOSED"]. orName is the alphanumeric identifier of the OR affected.- Specified by:
orConnStatusin interfaceEventHandler
-
bandwidthUsed
public void bandwidthUsed(long read, long written) Description copied from interface:EventHandlerInvoked once per second. read and written are the number of bytes read and written, respectively, in the last second.- Specified by:
bandwidthUsedin interfaceEventHandler
-
newDescriptors
Description copied from interface:EventHandlerInvoked whenever Tor learns about new ORs. The orList object contains the alphanumeric ServerIDs associated with the new ORs.- Specified by:
newDescriptorsin interfaceEventHandler
-
message
Description copied from interface:EventHandlerInvoked when Tor logs a message. severity is one of ["DEBUG" | "INFO" | "NOTICE" | "WARN" | "ERR"], and msg is the message string.- Specified by:
messagein interfaceEventHandler
-
unrecognized
Description copied from interface:EventHandlerInvoked when an unspecified message is received.is the message type, and is the message string. - Specified by:
unrecognizedin interfaceEventHandler
-