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, wayout
public 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
AbstractTracer
readConfiguration
in class AbstractTracer
xpath
- 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 AbstractTracer
public void close()
TracePrintStream
.close
in class AbstractTracer
protected void sendUserCredentials() throws UnknownHostException
UnknownHostException
Copyright © 2014 Christof Reichardt. All rights reserved. (Build: 26-May-2014)