|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.service.ddxm.client.Output
public class Output
The Output
is a container for the results of a DDX job.
It includes the successful documents as well as the Throwable
exceptions that occurred for each
DDX block that failed. It also contains audit lists that are useful for iterating through
the result documents or Throwable
exceptions.
Field Summary | |
---|---|
static java.lang.String |
RESULT_LIST_PREFIX
The Key name for a result block which produces multiple outputs. |
Constructor Summary | |
---|---|
Output()
|
Method Summary | |
---|---|
void |
cleanupFailures()
Audits the successful documents list to remove any documents associated with failed blocks. |
java.util.Map |
getDocuments()
Retrieves the successful documents from the DDX job. |
java.util.List |
getFailedBlocks()
A list of the names of the failed blocks. |
Document |
getJobLog()
Retrieves the job log that was generated during execution of the DDX. |
java.util.Map |
getMultipleResultsBlocks()
Retrieves the multiple result blocks (a map of result block names to a list of document names that was produced by that block). |
int |
getNumRequestedBlocks()
Retrieves the number of result blocks in the DDX. |
java.util.Map |
getParentResultNames()
Retrieves a map of the result block name to the document names resulting from that result block. |
java.util.List |
getSuccessfulBlocks()
Retrieves the names of the blocks that were successful. |
java.util.List |
getSuccessfulDocuments()
Retrieves the names of the documents that were successful. |
java.util.Map |
getThrowables()
Retrieves a map of the throwable exceptions that were generated during execution of the DDX. |
boolean |
isFailedBlock(java.lang.Object docname)
Determines if a named document resulted from a failed block. |
void |
markAsFailed(java.lang.String docName,
java.lang.Throwable e)
Removes a document from the list of successful documents, by moving the document's result block from the successful blocks list to the failed blocks list. |
void |
setDocuments(java.util.Map documents)
Sets the successful documents from the DDX job. |
void |
setFailedBlocks(java.util.List failedBlocks)
Sets the names of the failed blocks. |
void |
setJobLog(Document jobLog)
Sets the job log that was generated during execution of the DDX. |
void |
setMultipleResultsBlocks(java.util.Map multipleResultsBlocks)
Sets the multiple result blocks (a map of result block names to a list of document names that was produced by that block). |
void |
setNumRequestedBlocks(int numRequestedBlocks)
Sets the number of result blocks in the DDX. |
void |
setParentResultNames(java.util.Map parentResultNames)
Sets a map of the result block name to the document names resulting from that result block. |
void |
setSuccessfulBlocks(java.util.List successfulBlocks)
Sets the names of the blocks that were successful. |
void |
setSuccessfulDocuments(java.util.List successfulDocuments)
Sets the names of the documents that were successful. |
void |
setThrowables(java.util.Map throwables)
Sets a map of the throwable exceptions that were generated during execution of the DDX. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RESULT_LIST_PREFIX
Key
name for a result block which produces multiple outputs.
The value is a java.util.List
of java.lang.String
objects containing the names of the documents
generated from the result block.
The Key
name is either RESULT_LIST_PREFIX + result
attribute value
or RESULT_LIST_PREFIX + prefix
attribute value.
For example:
<PDFsFromBookmarks prefix="chaps"> : key = "_resultlist_chaps"
<FileAttachments result="extracted_docs"> : key = "_resultlist_extracted_docs"
Constructor Detail |
---|
public Output()
Method Detail |
---|
public void markAsFailed(java.lang.String docName, java.lang.Throwable e)
PDFsFromBookmarks
or FileAttachments
),
then remove all other documents from the successful documents list
generated from the same result block.
docName
- The document that was thought to be a success.e
- The exception that caused the failure.public boolean isFailedBlock(java.lang.Object docname)
docname
- The name of the output document.
true
if the document is from a block that failed, false
otherwise.public void cleanupFailures()
public java.util.Map getDocuments()
java.util.Map
containing the successful documents.public void setDocuments(java.util.Map documents)
documents
- The successful documents from the DDX job.public java.util.List getFailedBlocks()
java.util.List
containing the names of the failed blocks.public void setFailedBlocks(java.util.List failedBlocks)
failedBlocks
- The names of the failed blocks.public Document getJobLog()
Document
containing the job log that was generated during execution of the DDX.public void setJobLog(Document jobLog)
jobLog
- A Document
containing the job log that was generated during execution of the DDX.public int getNumRequestedBlocks()
public void setNumRequestedBlocks(int numRequestedBlocks)
numRequestedBlocks
- The number of result blocks in the DDX.public java.util.Map getParentResultNames()
PDFsFromBookmarks
and FileAttachments
result blocks.
java.util.Map
of the result block name to the document names resulting
from that result block.public void setParentResultNames(java.util.Map parentResultNames)
PDFsFromBookmarks
and FileAttachments
result blocks.
parentResultNames
- A java.util.Map
of the result block name to the document names resulting
from that result block.public java.util.List getSuccessfulBlocks()
java.util.List
containing the names of the blocks that were successful.public void setSuccessfulBlocks(java.util.List successfulBlocks)
successfulBlocks
- A java.util.List
containing the names of the blocks that were successful.public java.util.List getSuccessfulDocuments()
java.util.List
containing the names of the documents that were successful.public void setSuccessfulDocuments(java.util.List successfulDocuments)
successfulDocuments
- A java.util.List
containing the names of the documents that were successful.public java.util.Map getThrowables()
java.util.Map
containing the throwable exceptions that were generated during execution of the DDX.public void setThrowables(java.util.Map throwables)
throwables
- A java.util.Map
containing the throwable exceptions that were generated during
execution of the DDX.public java.util.Map getMultipleResultsBlocks()
public void setMultipleResultsBlocks(java.util.Map multipleResultsBlocks)
multipleResultsBlocks
- The multiple result blocks.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |