@Test public void testEventWithPassiveStatusParms() { Event e = createPassiveStatusEvent("Router", "192.168.1.1", "ICMP", "Down"); assertTrue(m_psk.isPassiveStatusEvent(e)); }
boolean isPassiveStatusEvent(Event e) { return PASSIVE_STATUS_UEI.equals(e.getUei()) && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_NODE_LABEL) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_IPADDR) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_NAME) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_STATUS) != null; }
PassiveStatusKeeper extends AbstractServiceDaemon implements EventListener { boolean isPassiveStatusEvent(Event e) { return PASSIVE_STATUS_UEI.equals(e.getUei()) && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_NODE_LABEL) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_IPADDR) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_NAME) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_STATUS) != null; } }
PassiveStatusKeeper extends AbstractServiceDaemon implements EventListener { boolean isPassiveStatusEvent(Event e) { return PASSIVE_STATUS_UEI.equals(e.getUei()) && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_NODE_LABEL) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_IPADDR) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_NAME) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_STATUS) != null; } PassiveStatusKeeper();  PassiveStatusKeeper(EventIpcManager eventMgr); }
PassiveStatusKeeper extends AbstractServiceDaemon implements EventListener { boolean isPassiveStatusEvent(Event e) { return PASSIVE_STATUS_UEI.equals(e.getUei()) && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_NODE_LABEL) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_IPADDR) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_NAME) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_STATUS) != null; } PassiveStatusKeeper();  PassiveStatusKeeper(EventIpcManager eventMgr); synchronized static void setInstance(PassiveStatusKeeper psk); synchronized static PassiveStatusKeeper getInstance(); void setStatus(String nodeLabel, String ipAddr, String svcName, PollStatus pollStatus); void setStatus(PassiveStatusKey key, PollStatus pollStatus); PollStatus getStatus(String nodeLabel, String ipAddr, String svcName); void onEvent(Event e); EventIpcManager getEventManager(); void setEventManager(EventIpcManager eventMgr); DataSource getDbConnectoinFactory(); void setDataSource(DataSource dataSource); }
PassiveStatusKeeper extends AbstractServiceDaemon implements EventListener { boolean isPassiveStatusEvent(Event e) { return PASSIVE_STATUS_UEI.equals(e.getUei()) && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_NODE_LABEL) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_IPADDR) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_NAME) != null && EventUtils.getParm(e, EventConstants.PARM_PASSIVE_SERVICE_STATUS) != null; } PassiveStatusKeeper();  PassiveStatusKeeper(EventIpcManager eventMgr); synchronized static void setInstance(PassiveStatusKeeper psk); synchronized static PassiveStatusKeeper getInstance(); void setStatus(String nodeLabel, String ipAddr, String svcName, PollStatus pollStatus); void setStatus(PassiveStatusKey key, PollStatus pollStatus); PollStatus getStatus(String nodeLabel, String ipAddr, String svcName); void onEvent(Event e); EventIpcManager getEventManager(); void setEventManager(EventIpcManager eventMgr); DataSource getDbConnectoinFactory(); void setDataSource(DataSource dataSource);  }