Examples of WjrConfig


Examples of bufferings.ktr.wjr.shared.model.WjrConfig

   *          the Json string.
   * @return the created WjrConfig instance.
   */
  WjrConfig createWjrConfigFromJson(String jsonString) {
    WjrConfigMeta m = WjrConfigMeta.meta();
    WjrConfig wjrConfig = new WjrConfig();

    JSONObject j = JSONParser.parseStrict(jsonString).isObject();
    wjrConfig.setConfigId(j.get(m.configId).isString().stringValue());
    wjrConfig.setConfigName(j.get(m.configName).isString().stringValue());
    wjrConfig.setCpumsEnabled(j.get(m.cpumsEnabled).isString().stringValue());
    wjrConfig.setApimsEnabled(j.get(m.apimsEnabled).isString().stringValue());
    wjrConfig.setLogHookEnabled(j
      .get(m.logHookEnabled)
      .isString()
      .stringValue());
    wjrConfig.setLogHookTimezone(j
      .get(m.logHookTimezone)
      .isString()
      .stringValue());
    wjrConfig.setRetryOverQuotaEnabled(j
      .get(m.retryOverQuotaEnabled)
      .isString()
      .stringValue());
    wjrConfig.setRetryOverQuotaInterval(j
      .get(m.retryOverQuotaInterval)
      .isString()
      .stringValue());
    wjrConfig.setRetryOverQuotaMaxCount(j
      .get(m.retryOverQuotaMaxCount)
      .isString()
      .stringValue());

    return wjrConfig;
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrConfig

    rpcService.loadConfig(
      getConfigIdFromQueryString(),
      new AsyncCallback<WjrConfig>() {

        public void onFailure(Throwable caught) {
          config = new WjrConfig();
          setParamTzToConfig(config);
          loadingView.notifyLoaded();
          view.notifyLoadingConfigFailed(config, caught);
        }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrConfig

  public WjrConfig loadConfig(String configId) {
    if (WjrSharedUtils.isNullOrEmptyString(configId)) {
      configId = WjrConfig.DEFAULT_CONFIG_ID;
    }

    WjrConfig config = getConfigLoader().loadWjrConfig(configId);
    logger.info("The configuration is loaded. " + config.toString());
    return config;
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrConfig

   * @param configId
   *          The id of the config to load.
   * @return The loaded config.
   */
  public WjrConfig loadWjrConfig(String configId) {
    WjrConfig config = new WjrConfig();
    config.setConfigId(configId);
    configId = config.getConfigId();

    Properties props = loadProperties();
    Enumeration<Object> propKeys = props.keys();
    while (propKeys.hasMoreElements()) {
      String propKey = (String) propKeys.nextElement();
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrConfig

  /**
   * {@inheritDoc}
   */
  public WjrConfig loadConfig(Map<String, List<String>> parameterMap) {
    String configId = getParamParser().getConfigId(parameterMap);
    WjrConfig config = getConfigLoader().loadWjrConfig(configId);
    logger.info("The configuration is loaded. " + config.toString());
    return config;
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrConfig

   * @param configId
   *          The id of the config to load.
   * @return The loaded config.
   */
  public WjrConfig loadWjrConfig(String configId) {
    WjrConfig config = new WjrConfig();
    if (configId == null || configId.length() == 0) {
      return config;
    }

    Properties props = loadProperties();
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrConfig

    view.go(WjrPresenter.this, container);

    rpcService.loadConfig(getParameterMap(), new AsyncCallback<WjrConfig>() {

      public void onFailure(Throwable caught) {
        config = new WjrConfig();
        loadingView.notifyLoaded();
        view.notifyLoadingConfigFailed(config, caught);
      }

      public void onSuccess(WjrConfig result) {
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.