public class ElasticAggregateWriter
extends com.googlecode.jmxtrans.model.output.BaseOutputWriter
{
"@timestamp": 1463071268789,
"@metadata": {
"typeName": "module=Core,type=Queue,address=\"jms.queue.nb8Queue\",name=\"jms.queue.nb8Queue\"",
"server": "server.example.com",
"typeNameValues": "Queue_\"jms.queue.nb8Queue\"_\"jms.queue.nb8Queue\"",
"port": "9990"
},
"MessagesAdded": 0,
"Temporary": false,
"ConsumerCount": 20,
"DeliveringCount": 0,
"Durable": false,
"MessageCount": 0,
"ScheduledCount": 0
}
| Constructor and Description |
|---|
ElasticAggregateWriter(com.google.common.collect.ImmutableList<String> typeNames,
boolean booleanAsNumber,
Boolean debugEnabled,
String elasticHostName,
String elasticClusterName,
String elasticIndexName,
String elasticTypeName,
Map<String,Object> settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
internalWrite(com.googlecode.jmxtrans.model.Server server,
com.googlecode.jmxtrans.model.Query query,
com.google.common.collect.ImmutableList<com.googlecode.jmxtrans.model.Result> results) |
void |
start() |
void |
validateSetup(com.googlecode.jmxtrans.model.Server server,
com.googlecode.jmxtrans.model.Query query) |
public void start()
throws com.googlecode.jmxtrans.exceptions.LifecycleException
start in interface com.googlecode.jmxtrans.model.OutputWriterstart in class com.googlecode.jmxtrans.model.output.BaseOutputWritercom.googlecode.jmxtrans.exceptions.LifecycleExceptionpublic void close()
throws com.googlecode.jmxtrans.exceptions.LifecycleException
close in interface com.googlecode.jmxtrans.model.OutputWriterclose in interface AutoCloseableclose in class com.googlecode.jmxtrans.model.output.BaseOutputWritercom.googlecode.jmxtrans.exceptions.LifecycleExceptionpublic void validateSetup(com.googlecode.jmxtrans.model.Server server,
com.googlecode.jmxtrans.model.Query query)
throws com.googlecode.jmxtrans.model.ValidationException
com.googlecode.jmxtrans.model.ValidationExceptionprotected void internalWrite(com.googlecode.jmxtrans.model.Server server,
com.googlecode.jmxtrans.model.Query query,
com.google.common.collect.ImmutableList<com.googlecode.jmxtrans.model.Result> results)
throws Exception
internalWrite in class com.googlecode.jmxtrans.model.output.BaseOutputWriterExceptionCopyright © 2018. All rights reserved.