|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.management.client.JMXtoXML
public class JMXtoXML
Utility class to output database status information from eXist's JMX interface as XML.
Field Summary | |
---|---|
static QName |
JMX_ELEMENT
|
static String |
JMX_NAMESPACE
|
static String |
JMX_PREFIX
|
static long |
PING_TIMEOUT
|
Constructor Summary | |
---|---|
JMXtoXML()
|
Method Summary | |
---|---|
void |
connect()
Connect to the local JMX instance. |
void |
connect(String address,
int port)
Connect to a remote JMX instance using address and port. |
String |
generateReport(String[] categories)
Retrieve JMX output for the given categories and return a string of XML. |
Element |
generateXMLReport(String errcode,
String[] categories)
Retrieve JMX output for the given categories and return it as an XML DOM. |
static void |
main(String[] args)
|
long |
ping(String instance,
long timeout)
Ping the database to see if it is still responsive. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JMX_NAMESPACE
public static final String JMX_PREFIX
public static final QName JMX_ELEMENT
public static final long PING_TIMEOUT
Constructor Detail |
---|
public JMXtoXML()
Method Detail |
---|
public void connect()
public void connect(String address, int port) throws IOException
address
- port
-
IOException
public String generateReport(String[] categories) throws TransformerException
categories
-
TransformerException
public long ping(String instance, long timeout)
PING_TIMEOUT
). If there's an
error on the server, the return value will be less than 0. Otherwise
the return value is the response time in milliseconds.
instance
- the name of the database instance (default instance is "exist")timeout
- a timeout in milliseconds
public Element generateXMLReport(String errcode, String[] categories)
errcode
- an optional error descriptioncategories
-
TransformerException
public static void main(String[] args)
args
-
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |