Example usage for org.apache.hadoop.yarn.server.utils BuilderUtils newApplicationId

List of usage examples for org.apache.hadoop.yarn.server.utils BuilderUtils newApplicationId

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.server.utils BuilderUtils newApplicationId.

Prototype

public static ApplicationId newApplicationId(long clusterTimeStamp, int id) 

Source Link

Usage

From source file:org.apache.tajo.TestTajoIds.java

License:Apache License

public static QueryId createQueryId(long timestamp, int id) {
    ApplicationId appId = BuilderUtils.newApplicationId(timestamp, id);

    return QueryIdFactory.newQueryId(appId.toString());
}

From source file:org.apache.tajo.util.ApplicationIdUtils.java

License:Apache License

public static ApplicationId queryIdToAppId(QueryId queryId) {
    return BuilderUtils.newApplicationId(Long.parseLong(queryId.getId()), queryId.getSeq());
}