public class MonitoringTopic extends Object
MonitoringTopic
class allows administrators to create acquisition
topic for JMX monitoring data.
A monitoring acquisition destination is an acquisition destination configured to transform JMX monitoring information into JMS messages. It works in 2 modes:
This topic is based on JMX monitoring so you must enable JMX monitoring to use it.
Modifier and Type | Field and Description |
---|---|
static String |
JMXAcquisition
Class name of handler allowing to acquire JMX monitoring data.
|
Constructor and Description |
---|
MonitoringTopic() |
Modifier and Type | Method and Description |
---|---|
static Topic |
create()
Administration method creating and deploying a JMX acquisition topic on the local server.
|
static Topic |
create(int serverId)
Administration method creating and deploying a JMX acquisition topic on a given server.
|
static Topic |
create(int serverId,
String name)
Administration method creating and deploying a JMX acquisition topic on a given server.
|
static Topic |
create(int serverId,
String name,
Properties props)
Administration method creating and deploying a JMX acquisition topic on a given server.
|
public static final String JMXAcquisition
public static Topic create() throws ConnectException, AdminException
The request fails if the destination deployment fails server side.
Be careful this method use the static AdminModule connection.
ConnectException
- If the administration connection is closed or broken.AdminException
- If the request fails.create(int, String, Properties)
public static Topic create(int serverId) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform, or if the destination deployment fails server side.
Be careful this method use the static AdminModule connection.
serverId
- The identifier of the server where deploying the topic.ConnectException
- If the administration connection is closed or broken.AdminException
- If the request fails.create(int, String, Properties)
public static Topic create(int serverId, String name) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform, or if the destination deployment fails server side.
Be careful this method use the static AdminModule connection.
serverId
- The identifier of the server where deploying the topic.name
- The name of the created topic.ConnectException
- If the administration connection is closed or broken.AdminException
- If the request fails.create(int, String, Properties)
public static Topic create(int serverId, String name, Properties props) throws ConnectException, AdminException
A set of properties is used to configure the distribution destination:
Be careful this method use the static AdminModule connection.
serverId
- The identifier of the server where deploying the topic.name
- The name of the created topic.props
- A Properties object containing all needed parameters.ConnectException
- If the administration connection is closed or broken.AdminException
- If the request fails.Copyright © 2013 ScalAgent D.T.. All Rights Reserved.