public class JmxDatacollectionConfiggenerator extends Object
Constructor and Description |
---|
JmxDatacollectionConfiggenerator() |
Modifier and Type | Method and Description |
---|---|
MBeanServerConnection |
createMBeanServerConnection(JMXConnector jmxConnector) |
JmxDatacollectionConfig |
generateJmxConfigModel(MBeanServerConnection mBeanServerConnection,
String serviceName,
Boolean runStandardVmBeans,
Boolean runWritableMBeans,
Map<String,String> dictionary) |
JMXConnector |
getJmxConnector(String username,
String password,
JMXServiceURL jmxServiceURL)
This method gets the JmxConnector to connect with the given
jmxServiceURL.
|
JMXServiceURL |
getJmxServiceURL(Boolean jmxmp,
String hostName,
String port)
determines the jmxServiceUrl depending on jmxmp.
|
void |
writeJmxConfigFile(JmxDatacollectionConfig jmxDatacollectionConfigModel,
String outFile) |
public JmxDatacollectionConfig generateJmxConfigModel(MBeanServerConnection mBeanServerConnection, String serviceName, Boolean runStandardVmBeans, Boolean runWritableMBeans, Map<String,String> dictionary)
public MBeanServerConnection createMBeanServerConnection(JMXConnector jmxConnector) throws IOException
IOException
public JMXConnector getJmxConnector(String username, String password, JMXServiceURL jmxServiceURL) throws IOException
username
- may be nullpassword
- may be nulljmxServiceURL
- should not be null!IOException
- if the connection to the given jmxServiceURL fails (e.g.
authentication failure or not reachable)public JMXServiceURL getJmxServiceURL(Boolean jmxmp, String hostName, String port) throws MalformedURLException
jmxmp
- hostName
- port
- MalformedURLException
public void writeJmxConfigFile(JmxDatacollectionConfig jmxDatacollectionConfigModel, String outFile)
Copyright © 2015. All rights reserved.