Class NetTracer
java.lang.Object
de.christofreichardt.diagnosis.AbstractTracer
de.christofreichardt.diagnosis.net.NetTracer
This particular tracer logs over the network.
- Author:
- Christof Reichardt
-
Nested Class Summary
Nested classes/interfaces inherited from class de.christofreichardt.diagnosis.AbstractTracer
AbstractTracer.Exception -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intthe default portprotected Stringthe host name of the debug serverprotected Socketthe pizza connection to the debug serverprotected intthe debug server's port numberstatic final intFields inherited from class de.christofreichardt.diagnosis.AbstractTracer
VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the associatedTracePrintStream.intvoidopen()Opens the associatedTracePrintStreamby wrapping the socket streams.protected voidreadConfiguration(XPath xpath, Node node) Reads the configuration for this particular tracer instance by evaluating the given node with the given xpath engine.protected voidCollects some user credentials and sends them over the network.voidsetHostName(String hostName) voidsetPortNo(int portNo) Methods inherited from class de.christofreichardt.diagnosis.AbstractTracer
clearCurrentTracingContext, entry, entry, entry, formatStreamErrorState, formatVersionInfo, getBufferedOutputStream, getBufferSize, getName, getNullPrintStream, getSyncObject, getThreadMap, getTracePrintStream, initCurrentTracingContext, initCurrentTracingContext, isAutoflush, isOpened, logException, logMessage, out, out, setAutoflush, setBufferedOutputStream, setBufferSize, setOpened, setTracePrintStream, substitute, wayout
-
Field Details
-
TIMEOUT
public static final int TIMEOUT- See Also:
-
defaultPortNo
protected final int defaultPortNothe default port- See Also:
-
portNo
protected int portNothe debug server's port number -
hostName
the host name of the debug server -
pizzaConnection
the pizza connection to the debug server
-
-
Constructor Details
-
NetTracer
-
-
Method Details
-
getPortNo
public int getPortNo()- Returns:
- the portNo
-
setPortNo
public void setPortNo(int portNo) - Parameters:
portNo- the portNo to set
-
getHostName
- Returns:
- the hostName
-
setHostName
- Parameters:
hostName- the hostName to set
-
readConfiguration
protected void readConfiguration(XPath xpath, Node node) throws XPathExpressionException, AbstractTracer.Exception Description copied from class:AbstractTracerReads the configuration for this particular tracer instance by evaluating the given node with the given xpath engine.- Overrides:
readConfigurationin classAbstractTracer- Parameters:
xpath- the xpath enginenode- the config node- Throws:
XPathExpressionException- indicates xpath problemsAbstractTracer.Exception- indicates problems when configuring certain tracer instances
-
open
public void open()Opens the associatedTracePrintStreamby wrapping the socket streams.- Specified by:
openin classAbstractTracer
-
close
public void close()Closes the associatedTracePrintStream.- Specified by:
closein classAbstractTracer
-
sendUserCredentials
Collects some user credentials and sends them over the network.- Throws:
UnknownHostException- if the local host name could not be resolved into an address
-