org.tranche.get
Class GetFileToolPerformanceLog

java.lang.Object
  extended by org.tranche.get.GetFileToolPerformanceLog
All Implemented Interfaces:
GetFileToolListener

public class GetFileToolPerformanceLog
extends java.lang.Object
implements GetFileToolListener

Used to help troubleshoot performance issues for client.

Author:
Bryan Smith - bryanesmith@gmail.com

Constructor Summary
GetFileToolPerformanceLog()
           
 
Method Summary
 void failedData(GetFileToolEvent event, java.util.Collection<PropagationExceptionWrapper> exceptions)
          Notification that a data chunk could not be downloaded.
 void failedDirectory(GetFileToolEvent event, java.util.Collection<PropagationExceptionWrapper> exceptions)
          Notification that a directory download has failed.
 void failedFile(GetFileToolEvent event, java.util.Collection<PropagationExceptionWrapper> exceptions)
          Notification that a file download has failed.
 void failedMetaData(GetFileToolEvent event, java.util.Collection<PropagationExceptionWrapper> exceptions)
          Notification that a meta data chunk could not be downloaded.
 void finishedData(GetFileToolEvent event)
          Notification that a data chunk has been downloaded.
 void finishedDirectory(GetFileToolEvent event)
          Notification that a directory download has finished.
 void finishedFile(GetFileToolEvent event)
          Notification that a file download has finished.
 void finishedMetaData(GetFileToolEvent event)
          Notification that a meta data chunk has been downloaded.
 java.io.File getFile()
           
 void message(java.lang.String msg)
          Notification of any other event occurence.
 void skippedFile(GetFileToolEvent event)
          Notification that a file downloaded has been skipped.
 void startedData(GetFileToolEvent event)
          Notificatin that a data chunk is starting to be downloaded.
 void startedDirectory(GetFileToolEvent event)
          Notification that a directory download has started.
 void startedFile(GetFileToolEvent event)
          Notification that a file download has started.
 void startedMetaData(GetFileToolEvent event)
          Notification that a meta data chunk is starting to be downloaded.
 void startingDirectory(GetFileToolEvent event)
          Notification that a directory download is starting.
 void startingFile(GetFileToolEvent event)
          Notification that a file is starting to be downloaded.
 void tryingData(GetFileToolEvent event)
          Notification that a data chunk is trying to be downloaded from a server.
 void tryingMetaData(GetFileToolEvent event)
          Notification that a meta data chunk is trying to be downloaded from a server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetFileToolPerformanceLog

public GetFileToolPerformanceLog()
                          throws java.io.IOException,
                                 java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException
Method Detail

message

public void message(java.lang.String msg)

Notification of any other event occurence.

Specified by:
message in interface GetFileToolListener
Parameters:
msg -

startedMetaData

public void startedMetaData(GetFileToolEvent event)

Notification that a meta data chunk is starting to be downloaded.

Specified by:
startedMetaData in interface GetFileToolListener
Parameters:
event -

tryingMetaData

public void tryingMetaData(GetFileToolEvent event)

Notification that a meta data chunk is trying to be downloaded from a server.

Specified by:
tryingMetaData in interface GetFileToolListener
Parameters:
event -

failedMetaData

public void failedMetaData(GetFileToolEvent event,
                           java.util.Collection<PropagationExceptionWrapper> exceptions)

Notification that a meta data chunk could not be downloaded.

Specified by:
failedMetaData in interface GetFileToolListener
Parameters:
event -
exceptions -

finishedMetaData

public void finishedMetaData(GetFileToolEvent event)

Notification that a meta data chunk has been downloaded.

Specified by:
finishedMetaData in interface GetFileToolListener
Parameters:
event -

startedData

public void startedData(GetFileToolEvent event)

Notificatin that a data chunk is starting to be downloaded.

Specified by:
startedData in interface GetFileToolListener
Parameters:
event -

tryingData

public void tryingData(GetFileToolEvent event)

Notification that a data chunk is trying to be downloaded from a server.

Specified by:
tryingData in interface GetFileToolListener
Parameters:
event -

failedData

public void failedData(GetFileToolEvent event,
                       java.util.Collection<PropagationExceptionWrapper> exceptions)

Notification that a data chunk could not be downloaded.

Specified by:
failedData in interface GetFileToolListener
Parameters:
event -
exceptions -

finishedData

public void finishedData(GetFileToolEvent event)

Notification that a data chunk has been downloaded.

Specified by:
finishedData in interface GetFileToolListener
Parameters:
event -

startingFile

public void startingFile(GetFileToolEvent event)

Notification that a file is starting to be downloaded.

Specified by:
startingFile in interface GetFileToolListener
Parameters:
event -

startedFile

public void startedFile(GetFileToolEvent event)

Notification that a file download has started.

Specified by:
startedFile in interface GetFileToolListener
Parameters:
event -

skippedFile

public void skippedFile(GetFileToolEvent event)

Notification that a file downloaded has been skipped.

Specified by:
skippedFile in interface GetFileToolListener
Parameters:
event -

finishedFile

public void finishedFile(GetFileToolEvent event)

Notification that a file download has finished.

Specified by:
finishedFile in interface GetFileToolListener
Parameters:
event -

failedFile

public void failedFile(GetFileToolEvent event,
                       java.util.Collection<PropagationExceptionWrapper> exceptions)

Notification that a file download has failed.

Specified by:
failedFile in interface GetFileToolListener
Parameters:
event -
exceptions -

startingDirectory

public void startingDirectory(GetFileToolEvent event)

Notification that a directory download is starting.

Specified by:
startingDirectory in interface GetFileToolListener
Parameters:
event -

startedDirectory

public void startedDirectory(GetFileToolEvent event)

Notification that a directory download has started.

Specified by:
startedDirectory in interface GetFileToolListener
Parameters:
event -

finishedDirectory

public void finishedDirectory(GetFileToolEvent event)

Notification that a directory download has finished.

Specified by:
finishedDirectory in interface GetFileToolListener
Parameters:
event -

failedDirectory

public void failedDirectory(GetFileToolEvent event,
                            java.util.Collection<PropagationExceptionWrapper> exceptions)

Notification that a directory download has failed.

Specified by:
failedDirectory in interface GetFileToolListener
Parameters:
event -
exceptions -

getFile

public java.io.File getFile()
Returns:


This code is free for use both commercially and non-commercially as stated in the project's license