Skip to content

Commit

Permalink
Modified defailt implementation of applicationId
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak committed Sep 29, 2014
1 parent 9aadb0b commit 2cdd009
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core/src/main/java/org/apache/spark/ApplicationId.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,18 @@ public int hashCode() {
public String toString() {
return appId;
}


private static ApplicationId defaultAppId =
new ApplicationId(String.valueOf(System.currentTimeMillis()));

/**
* Default implementation of Application Id
*
* @return Default implementation of Application id based on System.currentTimeMillis
*/
public static ApplicationId getApplicationId() {
return defaultAppId;
}

}

0 comments on commit 2cdd009

Please sign in to comment.