@SuppressWarnings("deprecation") @Test public void testCheckNodeDirNullFoo() throws Exception { m_snmpThresholder.checkNodeDir(new File(""), m_thresholdInterface, new Date(), new Events()); }
protected void checkNodeDir(File directory, SnmpThresholdNetworkInterface thresholdNetworkInterface, Date date, Events events) throws IllegalArgumentException { Assert.notNull(directory, "directory argument cannot be null"); Assert.notNull(thresholdNetworkInterface, "thresholdNetworkInterface argument cannot be null"); Assert.notNull(date, "date argument cannot be null"); Assert.notNull(events, "events argument cannot be null"); SnmpThresholdConfiguration config = thresholdNetworkInterface.getThresholdConfiguration(); Assert.notNull(config, "getThresholdConfiguration() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getNetworkInterface(), "getNetworkInterface() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getNodeId(), "getNodeId() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getInetAddress(), "getInetAddress() of thresholdNetworkInterface argument cannot be null"); if (log().isDebugEnabled()) { log().debug("checkNodeDir: threshold checking node dir: " + directory.getAbsolutePath()); } Map<String, Set<ThresholdEntity>> thresholdMap = thresholdNetworkInterface.getNodeThresholdMap(); for(String threshKey :thresholdMap.keySet()) { for (ThresholdEntity thresholdEntity : thresholdMap.get(threshKey)) { processThresholdForNode(directory, thresholdNetworkInterface, date, events, thresholdEntity); } } }
SnmpThresholder implements ServiceThresholder { protected void checkNodeDir(File directory, SnmpThresholdNetworkInterface thresholdNetworkInterface, Date date, Events events) throws IllegalArgumentException { Assert.notNull(directory, "directory argument cannot be null"); Assert.notNull(thresholdNetworkInterface, "thresholdNetworkInterface argument cannot be null"); Assert.notNull(date, "date argument cannot be null"); Assert.notNull(events, "events argument cannot be null"); SnmpThresholdConfiguration config = thresholdNetworkInterface.getThresholdConfiguration(); Assert.notNull(config, "getThresholdConfiguration() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getNetworkInterface(), "getNetworkInterface() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getNodeId(), "getNodeId() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getInetAddress(), "getInetAddress() of thresholdNetworkInterface argument cannot be null"); if (log().isDebugEnabled()) { log().debug("checkNodeDir: threshold checking node dir: " + directory.getAbsolutePath()); } Map<String, Set<ThresholdEntity>> thresholdMap = thresholdNetworkInterface.getNodeThresholdMap(); for(String threshKey :thresholdMap.keySet()) { for (ThresholdEntity thresholdEntity : thresholdMap.get(threshKey)) { processThresholdForNode(directory, thresholdNetworkInterface, date, events, thresholdEntity); } } } }
SnmpThresholder implements ServiceThresholder { protected void checkNodeDir(File directory, SnmpThresholdNetworkInterface thresholdNetworkInterface, Date date, Events events) throws IllegalArgumentException { Assert.notNull(directory, "directory argument cannot be null"); Assert.notNull(thresholdNetworkInterface, "thresholdNetworkInterface argument cannot be null"); Assert.notNull(date, "date argument cannot be null"); Assert.notNull(events, "events argument cannot be null"); SnmpThresholdConfiguration config = thresholdNetworkInterface.getThresholdConfiguration(); Assert.notNull(config, "getThresholdConfiguration() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getNetworkInterface(), "getNetworkInterface() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getNodeId(), "getNodeId() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getInetAddress(), "getInetAddress() of thresholdNetworkInterface argument cannot be null"); if (log().isDebugEnabled()) { log().debug("checkNodeDir: threshold checking node dir: " + directory.getAbsolutePath()); } Map<String, Set<ThresholdEntity>> thresholdMap = thresholdNetworkInterface.getNodeThresholdMap(); for(String threshKey :thresholdMap.keySet()) { for (ThresholdEntity thresholdEntity : thresholdMap.get(threshKey)) { processThresholdForNode(directory, thresholdNetworkInterface, date, events, thresholdEntity); } } }  }
SnmpThresholder implements ServiceThresholder { protected void checkNodeDir(File directory, SnmpThresholdNetworkInterface thresholdNetworkInterface, Date date, Events events) throws IllegalArgumentException { Assert.notNull(directory, "directory argument cannot be null"); Assert.notNull(thresholdNetworkInterface, "thresholdNetworkInterface argument cannot be null"); Assert.notNull(date, "date argument cannot be null"); Assert.notNull(events, "events argument cannot be null"); SnmpThresholdConfiguration config = thresholdNetworkInterface.getThresholdConfiguration(); Assert.notNull(config, "getThresholdConfiguration() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getNetworkInterface(), "getNetworkInterface() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getNodeId(), "getNodeId() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getInetAddress(), "getInetAddress() of thresholdNetworkInterface argument cannot be null"); if (log().isDebugEnabled()) { log().debug("checkNodeDir: threshold checking node dir: " + directory.getAbsolutePath()); } Map<String, Set<ThresholdEntity>> thresholdMap = thresholdNetworkInterface.getNodeThresholdMap(); for(String threshKey :thresholdMap.keySet()) { for (ThresholdEntity thresholdEntity : thresholdMap.get(threshKey)) { processThresholdForNode(directory, thresholdNetworkInterface, date, events, thresholdEntity); } } }  String serviceName(); void initialize(Map<?,?> parameters); void reinitialize(); void release(); void initialize(ThresholdNetworkInterface netIface, Map<?,?> parms); void release(ThresholdNetworkInterface iface); int check(ThresholdNetworkInterface netIface, EventProxy eproxy, Map<?,?> parms); ThresholdsDao getThresholdsDao(); void setThresholdsDao(ThresholdsDao thresholdsDao); IfInfoGetter getIfInfoGetter(); void setIfInfoGetter(IfInfoGetter ifInfoGetter); }
SnmpThresholder implements ServiceThresholder { protected void checkNodeDir(File directory, SnmpThresholdNetworkInterface thresholdNetworkInterface, Date date, Events events) throws IllegalArgumentException { Assert.notNull(directory, "directory argument cannot be null"); Assert.notNull(thresholdNetworkInterface, "thresholdNetworkInterface argument cannot be null"); Assert.notNull(date, "date argument cannot be null"); Assert.notNull(events, "events argument cannot be null"); SnmpThresholdConfiguration config = thresholdNetworkInterface.getThresholdConfiguration(); Assert.notNull(config, "getThresholdConfiguration() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getNetworkInterface(), "getNetworkInterface() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getNodeId(), "getNodeId() of thresholdNetworkInterface argument cannot be null"); Assert.notNull(thresholdNetworkInterface.getInetAddress(), "getInetAddress() of thresholdNetworkInterface argument cannot be null"); if (log().isDebugEnabled()) { log().debug("checkNodeDir: threshold checking node dir: " + directory.getAbsolutePath()); } Map<String, Set<ThresholdEntity>> thresholdMap = thresholdNetworkInterface.getNodeThresholdMap(); for(String threshKey :thresholdMap.keySet()) { for (ThresholdEntity thresholdEntity : thresholdMap.get(threshKey)) { processThresholdForNode(directory, thresholdNetworkInterface, date, events, thresholdEntity); } } }  String serviceName(); void initialize(Map<?,?> parameters); void reinitialize(); void release(); void initialize(ThresholdNetworkInterface netIface, Map<?,?> parms); void release(ThresholdNetworkInterface iface); int check(ThresholdNetworkInterface netIface, EventProxy eproxy, Map<?,?> parms); ThresholdsDao getThresholdsDao(); void setThresholdsDao(ThresholdsDao thresholdsDao); IfInfoGetter getIfInfoGetter(); void setIfInfoGetter(IfInfoGetter ifInfoGetter);  }