Exemplo n.º 1
0
  @Override
  public void initialize() throws InitializationException {
    Map<String, Domain> domains = m_configManager.getLongConfigDomains();

    for (Domain domain : domains.values()) {
      Integer serviceThreshold = domain.getServiceThreshold();
      Integer urlThreshold = domain.getUrlThreshold();
      Integer sqlThreshold = domain.getSqlThreshold();

      if (serviceThreshold != null) {
        m_longServiceThresholds.put(domain.getName(), serviceThreshold);
      }
      if (urlThreshold != null) {
        m_longUrlThresholds.put(domain.getName(), urlThreshold);
      }
      if (sqlThreshold != null) {
        m_longSqlThresholds.put(domain.getName(), sqlThreshold);
      }
    }
  }
Exemplo n.º 2
0
 @Override
 public void initialize() throws InitializationException {
   if (m_serverConfigManager.isJobMachine()) {
     Threads.forGroup("Cat").start(new Reload());
   }
 }