@NotThreadSafe public class GraphiteWriter extends BaseOutputWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphiteWriter.Builder |
BINARY_PATH, BOOLEAN_AS_NUMBER, DEBUG, HOST, OUTPUT_FILE, PORT, TEMPLATE_FILE, TYPE_NAMES| Constructor and Description |
|---|
GraphiteWriter(com.google.common.collect.ImmutableList<String> typeNames,
boolean booleanAsNumber,
Boolean debugEnabled,
String rootPrefix,
String host,
Integer port,
Map<String,Object> settings) |
| Modifier and Type | Method and Description |
|---|---|
static GraphiteWriter.Builder |
builder() |
String |
getHost() |
int |
getPort() |
void |
internalWrite(Server server,
Query query,
com.google.common.collect.ImmutableList<Result> results) |
void |
setPool(org.apache.commons.pool.impl.GenericKeyedObjectPool<InetSocketAddress,Socket> pool) |
void |
validateSetup(Server server,
Query query) |
close, create, doWrite, firstNonNull, getConcatedTypeNameValues, getSettings, getTypeNames, isDebugEnabled, start, toStringpublic void validateSetup(Server server, Query query) throws ValidationException
ValidationExceptionpublic void internalWrite(Server server, Query query, com.google.common.collect.ImmutableList<Result> results) throws Exception
internalWrite in class BaseOutputWriterExceptionpublic String getHost()
public int getPort()
@Inject public void setPool(org.apache.commons.pool.impl.GenericKeyedObjectPool<InetSocketAddress,Socket> pool)
public static GraphiteWriter.Builder builder()
Copyright © 2010-2017 JmxTrans team. All Rights Reserved.