|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.monitor.webinterface.JMXStatusEntry
public class JMXStatusEntry
Implementation of StatusEntry, that receives its data from the MBeanServer (JMX).
Constructor Summary | |
---|---|
JMXStatusEntry(javax.management.ObjectName mBeanName)
Constructor for the JMXStatusEntry. |
Method Summary | |
---|---|
int |
compareTo(StatusEntry o)
Compares two entries according to first their location, then their machine name, then their ports, and then their application name, and then their index. |
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)
Gets the log message from this status entry. |
static java.util.List<StatusEntry> |
queryJMX(java.lang.String query)
Query the JMX system for system status mbeans. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMXStatusEntry(javax.management.ObjectName mBeanName)
mBeanName
- The ObjectName to be assigned to the MBean representing
this JMXStatusEntry.Method Detail |
---|
public java.lang.String getLocation()
StatusEntry
getLocation
in interface StatusEntry
JMXSummaryUtils.JMXLocationProperty
public java.lang.String getHostName()
StatusEntry
getHostName
in interface StatusEntry
JMXSummaryUtils.JMXHostnameProperty
public java.lang.String getHTTPPort()
StatusEntry
getHTTPPort
in interface StatusEntry
JMXSummaryUtils.JMXHttpportProperty
public java.lang.String getApplicationName()
StatusEntry
getApplicationName
in interface StatusEntry
JMXSummaryUtils.JMXApplicationnameProperty
public java.lang.String getIndex()
StatusEntry
getIndex
in interface StatusEntry
JMXSummaryUtils.JMXIndexProperty
public java.lang.String getLogMessage(java.util.Locale l)
getLogMessage
in interface StatusEntry
l
- the current Locale
ArgumentNotValid
- if the current Locale is nullpublic int compareTo(StatusEntry o)
compareTo
in interface java.lang.Comparable<StatusEntry>
o
- The object to compare with
public static java.util.List<StatusEntry> queryJMX(java.lang.String query) throws javax.management.MalformedObjectNameException
query
- A JMX request, e.g.
dk.netarkivet.logging:location=KB,httpport=8080,*
javax.management.MalformedObjectNameException
- If the query has wrong format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |