public class VelocityWriter extends BaseOutputWriter
BINARY_PATH, BOOLEAN_AS_NUMBER, DEBUG, HOST, OUTPUT_FILE, PORT, TEMPLATE_FILE, TYPE_NAMES| Constructor and Description |
|---|
VelocityWriter(com.google.common.collect.ImmutableList<String> typeNames,
boolean booleanAsNumber,
Boolean debugEnabled,
Map<String,Object> settings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
genVelocityOutput(List<JmxProcess> processes)
Uses velocity to generate output for a List of JmxProcess.
|
protected org.apache.velocity.app.VelocityEngine |
getVelocityEngine(List<String> paths)
Sets velocity up to load resources from a list of paths.
|
void |
internalWrite(Server server,
Query query,
com.google.common.collect.ImmutableList<Result> results) |
void |
validateSetup(Server server,
Query query) |
create, doWrite, firstNonNull, getConcatedTypeNameValues, getSettings, getTypeNames, isDebugEnabled, start, stop, toStringpublic void internalWrite(Server server, Query query, com.google.common.collect.ImmutableList<Result> results)
internalWrite in class BaseOutputWriterpublic void validateSetup(Server server, Query query) throws ValidationException
ValidationExceptionprotected void genVelocityOutput(List<JmxProcess> processes)
Copyright © 2010-2016 JmxTrans team. All Rights Reserved.