@Immutable @ThreadSafe public class Server extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Server.Builder |
| Constructor and Description |
|---|
Server(String alias,
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) |
String |
getAlias()
Some writers (GraphiteWriter) use the alias in generation of the unique
key which references this server.
|
String |
getCronExpression()
Each server can set a cronExpression for the scheduler.
|
com.google.common.collect.ImmutableMap<String,?> |
getEnvironment()
Generates the proper username/password environment for JMX connections.
|
String |
getHost() |
JMXServiceURL |
getJmxServiceURL() |
MBeanServer |
getLocalMBeanServer() |
Integer |
getNumQueryThreads()
The number of query threads for this server.
|
String |
getPassword() |
String |
getPort() |
String |
getProtocolProviderPackages()
This is some obtuse shit for enabling weblogic support.
|
com.google.common.collect.ImmutableSet<Query> |
getQueries() |
JMXConnector |
getServerConnection()
Helper method for connecting to a Server.
|
String |
getUrl()
The jmx url to connect to.
|
String |
getUsername() |
int |
hashCode() |
boolean |
isLocal()
Whether the current local Java process should be used or not (useful for
polling the embedded JVM when using JmxTrans inside a JVM to poll JMX
stats and push them remotely)
|
boolean |
isQueriesMultiThreaded() |
String |
toString() |
public com.google.common.collect.ImmutableMap<String,?> getEnvironment()
public JMXConnector getServerConnection() throws Exception
Exceptionpublic MBeanServer getLocalMBeanServer()
public String getAlias()
public String getHost()
public String getPort()
public String getUsername()
public String getPassword()
public boolean isLocal()
public com.google.common.collect.ImmutableSet<Query> getQueries()
public String getUrl()
public JMXServiceURL getJmxServiceURL() throws MalformedURLException
MalformedURLExceptionpublic boolean isQueriesMultiThreaded()
public Integer getNumQueryThreads()
public String getCronExpression()
public String getProtocolProviderPackages()
public static Server.Builder builder()
public static Server.Builder builder(Server server)
Copyright © 2015. All Rights Reserved.