@Immutable @ThreadSafe public class Server extends Object
| 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 numQueryThreads,
boolean local,
List<Query> queries) |
| Modifier and Type | Method and Description |
|---|---|
static Server.Builder |
builder() |
static Server.Builder |
builder(Server server) |
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
boolean |
isQueriesMultiThreaded() |
String |
toString() |
public com.google.common.collect.ImmutableMap<String,?> getEnvironment()
public JMXConnector getServerConnection() throws Exception
Exceptionpublic MBeanServer getLocalMBeanServer()
public String getHost()
public String getSource()
public String getPort()
public String getUrl()
public JMXServiceURL getJmxServiceURL() throws IOException
IOExceptionpublic boolean isQueriesMultiThreaded()
public static Server.Builder builder()
public static Server.Builder builder(Server server)
Copyright © 2010-2015 JmxTrans team. All Rights Reserved.