org.tranche.get
Class GetFileToolReport

java.lang.Object
  extended by 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

Field Summary
static int VERSION_LATEST
           
static int VERSION_ONE
           
 
Constructor Summary
GetFileToolReport()
           
GetFileToolReport(java.io.InputStream is)
           
 
Method Summary
protected  void addFailureException(PropagationExceptionWrapper failureException)
           
protected  void addFailureExceptions(java.util.Collection<PropagationExceptionWrapper> failureExceptions)
           
protected  void deserialize(java.io.InputStream in)
           
protected  void deserializeVersionOne(java.io.InputStream in)
           
 long getBytesDownloaded()
           
 java.util.List<PropagationExceptionWrapper> getFailureExceptions()
           
 long getFilesDownloaded()
           
 long getTimestampEnd()
           
 long getTimestampStart()
           
 long getTimeToFinish()
           
 int getVersion()
           
 boolean isFailed()
           
 boolean isFinished()
           
protected  void serialize(int version, java.io.OutputStream out)
          Outputs the values of this row in the structure defined by the given version to the given output stream.
 void serialize(java.io.OutputStream out)
          Outputs the values of this row to the output stream.
 void setBytesDownloaded(long bytesDownloaded)
           
 void setFilesDownloaded(long filesDownloaded)
           
protected  void setTimestampEnd(long endTimestamp)
           
 void setVersion(int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

GetFileToolReport

public GetFileToolReport()

GetFileToolReport

public GetFileToolReport(java.io.InputStream is)
                  throws java.io.IOException
Parameters:
is -
Throws:
java.io.IOException
Method Detail

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