Skip to content

Commit

Permalink
Modified comment in SchedulerBackend#applicationId and TaskScheduler#…
Browse files Browse the repository at this point in the history
…applicationId
  • Loading branch information
sarutak committed Sep 25, 2014
1 parent 424fea4 commit 203634e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ private[spark] trait SchedulerBackend {

/**
* The application ID associated with the job, if any.
* It is expected that the subclasses of TaskScheduler or SchedulerBackend
* override this method and return an unique application ID.
*
* @return The application ID, or None if the backend does not provide an ID.
* @return The application ID, if the backend does not provide an ID.
*/
def applicationId(): Option[String] = None
def applicationId(): String = System.currentTimeMillis.toString

}
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ private[spark] trait TaskScheduler {

/**
* The application ID associated with the job, if any.
* It is expected that the subclasses of TaskScheduler or SchedulerBackend
* override this method and return an unique application ID.
*
* @return The application ID, or None if the backend does not provide an ID.
* @return The application ID, if the backend does not provide an ID.
*/
def applicationId(): String = System.currentTimeMillis.toString

Expand Down

0 comments on commit 203634e

Please sign in to comment.