org.tranche.get
Class GetFileToolReport
java.lang.Object
org.tranche.get.GetFileToolReport
- All Implemented Interfaces:
- java.io.Serializable
public class GetFileToolReport
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- James "Augie" Hill - augman85@gmail.com
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION_ONE
public static final int VERSION_ONE
- See Also:
- Constant Field Values
VERSION_LATEST
public static final int VERSION_LATEST
- See Also:
- Constant Field Values
GetFileToolReport
public GetFileToolReport()
GetFileToolReport
public GetFileToolReport(java.io.InputStream is)
throws java.io.IOException
- Parameters:
is -
- Throws:
java.io.IOException
getVersion
public int getVersion()
- Returns:
setVersion
public void setVersion(int version)
- Parameters:
version -
getTimestampStart
public long getTimestampStart()
- Returns:
getTimestampEnd
public long getTimestampEnd()
- Returns:
getTimeToFinish
public long getTimeToFinish()
- Returns:
setTimestampEnd
protected void setTimestampEnd(long endTimestamp)
- Parameters:
endTimestamp -
getBytesDownloaded
public long getBytesDownloaded()
- Returns:
setBytesDownloaded
public void setBytesDownloaded(long bytesDownloaded)
- Parameters:
bytesDownloaded -
getFilesDownloaded
public long getFilesDownloaded()
- Returns:
setFilesDownloaded
public void setFilesDownloaded(long filesDownloaded)
- Parameters:
filesDownloaded -
isFailed
public boolean isFailed()
- Returns:
isFinished
public boolean isFinished()
- Returns:
getFailureExceptions
public java.util.List<PropagationExceptionWrapper> getFailureExceptions()
- Returns:
addFailureException
protected void addFailureException(PropagationExceptionWrapper failureException)
- Parameters:
failureException -
addFailureExceptions
protected void addFailureExceptions(java.util.Collection<PropagationExceptionWrapper> failureExceptions)
- Parameters:
failureExceptions -
serialize
public void serialize(java.io.OutputStream out)
throws java.io.IOException
Outputs the values of this row to the output stream.
- Parameters:
out - The output stream.
- Throws:
java.io.IOException
serialize
protected void serialize(int version,
java.io.OutputStream out)
throws java.io.IOException
Outputs the values of this row in the structure defined by the given version to the given output stream.
- Parameters:
out - The output stream
- Throws:
java.io.IOException
deserialize
protected void deserialize(java.io.InputStream in)
throws java.io.IOException
- Parameters:
in - An input stream containing a serialized report
- Throws:
java.io.IOException
deserializeVersionOne
protected void deserializeVersionOne(java.io.InputStream in)
throws java.io.IOException
- Parameters:
in - An input stream containing a version one serialized report
- Throws:
java.io.IOException
This code is free for use both commercially and non-commercially as stated in the project's license