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<java.lang.String> typeNames,
boolean booleanAsNumber,
java.lang.Boolean debugEnabled,
java.util.Map<java.lang.String,java.lang.Object> settings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
genVelocityOutput(java.util.List<JmxProcess> processes)
Uses velocity to generate output for a List of JmxProcess.
|
protected org.apache.velocity.app.VelocityEngine |
getVelocityEngine(java.util.List<java.lang.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) |
close, create, doWrite, firstNonNull, getConcatedTypeNameValues, getSettings, getTypeNames, isDebugEnabled, start, toStringpublic VelocityWriter(com.google.common.collect.ImmutableList<java.lang.String> typeNames,
boolean booleanAsNumber,
java.lang.Boolean debugEnabled,
java.util.Map<java.lang.String,java.lang.Object> settings)
public 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(java.util.List<JmxProcess> processes)
protected org.apache.velocity.app.VelocityEngine getVelocityEngine(java.util.List<java.lang.String> paths)
Copyright © 2010-2019 JmxTrans team. All Rights Reserved.