public class RRDToolWriter extends BaseOutputWriter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GENERATE |
BINARY_PATH, DEBUG, HOST, OUTPUT_FILE, PORT, TEMPLATE_FILE, TYPE_NAMES
Constructor and Description |
---|
RRDToolWriter() |
Modifier and Type | Method and Description |
---|---|
void |
doWrite(Query query) |
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.
|
java.lang.String |
getDataSourceName(java.lang.String typeName,
java.lang.String attributeName,
java.lang.String entry)
rrd datasources must be less than 21 characters in length, so work to
make it shorter.
|
protected void |
rrdToolCreateDatabase(org.jrobin.core.RrdDef def)
Calls out to the rrdtool binary with the 'create' command.
|
protected void |
rrdToolUpdate(java.lang.String template,
java.lang.String data)
Executes the rrdtool update command.
|
void |
validateSetup(Query query)
This is run when the object is instantiated.
|
addSetting, addTypeName, cleanupStr, getBooleanSetting, getBooleanSetting, getConcatedTypeNameValues, getIntegerSetting, getIntSetting, getSettings, getStringSetting, getTypeNames, isDebugEnabled, setObjectPoolMap, setSettings, setTypeNames, start, stop
public static final java.lang.String GENERATE
public void validateSetup(Query query) throws ValidationException
OutputWriter
ValidationException
public java.lang.String getDataSourceName(java.lang.String typeName, java.lang.String attributeName, java.lang.String entry)
public void doWrite(Query query) throws java.lang.Exception
java.lang.Exception
protected void rrdToolUpdate(java.lang.String template, java.lang.String data) throws java.lang.Exception
java.lang.Exception
protected org.jrobin.core.RrdDef getDatabaseTemplateSpec() throws java.lang.Exception
java.lang.Exception
protected void rrdToolCreateDatabase(org.jrobin.core.RrdDef def) throws java.lang.Exception
java.lang.Exception
Copyright © 2013 Jon Stevens and a gang of pencils. All Rights Reserved. Build version: 20130828-162948-517c4427f5