public interface OutputContentHelper
Modifier and Type | Interface and Description |
---|---|
static class |
OutputContentHelper.CommitSemantics
Transactional semantics for importing output files.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteOutputContent(List contentNames)
Deletes the output content from the content store for the request.
|
ImportExportResult |
exportOutputContent()
Exports all previously imported output content to files in the
request output directory.
|
ImportExportResult |
exportOutputContent(List contentNames)
Exports the specified previously imported output content to files
in the request output directory.
|
String |
getResolvedOutputDirectory()
Gets the request output directory as resolved to the current server.
|
String |
getResolvedWorkDirectory()
Gets the request work directory as resolved to the current server.
|
ImportExportResult |
importOutputFiles(List fileNames,
OutputContentHelper.CommitSemantics semantics)
Imports the specified files from the resolved output directory.
|
ImportExportResult |
importOutputFiles(OutputContentHelper.CommitSemantics semantics)
Imports all files from the resolved output directory.
|
boolean |
isRequestWorkDirectoryShared()
Gets an indication whether the request file directory is shared.
|
boolean |
outputContentExists(String contentName)
Checks whether the specified output content exists in the content store
for the request.
|
boolean |
outputDirectoryExists()
Determines if the request's output directory exists.
|
List |
queryOutputContent()
Gets the detailed information for all existing output content in the
content store.
|
ContentDetail |
queryOutputContent(String contentName)
Gets the detailed information for the output content in the
content store, if it exists.
|
boolean |
workDirectoryExists()
Determines if the request's work directory exists.
|
boolean workDirectoryExists()
The job must define a system property to cause ESS to create the work directory.
true
if the work directory exists;
false
if the work directory does not exist.boolean outputDirectoryExists()
The job must define a system property to cause ESS to create the output directory.
true
if the output directory exists;
false
if the output directory does not exist.boolean isRequestWorkDirectoryShared()
true
if the request's work directory is shared;
false
if the work directory is a local directory.String getResolvedWorkDirectory()
The job may create temporary files in the work directory, and ESS will automatically delete the work directory at the end of request execution if the RequestFileDirectory is shared, or at the end of each stage (pre-processing, execution, update, post-processing) if the RequestFileDirectory is local.
null
if the job does not
define the necessary system property.String getResolvedOutputDirectory()
The job may create output files in the output directory that can be autmoatically or manually imported to the ESS content store.
ImportExportResult importOutputFiles(List fileNames, OutputContentHelper.CommitSemantics semantics)
fileNames
- a List<String>
of output file names to be
imported, where the name is the simple name of the file name.semantics
- commit semantics for the import.
Transactional
is not valid for a user-provided handle.ImportExportResult importOutputFiles(OutputContentHelper.CommitSemantics semantics)
semantics
- commit semantics for the import.
Transactional
is not valid for a user-provided handle.ImportExportResult exportOutputContent(List contentNames)
Output content created using the API can not be exported.
contentNames
- a List<String>
of names of previously
imported output content.ImportExportResult exportOutputContent()
Output content created using the API can not be exported.
List queryOutputContent() throws RuntimeServiceException
This returns information on both output content that was imported and output content created using the API.
List<ContentDetail>
of content details.RuntimeServiceException
- if runtime subsystem error.ContentDetail queryOutputContent(String contentName) throws RuntimeServiceException
This returns information on both output content that was imported and output content created using the API.
null
if the content
does not exist.RuntimeServiceException
- if runtime subsystem error.boolean outputContentExists(String contentName) throws RuntimeServiceException
This returns information on output content that was imported and output content created using the API.
contentName
- name of the output content to check.true
if the output content exists in the content store;
false
otherwise.RuntimeServiceException
- if runtime subsystem error.void deleteOutputContent(List contentNames) throws RuntimeServiceException
This can delete output content that was imported and output content created using the API.
contentNames
- a List<String>
of names of output content
to delete.RuntimeServiceException
- if runtime subsystem error.