@Immutable @ThreadSafe public class Server extends Object implements JmxConnectionProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
Server.Builder |
| Constructor and Description |
|---|
Server(String alias,
String pid,
String host,
String port,
String username,
String password,
String protocolProviderPackages,
String url,
String cronExpression,
Integer runPeriodSeconds,
Integer numQueryThreads,
boolean local,
List<Query> queries,
com.google.common.collect.ImmutableList<OutputWriter> outputWriters,
org.apache.commons.pool.KeyedObjectPool<JmxConnectionProvider,JMXConnection> pool) |
Server(String alias,
String pid,
String host,
String port,
String username,
String password,
String protocolProviderPackages,
String url,
String cronExpression,
Integer runPeriodSeconds,
Integer numQueryThreads,
boolean local,
List<Query> queries,
List<OutputWriterFactory> outputWriters,
org.apache.commons.pool.KeyedObjectPool<JmxConnectionProvider,JMXConnection> pool) |
| Modifier and Type | Method and Description |
|---|---|
static Server.Builder |
builder() |
static Server.Builder |
builder(Server server) |
Iterable<Result> |
execute(Query query) |
com.google.common.collect.ImmutableMap<String,?> |
getEnvironment()
Generates the proper username/password environment for JMX connections.
|
String |
getHost() |
JMXServiceURL |
getJmxServiceURL() |
MBeanServer |
getLocalMBeanServer() |
String |
getPort() |
JMXConnector |
getServerConnection()
Helper method for connecting to a Server.
|
String |
getSource() |
String |
getUrl()
The jmx url to connect to.
|
boolean |
isQueriesMultiThreaded() |
void |
runOutputWriters(Query query,
Iterable<Result> results) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisLocalpublic Server(String alias, String pid, String host, String port, String username, String password, String protocolProviderPackages, String url, String cronExpression, Integer runPeriodSeconds, Integer numQueryThreads, boolean local, List<Query> queries, List<OutputWriterFactory> outputWriters, org.apache.commons.pool.KeyedObjectPool<JmxConnectionProvider,JMXConnection> pool)
public Server(String alias, String pid, String host, String port, String username, String password, String protocolProviderPackages, String url, String cronExpression, Integer runPeriodSeconds, Integer numQueryThreads, boolean local, List<Query> queries, com.google.common.collect.ImmutableList<OutputWriter> outputWriters, org.apache.commons.pool.KeyedObjectPool<JmxConnectionProvider,JMXConnection> pool)
public com.google.common.collect.ImmutableMap<String,?> getEnvironment()
public JMXConnector getServerConnection() throws IOException
getServerConnection in interface JmxConnectionProviderIOExceptionpublic MBeanServer getLocalMBeanServer()
getLocalMBeanServer in interface JmxConnectionProviderpublic String getHost()
public String getSource()
public String getPort()
public String getUrl()
public JMXServiceURL getJmxServiceURL() throws IOException
IOExceptionpublic boolean isQueriesMultiThreaded()
public void runOutputWriters(Query query, Iterable<Result> results) throws Exception
Exceptionpublic static Server.Builder builder()
public static Server.Builder builder(Server server)
Copyright © 2010-2016 JmxTrans team. All Rights Reserved.