Class NetTracer


  • public class NetTracer
    extends AbstractTracer
    This particular tracer logs over the network.
    Author:
    Christof Reichardt
    • Field Detail

      • TIMEOUT

        public static final int TIMEOUT
        The timeout when connecting to the remote logging server in milliseconds
        See Also:
        Constant Field Values
      • portNo

        protected int portNo
        the debug server's port number
      • hostName

        protected String hostName
        the host name of the debug server
      • pizzaConnection

        protected Socket pizzaConnection
        the pizza connection to the debug server
    • Constructor Detail

      • NetTracer

        public NetTracer​(String name)
        Constructor expects the name of the tracer. That name will be sent over the network when connecting to remote logging server.
        Parameters:
        name - the name of the tracer
    • Method Detail

      • getPortNo

        public int getPortNo()
        Returns the port number used to connect to the remote logging server.
        Returns:
        the portNo
      • setPortNo

        public void setPortNo​(int portNo)
        Sets the port number used to connect to the remote logging server.
        Parameters:
        portNo - the portNo to set
      • getHostName

        public String getHostName()
        Returns the hostname used to connect to the remote logging server.
        Returns:
        the hostName
      • setHostName

        public void setHostName​(String hostName)
        Sets the hostname used to connect to the remote logging server.
        Parameters:
        hostName - the hostName to set
      • sendUserCredentials

        protected void sendUserCredentials()
                                    throws UnknownHostException
        Collects some user credentials and sends them over the network.
        Throws:
        UnknownHostException - if the local host name could not be resolved into an address