Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
[REEF-1697] Implement JobSubmissionEventImpl.toString()
Browse files Browse the repository at this point in the history
Add `toString()` method to log all fields of `JobSubmissionEvent` data structure
for better logging.

JIRA:
  [REEF-1697](https://issues.apache.org/jira/browse/REEF-1697)

Pull request:
  This closes #1213
  • Loading branch information
motus authored and tcNickolas committed Jan 12, 2017
1 parent a050b1c commit a1ef937
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -57,6 +57,15 @@ private JobSubmissionEventImpl(final Builder builder) {
this.maxApplicationSubmissions = Optional.ofNullable(builder.maxApplicationSubmissions);
}

@Override
public String toString() {
return String.format(
"Job Submission :: user:%s id:%s remote:%s mem:%s queue:%s priority:%s" +
" preserve evaluators:%s max submissions:%s global:%s local:%s",
this.userName, this.identifier, this.remoteId, this.driverMemory, this.queue, this.priority,
this.preserveEvaluators, this.maxApplicationSubmissions, this.globalFileSet, this.localFileSet);
}

@Override
public String getIdentifier() {
return identifier;
Expand Down

0 comments on commit a1ef937

Please sign in to comment.