@Test public void testFailureSendInterfaceUpEvent() throws Exception { Date date = new Date(); finishUp(); m_anticipator.shutdown(); EventBuilder bldr = serviceEventBuilder(date); assertFalse("notifier sendInterfaceUpEvent", m_notifier.sendInterfaceUpEvent(bldr.getEvent())); }
public boolean sendInterfaceUpEvent(final Event event) { Assert.notNull(event, "event object must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(getLabelForEventNode(event))); params.addElement(String.valueOf(event.getInterface())); params.addElement(String.valueOf(event.getHost())); params.addElement(String.valueOf(getEventHost(event))); params.addElement(String.valueOf(event.getTime())); return sendXmlrpcRequest(XMLRPC_INTERFACE_UP_COMMAND, params); }
XmlRpcNotifier { public boolean sendInterfaceUpEvent(final Event event) { Assert.notNull(event, "event object must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(getLabelForEventNode(event))); params.addElement(String.valueOf(event.getInterface())); params.addElement(String.valueOf(event.getHost())); params.addElement(String.valueOf(getEventHost(event))); params.addElement(String.valueOf(event.getTime())); return sendXmlrpcRequest(XMLRPC_INTERFACE_UP_COMMAND, params); } }
XmlRpcNotifier { public boolean sendInterfaceUpEvent(final Event event) { Assert.notNull(event, "event object must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(getLabelForEventNode(event))); params.addElement(String.valueOf(event.getInterface())); params.addElement(String.valueOf(event.getHost())); params.addElement(String.valueOf(getEventHost(event))); params.addElement(String.valueOf(event.getTime())); return sendXmlrpcRequest(XMLRPC_INTERFACE_UP_COMMAND, params); } XmlRpcNotifier(final XmlrpcServer[] rpcServers, final int retries, final int elapseTime, final boolean verifyServer, final String localServer); }
XmlRpcNotifier { public boolean sendInterfaceUpEvent(final Event event) { Assert.notNull(event, "event object must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(getLabelForEventNode(event))); params.addElement(String.valueOf(event.getInterface())); params.addElement(String.valueOf(event.getHost())); params.addElement(String.valueOf(getEventHost(event))); params.addElement(String.valueOf(event.getTime())); return sendXmlrpcRequest(XMLRPC_INTERFACE_UP_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 sendInterfaceUpEvent(final Event event) { Assert.notNull(event, "event object must not be null"); final Vector<Object> params = new Vector<Object>(); params.addElement(String.valueOf(getLabelForEventNode(event))); params.addElement(String.valueOf(event.getInterface())); params.addElement(String.valueOf(event.getHost())); params.addElement(String.valueOf(getEventHost(event))); params.addElement(String.valueOf(event.getTime())); return sendXmlrpcRequest(XMLRPC_INTERFACE_UP_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();  }