|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.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 |
getApplicationInstanceID()
Get the instance id of the application that this status entry is from. |
java.lang.String |
getApplicationName()
Get the name of the application that this status entry is from. |
java.lang.String |
getArchiveReplicaName()
Get the replica id of the application that this status entry is represents. |
java.lang.String |
getHarvestPriority()
Get the priority of the harvest queue that 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 |
getLogMessage(java.util.Locale l)
Gets the log message from this status entry. |
java.lang.String |
getMachineName()
Get the name of the host (machine) this status entry is from. |
java.lang.String |
getPhysicalLocation()
Get the (physical) location this status entry is from, e.g. |
static java.util.List<StatusEntry> |
queryJMX(java.lang.String query)
Query the JMX system for system status mbeans. |
static void |
unregisterJMXInstance(java.lang.String query)
Unregister an JMX MBean instance. |
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 getPhysicalLocation()
StatusEntry
getPhysicalLocation
in interface StatusEntry
JMXSummaryUtils.JMXPhysLocationProperty
public java.lang.String getMachineName()
StatusEntry
getMachineName
in interface StatusEntry
JMXSummaryUtils.JMXMachineNameProperty
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 getApplicationInstanceID()
StatusEntry
getApplicationInstanceID
in interface StatusEntry
JMXSummaryUtils.JMXApplicationInstIdProperty
public java.lang.String getHarvestPriority()
StatusEntry
getHarvestPriority
in interface StatusEntry
JMXSummaryUtils.JMXHarvestPriorityProperty
public java.lang.String getArchiveReplicaName()
StatusEntry
getArchiveReplicaName
in interface StatusEntry
JMXSummaryUtils.JMXArchiveReplicaNameProperty
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=EAST,httpport=8080,*
javax.management.MalformedObjectNameException
- If the query has wrong format.public static void unregisterJMXInstance(java.lang.String query) throws javax.management.MalformedObjectNameException, javax.management.InstanceNotFoundException, javax.management.MBeanRegistrationException
query
- A JMX request, for picking the beans to unregister.
javax.management.MalformedObjectNameException
- if query is malformed.
javax.management.InstanceNotFoundException
- if the instanced unregistered
doesn't exists.
javax.management.MBeanRegistrationException
- if unregeterBean is thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |