Tabnine Logo
SliderUtils.addBuildInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
addBuildInfo
method
in
org.apache.slider.common.tools.SliderUtils

Best Java code snippets using org.apache.slider.common.tools.SliderUtils.addBuildInfo (Showing top 4 results out of 315)

origin: apache/incubator-slider

public void initClusterStatus() {
 //copy into cluster status. 
 ClusterDescription status = ClusterDescription.copy(clusterStatusTemplate);
 status.state = STATE_CREATED;
 MapOperations infoOps = new MapOperations("info", status.info);
 infoOps.mergeWithoutOverwrite(applicationInfo);
 SliderUtils.addBuildInfo(infoOps, "status");
 long now = now();
 status.setInfoTime(StatusKeys.INFO_LIVE_TIME_HUMAN,
              StatusKeys.INFO_LIVE_TIME_MILLIS,
              now);
 SliderUtils.setInfoTime(infoOps,
   StatusKeys.INFO_LIVE_TIME_HUMAN,
   StatusKeys.INFO_LIVE_TIME_MILLIS,
   now);
 if (0 == status.createTime) {
  status.createTime = now;
  SliderUtils.setInfoTime(infoOps,
    StatusKeys.INFO_CREATE_TIME_HUMAN,
    StatusKeys.INFO_CREATE_TIME_MILLIS,
    now);
 }
 status.state = STATE_LIVE;
  //set the app state to this status
 setClusterStatus(status);
}
origin: org.apache.slider/slider-core

public void initClusterStatus() {
 //copy into cluster status. 
 ClusterDescription status = ClusterDescription.copy(clusterStatusTemplate);
 status.state = STATE_CREATED;
 MapOperations infoOps = new MapOperations("info", status.info);
 infoOps.mergeWithoutOverwrite(applicationInfo);
 SliderUtils.addBuildInfo(infoOps, "status");
 long now = now();
 status.setInfoTime(StatusKeys.INFO_LIVE_TIME_HUMAN,
              StatusKeys.INFO_LIVE_TIME_MILLIS,
              now);
 SliderUtils.setInfoTime(infoOps,
   StatusKeys.INFO_LIVE_TIME_HUMAN,
   StatusKeys.INFO_LIVE_TIME_MILLIS,
   now);
 if (0 == status.createTime) {
  status.createTime = now;
  SliderUtils.setInfoTime(infoOps,
    StatusKeys.INFO_CREATE_TIME_HUMAN,
    StatusKeys.INFO_CREATE_TIME_MILLIS,
    now);
 }
 status.state = STATE_LIVE;
  //set the app state to this status
 setClusterStatus(status);
}
origin: org.apache.slider/slider-core

SliderUtils.addBuildInfo(infoOps, "status");
cd.statistics = new HashMap<>();
origin: apache/incubator-slider

SliderUtils.addBuildInfo(infoOps, "status");
cd.statistics = new HashMap<>();
org.apache.slider.common.toolsSliderUtilsaddBuildInfo

Javadoc

Add the cluster build information; this will include Hadoop details too

Popular methods of SliderUtils

  • buildEnvMap
  • isSet
  • extractDomainNameFromFQDN
  • extractFirstLine
    Extract the first line of a multi-line string. This is typically used to prune the stack trace appen
  • getApplicationResourceInputStream
  • getHdpVersion
    Retrieve the HDP version if it is an HDP cluster, or null otherwise. It first checks if system prope
  • isHdp
    Query to find if it is an HDP cluster
  • listDir
    List a directory in the local filesystem
  • sortApplicationsByMostRecent
    Sorts the given list of application reports, most recently started or finished instance first.
  • truncate
    Truncate the given string to a maximum length provided with a pad (...) added to the end if expected
  • write
    Write bytes to a file
  • appReportToString
  • write,
  • appReportToString,
  • appendToURL,
  • buildApplicationReportMap,
  • buildClasspath,
  • checkCredentialCacheFile,
  • checkForRequiredNativeLibraries,
  • checkPort,
  • collectionToStringList

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Permission (java.security)
    Legacy security code; do not use.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now