public class NetTracer extends AbstractTracer
AbstractTracer.Exception| Modifier and Type | Field and Description |
|---|---|
protected int |
defaultPortNo
the default port
|
protected String |
hostName
the host name of the debug server
|
protected Socket |
pizzaConnection
the pizza connection to the debug server
|
protected int |
portNo
the debug server's port number
|
static int |
TIMEOUT |
VERSION| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the associated
TracePrintStream. |
String |
getHostName() |
int |
getPortNo() |
void |
open()
Opens the associated
TracePrintStream by wrapping the socket streams. |
protected void |
readConfiguration(XPath xpath,
Node node)
Reads the configuration for this particular tracer instance by evaluating the given node with the given xpath engine.
|
protected void |
sendUserCredentials()
Collects some user credentials and sends them over the network.
|
void |
setHostName(String hostName) |
void |
setPortNo(int portNo) |
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, wayoutpublic static final int TIMEOUT
protected final int defaultPortNo
protected int portNo
protected String hostName
protected Socket pizzaConnection
public NetTracer(String name)
public int getPortNo()
public void setPortNo(int portNo)
portNo - the portNo to setpublic String getHostName()
public void setHostName(String hostName)
hostName - the hostName to setprotected void readConfiguration(XPath xpath, Node node) throws XPathExpressionException, AbstractTracer.Exception
AbstractTracerreadConfiguration in class AbstractTracerxpath - the xpath enginenode - the config nodeXPathExpressionException - indicates xpath problemsAbstractTracer.Exception - indicates problems when configuring certain tracer instancespublic void open()
TracePrintStream by wrapping the socket streams.open in class AbstractTracerpublic void close()
TracePrintStream.close in class AbstractTracerprotected void sendUserCredentials()
throws UnknownHostException
UnknownHostException - if the local host name could not be resolved into an addressCopyright © 2014. All rights reserved.