public class ErrorDocumentServiceImpl extends AbstractErrorDocumentServiceImpl implements ErrorDocumentService
errorDao, t2ReferenceGenerator
Constructor and Description |
---|
ErrorDocumentServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(T2Reference reference) |
void |
deleteErrorDocumentsForWorkflowRun(String workflowRunId)
Delete all
ErrorDocument S used by the specific workflow run. |
T2Reference |
getChild(T2Reference errorId)
Return the T2Reference for the sole child of an error document
identifier.
|
ErrorDocument |
getError(T2Reference id)
Retrieve a previously named and registered ErrorDocument from the backing
store
|
ErrorDocument |
registerError(String message,
Set<T2Reference> errors,
int depth,
ReferenceContext context)
Register a new error document.
|
ErrorDocument |
registerError(String message,
Throwable t,
int depth,
ReferenceContext context)
Register the specified error and any child errors (which have the same
namespace and local part but a lower depth, down to depth of zero
|
checkDao, checkGenerator, getErrorAsynch, registerError, registerError, setErrorDao, setT2ReferenceGenerator
executeRunnable, makeExecutionThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorAsynch, registerError, registerError
public ErrorDocument getError(T2Reference id) throws ErrorDocumentServiceException
ErrorDocumentService
getError
in interface ErrorDocumentService
id
- identifier of the error document to retrieveErrorDocumentServiceException
- if anything goes wrong with the retrieval process or if there
is something wrong with the reference (such as it being of
the wrong reference type).public ErrorDocument registerError(String message, Throwable t, int depth, ReferenceContext context) throws ErrorDocumentServiceException
registerError
in interface ErrorDocumentService
message
- a free text message describing the error, if available. If
there is no message use the empty string here.t
- a Throwable describing the underlying fault causing this error
document to be registered, if any. If there is no Throwable
associated use null.depth
- depth of the error, used when returning an error document
instead of an identified list.ErrorDocumentServiceException
public ErrorDocument registerError(String message, Set<T2Reference> errors, int depth, ReferenceContext context) throws ErrorDocumentServiceException
ErrorDocumentService
The created reference will be related with a workflow run id passed through ReferenceContext so we can track all data referenced by a specific run.
registerError
in interface ErrorDocumentService
message
- a free text message describing the error, if available. If
there is no message use the empty string here.errors
- a set of references that contain error documents.depth
- depth of the error, used when returning an error document
instead of an identified list.ErrorDocumentServiceException
public T2Reference getChild(T2Reference errorId) throws ErrorDocumentServiceException
ErrorDocumentService
getChild
in interface ErrorDocumentService
ErrorDocumentServiceException
public boolean delete(T2Reference reference) throws ReferenceServiceException
delete
in interface ErrorDocumentService
ReferenceServiceException
public void deleteErrorDocumentsForWorkflowRun(String workflowRunId) throws ReferenceServiceException
ErrorDocumentService
ErrorDocument
S used by the specific workflow run.deleteErrorDocumentsForWorkflowRun
in interface ErrorDocumentService
ReferenceServiceException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.