public class JMXMonitor extends Object
Constructor and Description |
---|
JMXMonitor()
Constructs a JMXMonitor instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addActions(MonitorAction... actions)
Adds monitor actions to the monitor
|
static boolean |
addMonitorActions(MonitorAction... actions) |
MBeanServerConnection |
getConnection() |
static JMXMonitor |
getInstance() |
static MBeanServerConnection |
getServiceConnection()
Retrieves a connection to JMX service
|
static void |
main(String[] args) |
boolean |
removeActions(MonitorAction... actions)
Removes monitor actions from the monitor
|
static boolean |
removeMonitorActions(MonitorAction... actions) |
static void |
setServiceUrl(String url) |
void |
setUrl(String url)
Sets the JMX server URL
|
public JMXMonitor()
public boolean addActions(MonitorAction... actions)
actions
- monitor actions to addpublic boolean removeActions(MonitorAction... actions)
actions
- monitor actions to removepublic void setUrl(String url)
url
- URL of the JMX serverpublic MBeanServerConnection getConnection() throws IOException
IOException
public static JMXMonitor getInstance()
public static boolean addMonitorActions(MonitorAction... actions)
public static boolean removeMonitorActions(MonitorAction... actions)
public static void setServiceUrl(String url)
public static MBeanServerConnection getServiceConnection() throws IOException
IOException
Copyright © 1995-2015 Webtide. All Rights Reserved.