@Test public void testNotifyFailure() { long txNo = 12345; String uei = "uei.opennms.org/something!"; String message = "hello"; m_anticipator.anticipateCall("notifyFailure", String.valueOf(txNo), uei, message); assertTrue("notifier notifyFailure", m_notifier.notifyFailure(txNo, uei, message)); finishUp(); }
public boolean notifyFailure(final long txNo, final String uei, final String reason) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(reason, "reason must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(reason); return sendXmlrpcRequest(XMLRPC_SERVER_FAILURE_COMMAND, params); }
XmlRpcNotifier { public boolean notifyFailure(final long txNo, final String uei, final String reason) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(reason, "reason must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(reason); return sendXmlrpcRequest(XMLRPC_SERVER_FAILURE_COMMAND, params); } }
XmlRpcNotifier { public boolean notifyFailure(final long txNo, final String uei, final String reason) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(reason, "reason must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(reason); return sendXmlrpcRequest(XMLRPC_SERVER_FAILURE_COMMAND, params); } XmlRpcNotifier(final XmlrpcServer[] rpcServers, final int retries, final int elapseTime, final boolean verifyServer, final String localServer); }
XmlRpcNotifier { public boolean notifyFailure(final long txNo, final String uei, final String reason) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(reason, "reason must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(reason); return sendXmlrpcRequest(XMLRPC_SERVER_FAILURE_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 notifyFailure(final long txNo, final String uei, final String reason) { Assert.notNull(uei, "uei must not be null"); Assert.notNull(reason, "reason must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(txNo)); params.addElement(uei); params.addElement(reason); return sendXmlrpcRequest(XMLRPC_SERVER_FAILURE_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();  }