Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alolow access to pipelineID and executionID from DPU #293

Merged
1 commit merged into from
Feb 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public File getWorkingDir() {
@Override
public File getResultDir() {
try {
final File dir = resourceManager.getDPUStorageDir(contextInfo.getExecution(), dpuInstance);
final File dir = resourceManager.getDPUStorageDir(contextInfo.getExecution(), dpuInstance);
dir.mkdirs();
return dir;
} catch (MissingResourceException ex) {
Expand Down Expand Up @@ -374,4 +374,19 @@ public Locale getLocale() {
public void setLocale(Locale locale) {
this.locale = locale;
}

@Override
public Long getPipelineId() {
return this.contextInfo.getExecution().getPipeline().getId();
}

@Override
public Long getPipelineExecutionId() {
return this.contextInfo.getExecutionId();
}

@Override
public Long getDpuInstanceId() {
return dpuInstance.getId();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,19 @@ public String getDpuInstanceDirectory() {
public Locale getLocale() {
return new Locale("en", "US");
}

@Override
public Long getPipelineId() {
return 7L;
}

@Override
public Long getPipelineExecutionId() {
return 15L;
}

@Override
public Long getDpuInstanceId() {
return 9L;
}
}