|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.batch.FileBatchJob.ExceptionOccurrence
public static class FileBatchJob.ExceptionOccurrence
This class holds the information about exceptions that occurred in a batchjob.
Field Summary | |
---|---|
static long |
UNKNOWN_OFFSET
Marker for the case when we couldn't find an offset for the outputstream. |
Constructor Summary | |
---|---|
FileBatchJob.ExceptionOccurrence(boolean inInitialize,
long outputOffset,
java.lang.Exception exception)
Constructor for ExceptionOccurrence when an exception happened during initialize() or finish(). |
|
FileBatchJob.ExceptionOccurrence(java.io.File file,
long fileOffset,
long outputOffset,
java.lang.Exception exception)
Standard Constructor for ExceptionOccurrence. |
Method Summary | |
---|---|
java.lang.Exception |
getException()
The exception that was thrown. |
java.lang.String |
getFileName()
Get the name of the file that this exception occurred in. |
long |
getFileOffset()
Get the offset into the file that this exception occurred at. |
long |
getOutputOffset()
Offset of the output stream when this exception occurred. |
boolean |
isFinishException()
Returns true if the exception was thrown during finish(). |
boolean |
isInitializeException()
Returns true if the exception was thrown during initialize(). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long UNKNOWN_OFFSET
Constructor Detail |
---|
public FileBatchJob.ExceptionOccurrence(java.io.File file, long fileOffset, long outputOffset, java.lang.Exception exception)
file
- The file that caused the exception.fileOffset
- The relevant offset into the file when the
exception happened (e.g. the start of an ARC record).outputOffset
- The offset we were at in the outputstream when
the exception happened.exception
- The exception thrown.
This exception must be serializable.for
details on the parameters.
public FileBatchJob.ExceptionOccurrence(boolean inInitialize, long outputOffset, java.lang.Exception exception)
inInitialize
- True if the exception happened in initialize()outputOffset
- Current offset in the output stream, or
UNKNOWN_OFFSET if the offset cannot be found.exception
- The exception that was thrown.Method Detail |
---|
public java.lang.String getFileName()
public long getFileOffset()
public long getOutputOffset()
public java.lang.Exception getException()
public boolean isInitializeException()
public boolean isFinishException()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |