Examples of StatusManager


Examples of ch.qos.logback.core.status.StatusManager

    StatusManager sm = loggerContext.getStatusManager();
    sm.add(statusListener);
  }

  void removeStatusListener(StatusListener statusListener) {
    StatusManager sm = loggerContext.getStatusManager();
    sm.remove(statusListener);
  }
View Full Code Here

Examples of ch.qos.logback.core.status.StatusManager

  private String conventionalConfigFileName(String contextName) {
    return "logback-" + contextName + ".xml";
  }

  private URL findConfigFileURL(Context ctx, LoggerContext loggerContext) {
    StatusManager sm = loggerContext.getStatusManager();

    String jndiEntryForConfigResource = JNDIUtil.lookup(ctx,
            JNDI_CONFIGURATION_RESOURCE);
    // Do we have a dedicated configuration file?
    if (jndiEntryForConfigResource != null) {
      sm.add(new InfoStatus("Searching for [" + jndiEntryForConfigResource
              + "]", this));
      URL url = urlByResourceName(sm, jndiEntryForConfigResource);
      if (url == null) {
        String msg = "The jndi resource [" + jndiEntryForConfigResource
                + "] for context [" + loggerContext.getName()
                + "] does not lead to a valid file";
        sm.add(new WarnStatus(msg, this));
      }
      return url;
    } else {
      String resourceByConvention = conventionalConfigFileName(loggerContext
              .getName());
View Full Code Here

Examples of ch.qos.logback.core.status.StatusManager

      BasicConfigurator.configure(loggerContext);
    }
  }

  private void statusOnResourceSearch(String resourceName, URL url) {
    StatusManager sm = loggerContext.getStatusManager();
    if (url == null) {
      sm.add(new InfoStatus("Could NOT find resource [" + resourceName + "]",
          loggerContext));
    } else {
      sm.add(new InfoStatus("Found resource [" + resourceName + "]",
          loggerContext));
    }
  }
View Full Code Here

Examples of ch.qos.logback.core.status.StatusManager

    resetStatusListeners();
  }

 
  private void resetStatusListeners() {
    StatusManager sm = getStatusManager();
    for (StatusListener sl : sm.getCopyOfStatusListenerList()) {
      sm.remove(sl);
    }
  }
View Full Code Here

Examples of com.alibaba.dubbo.registry.common.StatusManager

    private StatusChecker warmupStatusChecker;

    public void afterPropertiesSet() throws Exception {
        logger.info("Registry Console warn up.");

        StatusManager statusManager = StatusManager.getInstance();

        statusManager.addStatusHandler("memory",memoryStatusChecker);
        statusManager.addStatusHandler("load",loadStatusChecker);
//        statusManager.addStatusHandler("database",databaseStatusChecker);
//        statusManager.addStatusHandler("cache",cacheStatusChecker);
//        statusManager.addStatusHandler("threadpool",threadPoolStatusChecker);
//        statusManager.addStatusHandler("failure",failureStatusChecker);
//        statusManager.addStatusHandler("socket",SocketStatusChecker);
View Full Code Here

Examples of com.cloudera.flume.master.StatusManager

   * backed version being reloaded from a restarted master.
   */
  void buildMaster() throws IOException {
    cfgMan = new ConfigManager(FlumeMaster.createConfigStore(FlumeConfiguration
        .get()));
    StatusManager statman = new StatusManager();
    flowed = new FlowConfigManager.FailoverFlowConfigManager(cfgMan, statman);
    logical = new LogicalConfigurationManager(flowed, new ConfigManager(),
        statman);
    flumeMaster = new FlumeMaster(new CommandManager(), logical, statman,
        new MasterAckManager(), FlumeConfiguration.get());
View Full Code Here

Examples of com.google.collide.client.status.StatusManager

  @VisibleForTesting
  public AppContext() {

    // Things that depend on nothing
    this.keyBindings = new KeyBindings();
    this.statusManager = new StatusManager();
    this.messageFilter = new MessageFilter();
    this.awesomeBoxModel = new AwesomeBoxModel();
    this.awesomeBoxComponentHostModel = new AwesomeBoxComponentHostModel();
    this.userActivityManager = new UserActivityManager();
    this.windowUnloadingController = new WindowUnloadingController();
View Full Code Here

Examples of org.apache.ivy.core.module.status.StatusManager

        configurator.setRoot(ivy);
    }

    private void statusesStarted(String qName, Map attributes) {
        currentConfiguratorTag = qName;
        StatusManager m = new StatusManager();
        String defaultStatus = (String) attributes.get("default");
        if (defaultStatus != null) {
            m.setDefaultStatus(defaultStatus);
        }
        ivy.setStatusManager(m);
        configurator.setRoot(m);
    }
View Full Code Here

Examples of org.apache.ivy.core.module.status.StatusManager

                if ("true".equals((String) attributes.get("usedefaults"))) {
                    ivy.configureDefaultVersionMatcher();
                }
            } else if ("statuses".equals(qName)) {
                currentConfiguratorTag = qName;
                StatusManager m = new StatusManager();
                String defaultStatus = (String) attributes.get("default");
                if (defaultStatus != null) {
                    m.setDefaultStatus(defaultStatus);
                }
                ivy.setStatusManager(m);
                configurator.setRoot(m);
            } else if (configuratorTags.contains(qName)) {
                currentConfiguratorTag = qName;
View Full Code Here

Examples of org.apache.ivy.core.module.status.StatusManager

                if ("true".equals(ivy.substitute((String) attributes.get("usedefaults")))) {
                    ivy.configureDefaultVersionMatcher();
                }
            } else if ("statuses".equals(qName)) {
                currentConfiguratorTag = qName;
                StatusManager m = new StatusManager();
                String defaultStatus = ivy.substitute((String) attributes.get("default"));
                if (defaultStatus != null) {
                    m.setDefaultStatus(defaultStatus);
                }
                ivy.setStatusManager(m);
                configurator.setRoot(m);
            } else if (configuratorTags.contains(qName)) {
                currentConfiguratorTag = qName;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.