All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.io.DatagramLogListener
Summary |
public class DatagramLogListener extends java.lang.Object implements edu.utah.janos.io.LogListener { // Fields 2 private int currentLevel; private static InetAddress localAddr; // Constructors 1 public DatagramLogListener(); // Methods 2 public void logMsg(int, String); public void start(int) throws Exception; // Inner Classes 1 private class DatagramLogListener.SocketListener }
A log listener that tracks the log level and can reply to StatusMessage queries about the level. This is only really useful for getting a quick summary of the status of a node.
Fields |
· localAddr | Summary | Top |
private static InetAddress localAddr
The localhost InetAddress
· currentLevel | Summary | Top |
private int currentLevel
The level we reply to queries with
Constructors |
· DatagramLogListener | Summary | Top |
public DatagramLogListener()
Default constructor
Methods |
· start | Summary | Top |
public void start(int port) throws Exception
Start a listener on the given port
· logMsg | Summary | Top |
public void logMsg(int level, String msg)
Receive the log message, we just record the level for now.
- Implements:
- logMsg in interface LogListener
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7