public class SendEventsToEsCommand
extends org.apache.karaf.shell.console.OsgiCommandSupport
implements org.apache.karaf.shell.api.action.Action
Command example: elasticsearch:send-historic-events 100 0 admin admin http://localhost:8980 false
This retrieves 110 alarms from the local machine using the local node cache for node label.
Command example: elasticsearch:send-historic-events 100 0 demo demo http://demo.opennms.org true
This retrieves 110 alarms from the remote machine using the node label.
This command implements the Apache Karaf 3 and Apache Karaf 4 shell APIs. Once the Karaf 4 commands work, the deprecated Karaf 3 annotations should be removed:
Command
OsgiCommandSupport
Constructor and Description |
---|
SendEventsToEsCommand() |
Modifier and Type | Method and Description |
---|---|
protected Object |
doExecute()
Deprecated.
|
Object |
execute() |
void |
setOpenNMSHistoricEventsToEs(OpenNMSHistoricEventsToEs openNMSHistoricEventsToEs)
Deprecated.
|
@Deprecated protected Object doExecute() throws Exception
doExecute
in class org.apache.karaf.shell.console.AbstractAction
Exception
@Deprecated public void setOpenNMSHistoricEventsToEs(OpenNMSHistoricEventsToEs openNMSHistoricEventsToEs)
Copyright © 2018. All rights reserved.