org.fusesource.insight.graph.es
Class ElasticSender
java.lang.Object
org.fusesource.insight.graph.es.ElasticSender
- All Implemented Interfaces:
- java.lang.Runnable
public class ElasticSender
- extends java.lang.Object
- implements java.lang.Runnable
|
Method Summary |
void |
createIndexIfNeeded(org.elasticsearch.action.admin.indices.create.CreateIndexRequest request)
|
void |
destroy()
|
org.elasticsearch.node.Node |
getNode()
|
void |
init()
|
void |
put(org.elasticsearch.action.index.IndexRequest data)
|
static void |
quote(java.lang.String string,
java.lang.StringBuilder w)
Produce a string in double quotes with backslash sequences in all the
right places. |
void |
run()
|
void |
setNode(org.elasticsearch.node.Node node)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElasticSender
public ElasticSender()
getNode
public org.elasticsearch.node.Node getNode()
setNode
public void setNode(org.elasticsearch.node.Node node)
init
public void init()
destroy
public void destroy()
put
public void put(org.elasticsearch.action.index.IndexRequest data)
createIndexIfNeeded
public void createIndexIfNeeded(org.elasticsearch.action.admin.indices.create.CreateIndexRequest request)
run
public void run()
- Specified by:
run in interface java.lang.Runnable
quote
public static void quote(java.lang.String string,
java.lang.StringBuilder w)
- Produce a string in double quotes with backslash sequences in all the
right places. A backslash will be inserted within , producing <\/,
allowing JSON text to be delivered in HTML. In JSON text, a string
cannot contain a control character or an unescaped quote or backslash.
- Parameters:
string - A String
Copyright © 2013 Red Hat. All Rights Reserved.