dk.netarkivet.monitor.webinterface
Interface StatusEntry

All Superinterfaces:
java.lang.Comparable<StatusEntry>
All Known Implementing Classes:
JMXStatusEntry

public interface StatusEntry
extends java.lang.Comparable<StatusEntry>

An interface that specifies the information available in our JMX log mbeans.


Method Summary
 java.lang.String getApplicationName()
          Get the name of the application that this status entry is from.
 java.lang.String getHostName()
          Get the name of the host this status entry is from.
 java.lang.String getHTTPPort()
          Get the HTTP port used by the application this status entry is from.
 java.lang.String getIndex()
          Get the index in the list of most recent log messages that this status entry is from.
 java.lang.String getLocation()
          Get the location this status entry is from, e.g.
 java.lang.String getLogMessage(java.util.Locale l)
          Get the actual message.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getLocation

java.lang.String getLocation()
Get the location this status entry is from, e.g. KB.

Returns:
the location this status entry is from, e.g. KB

getHostName

java.lang.String getHostName()
Get the name of the host this status entry is from.

Returns:
the name of the host this status entry is from.

getHTTPPort

java.lang.String getHTTPPort()
Get the HTTP port used by the application this status entry is from. Used for HTTP and self-identification.

Returns:
the HTTP port that the application that this status entry is from

getApplicationName

java.lang.String getApplicationName()
Get the name of the application that this status entry is from.

Returns:
the name of the application that this status entry is from.

getIndex

java.lang.String getIndex()
Get the index in the list of most recent log messages that this status entry is from.

Returns:
the index in the list of most recent log messages that this status entry is from.

getLogMessage

java.lang.String getLogMessage(java.util.Locale l)
Get the actual message.

Parameters:
l - the current locale (only used to translate errormessages)
Returns:
the actual status message