Class EventToIndex
- java.lang.Object
-
- org.opennms.plugins.elasticsearch.rest.EventToIndex
-
- All Implemented Interfaces:
AutoCloseable
public class EventToIndex extends Object implements 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 voidclose()voidforwardEvents(List<Event> events)IndexSettingsgetIndexSettings()booleanisLogEventDescription()protected static booleanisOID(String input)voidsetGroupOidParameters(boolean groupOidParameters)voidsetIndexSettings(IndexSettings indexSettings)voidsetIndexStrategy(IndexStrategy indexStrategy)voidsetLogAllEvents(boolean logAllEvents)voidsetLogEventDescription(boolean logEventDescription)voidsetNodeCache(NodeCache cache)voidsetThreads(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:
closein interfaceAutoCloseable
-
getIndexSettings
public IndexSettings getIndexSettings()
-
setIndexSettings
public void setIndexSettings(IndexSettings indexSettings)
-
isOID
protected static boolean isOID(String input)
-
-