protected String _getBuildVersion(){ return _getVersion() + " from " + _getRevision() + " by " + _getUser() + " source checksum " + _getSrcChecksum(); }
public static String getProtocVersion(){ return COMMON_VERSION_INFO._getProtocVersion(); } }
public static String getDate() { return COMMON_VERSION_INFO._getDate(); }
/** * Returns a Stats Aggregator implementation class for the IStatsAggregator interface * For example HBaseStatsAggregator for the HBase implementation */ public StatsAggregator getStatsAggregator() { return (StatsAggregator) ReflectionUtils.newInstance(aggregatorImplementation, jobConf); }
public String runTask(String[] args) throws Exception { int res = ToolRunner.run(new JobClient(), args); return res == 0 ? "Success" : "Fail"; } }
/** * Take an encode strings and decode it into an array of strings. */ public static String[] decodeArray(String s) { if (s == null) return null; String[] escaped = StringUtils.split(s); String[] plain = new String[escaped.length]; for (int i = 0; i < escaped.length; ++i) plain[i] = StringUtils.unEscapeString(escaped[i]); return plain; }
/** * Set the array of string values for the <code>name</code> property as * as comma delimited values. * * @param name property name. * @param values The values */ public void setStrings(String name, String... values) { set(name, StringUtils.arrayToString(values)); }
/** * Print a log message for starting up and shutting down * @param clazz the class of the server * @param args arguments * @param LOG the target log object */ public static void startupShutdownMessage(Class<?> clazz, String[] args, final org.apache.commons.logging.Log LOG) { startupShutdownMessage(clazz, args, LogAdapter.create(LOG)); }
public CombinedIPList(String fixedBlackListFile, String variableBlackListFile, long cacheExpiryInSeconds) { IPList fixedNetworkList = new FileBasedIPList(fixedBlackListFile); if (variableBlackListFile != null) { IPList variableNetworkList = new CacheableIPList( new FileBasedIPList(variableBlackListFile), cacheExpiryInSeconds); networkLists = new IPList[]{fixedNetworkList, variableNetworkList}; } else { networkLists = new IPList[]{fixedNetworkList}; } }
@Override public E put(final E element) { E existing = super.put(element); expandIfNecessary(); return existing; }
public static String getBuildVersion(){ return COMMON_VERSION_INFO._getBuildVersion(); }
public static String getVersion() { return COMMON_VERSION_INFO._getVersion(); }
public static String getRevision() { return COMMON_VERSION_INFO._getRevision(); }
public static String getBranch() { return COMMON_VERSION_INFO._getBranch(); }
public static String getUrl() { return COMMON_VERSION_INFO._getUrl(); }
public static String getUser() { return COMMON_VERSION_INFO._getUser(); }
public static String getSrcChecksum() { return COMMON_VERSION_INFO._getSrcChecksum(); }
/** {@inheritDoc} */ @Override public long getCumulativeCpuTime() { readProcStatFile(); return cpuTimeTracker.getCumulativeCpuTime(); }
/** * Set the array of string values for the <code>name</code> property as * as comma delimited values. * * @param name property name. * @param values The values */ public void setStrings(String name, String... values) { set(name, StringUtils.arrayToString(values)); }