Package com.dianping.cat.configuration.server.entity

Examples of com.dianping.cat.configuration.server.entity.HdfsConfig


    return "xudgtsnoxivwclna";
  }

  public String getHdfsBaseDir(String id) {
    if (m_config != null) {
      HdfsConfig hdfsConfig = m_config.getStorage().findHdfs(id);

      if (hdfsConfig != null) {
        String baseDir = hdfsConfig.getBaseDir();

        if (baseDir != null && baseDir.trim().length() > 0) {
          return baseDir;
        }
      }
View Full Code Here


  }

  public long getHdfsFileMaxSize(String id) {
    if (m_config != null) {
      StorageConfig storage = m_config.getStorage();
      HdfsConfig hdfsConfig = storage.findHdfs(id);

      return toLong(hdfsConfig == null ? null : hdfsConfig.getMaxSize(), DEFAULT_HDFS_FILE_MAX_SIZE);
    } else {
      return DEFAULT_HDFS_FILE_MAX_SIZE;
    }
  }
View Full Code Here

    }
  }

  public String getHdfsServerUri(String id) {
    if (m_config != null) {
      HdfsConfig hdfsConfig = m_config.getStorage().findHdfs(id);

      if (hdfsConfig != null) {
        String serverUri = hdfsConfig.getServerUri();

        if (serverUri != null && serverUri.trim().length() > 0) {
          return serverUri;
        }
      }
View Full Code Here

TOP

Related Classes of com.dianping.cat.configuration.server.entity.HdfsConfig

Copyright © 2018 www.massapicom. 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.