Class EventToIndex
- java.lang.Object
-
- org.opennms.plugins.elasticsearch.rest.EventToIndex
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class EventToIndex extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description EventToIndex(io.searchbox.client.JestClient jestClient, int bulkRetryCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
forwardEvents(java.util.List<Event> events)
IndexSettings
getIndexSettings()
boolean
isLogEventDescription()
protected static boolean
isOID(java.lang.String input)
void
setGroupOidParameters(boolean groupOidParameters)
void
setIndexSettings(IndexSettings indexSettings)
void
setIndexStrategy(IndexStrategy indexStrategy)
void
setLogAllEvents(boolean logAllEvents)
void
setLogEventDescription(boolean logEventDescription)
void
setNodeCache(NodeCache cache)
void
setThreads(int threads)
-
-
-
Method Detail
-
setIndexStrategy
public void setIndexStrategy(IndexStrategy indexStrategy)
-
isLogEventDescription
public boolean isLogEventDescription()
-
setLogEventDescription
public void setLogEventDescription(boolean logEventDescription)
-
setLogAllEvents
public void setLogAllEvents(boolean logAllEvents)
-
setThreads
public void setThreads(int threads)
-
setNodeCache
public void setNodeCache(NodeCache cache)
-
setGroupOidParameters
public void setGroupOidParameters(boolean groupOidParameters)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
forwardEvents
public void forwardEvents(java.util.List<Event> events)
-
getIndexSettings
public IndexSettings getIndexSettings()
-
setIndexSettings
public void setIndexSettings(IndexSettings indexSettings)
-
isOID
protected static boolean isOID(java.lang.String input)
-
-