@Override public boolean configure(String name, Map<String, Object> params) throws ConfigurationException { if (s_logger.isInfoEnabled()) s_logger.info("Start configuring secondary storage vm alert manager : " + name); try { SubscriptionMgr.getInstance().subscribe(SecondaryStorageVmManager.ALERT_SUBJECT, this, "onSSVMAlert"); } catch (SecurityException e) { throw new ConfigurationException("Unable to register secondary storage vm event subscription, exception: " + e); } catch (NoSuchMethodException e) { throw new ConfigurationException("Unable to register secondary storage vm event subscription, exception: " + e); } return true; } }
@Override public boolean configure(String name, Map<String, Object> params) throws ConfigurationException { if (s_logger.isInfoEnabled()) s_logger.info("Start configuring console proxy alert manager : " + name); try { SubscriptionMgr.getInstance().subscribe(ConsoleProxyManager.ALERT_SUBJECT, this, "onProxyAlert"); } catch (SecurityException e) { throw new ConfigurationException("Unable to register console proxy event subscription, exception: " + e); } catch (NoSuchMethodException e) { throw new ConfigurationException("Unable to register console proxy event subscription, exception: " + e); } return true; } }
@Override public boolean configure(String name, Map<String, Object> params) throws ConfigurationException { if (s_logger.isInfoEnabled()) { s_logger.info("Start configuring cluster alert manager : " + name); } try { SubscriptionMgr.getInstance().subscribe(ClusterManager.ALERT_SUBJECT, this, "onClusterAlert"); } catch (SecurityException e) { throw new ConfigurationException("Unable to register cluster event subscription"); } catch (NoSuchMethodException e) { throw new ConfigurationException("Unable to register cluster event subscription"); } return true; } }