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

[REEF-1697] implement JobSubmissionEventImpl.toString() for better logging #1213

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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