當前位置: 首頁>>代碼示例>>Java>>正文


Java VersionInfo.getRevision方法代碼示例

本文整理匯總了Java中org.apache.hadoop.util.VersionInfo.getRevision方法的典型用法代碼示例。如果您正苦於以下問題:Java VersionInfo.getRevision方法的具體用法?Java VersionInfo.getRevision怎麽用?Java VersionInfo.getRevision使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.apache.hadoop.util.VersionInfo的用法示例。


在下文中一共展示了VersionInfo.getRevision方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getVersionTable

import org.apache.hadoop.util.VersionInfo; //導入方法依賴的package包/類
/**
 * Return a table containing version information.
 */
static String getVersionTable(FSNamesystem fsn, NameNode nn) {
  String javaVersion = System.getProperty("java.version");
  String javaVendor = System.getProperty("java.vendor");
  return "<div class='dfstable'><table>" +
      "\n  <tr><td class='col1'>Started:</td><td>" + fsn.getStartTime() +
      "</td></tr>\n" + "\n  <tr><td class='col1'>Version:</td><td>" +
      VersionInfo.getVersion() + ", " + VersionInfo.getRevision() +
      "</td></tr>\n" + "\n  <tr><td class='col1'>Compiled:</td><td>" +
      VersionInfo.getDate() + " by " + VersionInfo.getUser() + " from " +
      VersionInfo.getBranch() +
      "</td></tr>\n  <tr><td class='col1'>Cluster ID:</td><td>" +
      fsn.getClusterId() +
      "</td></tr>\n  <tr><td class='col1'>Block Pool ID:</td><td>" +
      fsn.getBlockPoolId() +
     // "</td></tr>\n  <tr><td class='col1'>Path Ancestor Lock Type:</td><td>" +
     // fsn.getFilePathAncestorLockType() +
      "</td></tr>\n <tr><td class='col1'>Java Runtime Version :</td><td>" +javaVendor+" "+javaVersion+"</td></tr>"+
      "</td></tr>\n  <tr><td class='col1'>" + nn.getActiveNameNodes().size() +
      " NN(s):</td><td>" +
      getAllActiveNNs(nn.getActiveNameNodes(), nn.conf) +
      "</td></tr>\n"+
      "</table></div>";
}
 
開發者ID:hopshadoop,項目名稱:hops,代碼行數:27,代碼來源:NamenodeJspHelper.java

示例2: getVersionTable

import org.apache.hadoop.util.VersionInfo; //導入方法依賴的package包/類
/** Return a table containing version information. */
public static String getVersionTable() {
  return "<div class='dfstable'><table>"       
      + "\n  <tr><td class='col1'>Version:</td><td>" + VersionInfo.getVersion() + ", " + VersionInfo.getRevision() + "</td></tr>"
      + "\n  <tr><td class='col1'>Compiled:</td><td>" + VersionInfo.getDate() + " by " + VersionInfo.getUser() + " from " + VersionInfo.getBranch() + "</td></tr>"
      + "\n</table></div>";
}
 
開發者ID:Nextzero,項目名稱:hadoop-2.6.0-cdh5.4.3,代碼行數:8,代碼來源:JspHelper.java

示例3: getVersionTable

import org.apache.hadoop.util.VersionInfo; //導入方法依賴的package包/類
/**
 * Return a table containing version information.
 */
public static String getVersionTable() {
  return "<div class='dfstable'><table>" +
      "\n  <tr><td class='col1'>Version:</td><td>" +
      VersionInfo.getVersion() + ", " + VersionInfo.getRevision() +
      "</td></tr>" + "\n  <tr><td class='col1'>Compiled:</td><td>" +
      VersionInfo.getDate() + " by " + VersionInfo.getUser() + " from " +
      VersionInfo.getBranch() + "</td></tr>" + "\n</table></div>";
}
 
開發者ID:hopshadoop,項目名稱:hops,代碼行數:12,代碼來源:JspHelper.java

示例4: getVersion

import org.apache.hadoop.util.VersionInfo; //導入方法依賴的package包/類
/**
 * Class representing Namenode information for JMX interfaces
 */
@Override // NameNodeMXBean
public String getVersion() {
  return VersionInfo.getVersion() + ", r" + VersionInfo.getRevision();
}
 
開發者ID:naver,項目名稱:hadoop,代碼行數:8,代碼來源:FSNamesystem.java

示例5: getBuildVersion

import org.apache.hadoop.util.VersionInfo; //導入方法依賴的package包/類
public static String getBuildVersion() {
  return VersionInfo.getRevision();
}
 
開發者ID:naver,項目名稱:hadoop,代碼行數:4,代碼來源:Storage.java

示例6: getVersion

import org.apache.hadoop.util.VersionInfo; //導入方法依賴的package包/類
@Override // DataNodeMXBean
public String getVersion() {
  return VersionInfo.getVersion() + ", r" + VersionInfo.getRevision();
}
 
開發者ID:aliyun-beta,項目名稱:aliyun-oss-hadoop-fs,代碼行數:5,代碼來源:DataNode.java

示例7: getRevision

import org.apache.hadoop.util.VersionInfo; //導入方法依賴的package包/類
public String getRevision() {
  return VersionInfo.getRevision();
}
 
開發者ID:aliyun-beta,項目名稱:aliyun-oss-hadoop-fs,代碼行數:4,代碼來源:DataNode.java

示例8: getVersion

import org.apache.hadoop.util.VersionInfo; //導入方法依賴的package包/類
@Override
public String getVersion() {
  return VersionInfo.getVersion() +", r"+ VersionInfo.getRevision();
}
 
開發者ID:Nextzero,項目名稱:hadoop-2.6.0-cdh5.4.3,代碼行數:5,代碼來源:JobTracker.java


注:本文中的org.apache.hadoop.util.VersionInfo.getRevision方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。