Package org.opennms.alec.smoke.opennms
Class OpenNMSRestClient
- java.lang.Object
-
- org.opennms.alec.smoke.opennms.OpenNMSRestClient
-
public class OpenNMSRestClient extends Object
-
-
Constructor Summary
Constructors Constructor Description OpenNMSRestClient(InetSocketAddress addr)OpenNMSRestClient(InetSocketAddress addr, String username, String password)OpenNMSRestClient(URL url)OpenNMSRestClient(URL url, String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddTestNode()Map<String,Integer>addTestNodes(String... nodeLabels)voidaddUDLBetweenNodes(int nodeAId, int nodeZId)voidclearAllAlarms()List<Alarm>getAlarms()StringgetDisplayVersion()List<Alarm>getSituations()voidsendEvent(Event event)voidtriggerAlarmsForCorrelation(int nodeId)voidwaitForOutstandingSituation()
-
-
-
Constructor Detail
-
OpenNMSRestClient
public OpenNMSRestClient(InetSocketAddress addr) throws MalformedURLException
- Throws:
MalformedURLException
-
OpenNMSRestClient
public OpenNMSRestClient(URL url)
-
OpenNMSRestClient
public OpenNMSRestClient(InetSocketAddress addr, String username, String password) throws MalformedURLException
- Throws:
MalformedURLException
-
-
Method Detail
-
getDisplayVersion
public String getDisplayVersion()
-
sendEvent
public void sendEvent(Event event)
-
waitForOutstandingSituation
public void waitForOutstandingSituation()
-
triggerAlarmsForCorrelation
public void triggerAlarmsForCorrelation(int nodeId)
-
addTestNode
public int addTestNode()
-
addUDLBetweenNodes
public void addUDLBetweenNodes(int nodeAId, int nodeZId)
-
clearAllAlarms
public void clearAllAlarms()
-
-