Skip to content

Commit

Permalink
Merge pull request #293 from UnifiedViews/feature/pipelineId
Browse files Browse the repository at this point in the history
Implementing UnifiedViews/Plugin-DevEnv#5
  • Loading branch information
Michal Klempa committed Feb 19, 2015
2 parents f16a1d0 + c60ed95 commit 27409a2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
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;
}
}

0 comments on commit 27409a2

Please sign in to comment.