public class FlowTester extends Object
FlowPacket
s to OpenNMS or Minion and afterwards verifies
the data at the elastic endpoints.
Optionally it can also run verifications before sending flows or check the results at the OpenNMS ReST endpoint as well.Modifier and Type | Class and Description |
---|---|
static interface |
FlowTester.Block |
static class |
FlowTester.Delivery |
Constructor and Description |
---|
FlowTester(InetSocketAddress elasticAddress,
InetSocketAddress opennmsWebAddress,
List<FlowTester.Delivery> deliveries) |
Modifier and Type | Method and Description |
---|---|
io.searchbox.client.JestClient |
getJestClient() |
void |
setRunAfter(List<java.util.function.Consumer<FlowTester>> runAfter) |
void |
setRunBefore(List<java.util.function.Consumer<FlowTester>> runBefore) |
static void |
verify(FlowTester.Block verifyCallback) |
void |
verifyFlows() |
public FlowTester(InetSocketAddress elasticAddress, InetSocketAddress opennmsWebAddress, List<FlowTester.Delivery> deliveries)
public void verifyFlows() throws IOException
IOException
public void setRunBefore(List<java.util.function.Consumer<FlowTester>> runBefore)
public void setRunAfter(List<java.util.function.Consumer<FlowTester>> runAfter)
public io.searchbox.client.JestClient getJestClient()
public static void verify(FlowTester.Block verifyCallback)
Copyright © 2022. All rights reserved.