@Test public void testNotifySuccess() { long txNo = 12345; String uei = "uei.opennms.org/something!"; String message = "hello"; m_anticipator.anticipateCall("notifySuccess", String.valueOf(txNo), uei, message); assertTrue("notifier notifySuccess", m_notifier.notifySuccess(txNo, uei, message)); finishUp(); }
public boolean notifySuccess(final long txNo, final String uei, final String message) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(message, "message must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(message); return sendXmlrpcRequest(XMLRPC_SERVER_SUCCESS_COMMAND, params); }
XmlRpcNotifier { public boolean notifySuccess(final long txNo, final String uei, final String message) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(message, "message must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(message); return sendXmlrpcRequest(XMLRPC_SERVER_SUCCESS_COMMAND, params); } }
XmlRpcNotifier { public boolean notifySuccess(final long txNo, final String uei, final String message) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(message, "message must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(message); return sendXmlrpcRequest(XMLRPC_SERVER_SUCCESS_COMMAND, params); } XmlRpcNotifier(final XmlrpcServer[] rpcServers, final int retries, final int elapseTime, final boolean verifyServer, final String localServer); }
XmlRpcNotifier { public boolean notifySuccess(final long txNo, final String uei, final String message) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(message, "message must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(message); return sendXmlrpcRequest(XMLRPC_SERVER_SUCCESS_COMMAND, params); } XmlRpcNotifier(final XmlrpcServer[] rpcServers, final int retries, final int elapseTime, final boolean verifyServer, final String localServer); boolean notifySuccess(final long txNo, final String uei, final String message); boolean notifyFailure(final long txNo, final String uei, final String reason); boolean notifyReceivedEvent(final long txNo, final String uei, final String message); boolean sendServiceDownEvent(final Event event); boolean sendServiceUpEvent(final Event event); boolean sendInterfaceDownEvent(final Event event); boolean sendInterfaceUpEvent(final Event event); boolean sendNodeDownEvent(final Event event); boolean sendNodeUpEvent(final Event event); boolean sendEvent(final Event event); void createConnection(); }
XmlRpcNotifier { public boolean notifySuccess(final long txNo, final String uei, final String message) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(message, "message must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(message); return sendXmlrpcRequest(XMLRPC_SERVER_SUCCESS_COMMAND, params); } XmlRpcNotifier(final XmlrpcServer[] rpcServers, final int retries, final int elapseTime, final boolean verifyServer, final String localServer); boolean notifySuccess(final long txNo, final String uei, final String message); boolean notifyFailure(final long txNo, final String uei, final String reason); boolean notifyReceivedEvent(final long txNo, final String uei, final String message); boolean sendServiceDownEvent(final Event event); boolean sendServiceUpEvent(final Event event); boolean sendInterfaceDownEvent(final Event event); boolean sendInterfaceUpEvent(final Event event); boolean sendNodeDownEvent(final Event event); boolean sendNodeUpEvent(final Event event); boolean sendEvent(final Event event); void createConnection();  }