public class RRDToolWriter extends BaseOutputWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
RRDToolWriter.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERATE |
BINARY_PATH, BOOLEAN_AS_NUMBER, DEBUG, HOST, OUTPUT_FILE, PORT, TEMPLATE_FILE, TYPE_NAMES| Constructor and Description |
|---|
RRDToolWriter(com.google.common.collect.ImmutableList<String> typeNames,
boolean booleanAsNumber,
Boolean debugEnabled,
String outputFile,
String templateFile,
String binaryPath,
Boolean generate,
Map<String,Object> settings) |
| Modifier and Type | Method and Description |
|---|---|
static RRDToolWriter.Builder |
builder() |
String |
getBinaryPath() |
protected org.jrobin.core.RrdDef |
getDatabaseTemplateSpec()
If the database file doesn't exist, it'll get created, otherwise, it'll
be returned in r/w mode.
|
String |
getDataSourceName(String typeName,
String attributeName,
String entry)
rrd datasources must be less than 21 characters in length, so work to
make it shorter.
|
String |
getOutputFile() |
String |
getTemplateFile() |
void |
internalWrite(Server server,
Query query,
com.google.common.collect.ImmutableList<Result> results) |
protected void |
rrdToolCreateDatabase(org.jrobin.core.RrdDef def)
Calls out to the rrdtool binary with the 'create' command.
|
protected void |
rrdToolUpdate(String template,
String data)
Executes the rrdtool update command.
|
void |
validateSetup(Server server,
Query query) |
close, create, doWrite, firstNonNull, getConcatedTypeNameValues, getSettings, getTypeNames, isDebugEnabled, start, toStringpublic static final String GENERATE
public void validateSetup(Server server, Query query) throws ValidationException
ValidationExceptionpublic String getDataSourceName(String typeName, String attributeName, String entry)
public void internalWrite(Server server, Query query, com.google.common.collect.ImmutableList<Result> results) throws Exception
internalWrite in class BaseOutputWriterExceptionprotected void rrdToolUpdate(String template, String data) throws Exception
Exceptionprotected org.jrobin.core.RrdDef getDatabaseTemplateSpec()
throws Exception
Exceptionprotected void rrdToolCreateDatabase(org.jrobin.core.RrdDef def)
throws Exception
Exceptionpublic String getOutputFile()
public String getTemplateFile()
public String getBinaryPath()
public static RRDToolWriter.Builder builder()
Copyright © 2010-2017 JmxTrans team. All Rights Reserved.