org.tranche.add
Class AddFileToolPerformanceLog

java.lang.Object
  extended by org.tranche.add.AddFileToolPerformanceLog
All Implemented Interfaces:
AddFileToolListener

public class AddFileToolPerformanceLog
extends java.lang.Object
implements AddFileToolListener

Used to help troubleshoot performance issues for client.

Author:
Bryan Smith - bryanesmith@gmail.com

Constructor Summary
AddFileToolPerformanceLog()
           
 
Method Summary
 void failedData(AddFileToolEvent event, java.util.Collection<PropagationExceptionWrapper> exceptions)
          Notification that a data chunk could not be uploaded.
 void failedDirectory(AddFileToolEvent event, java.util.Collection<PropagationExceptionWrapper> exceptions)
          Notification that a directory upload has failed.
 void failedFile(AddFileToolEvent event, java.util.Collection<PropagationExceptionWrapper> exceptions)
          Notification that a file upload has failed.
 void failedMetaData(AddFileToolEvent event, java.util.Collection<PropagationExceptionWrapper> exceptions)
          Notification that a meta data chunk could not be uploaded.
 void finishedData(AddFileToolEvent event)
          Notification that a data chunk has been uploaded.
 void finishedDirectory(AddFileToolEvent event)
          Notification that a directory upload has finished.
 void finishedFile(AddFileToolEvent event)
          Notification that a file upload has finished.
 void finishedMetaData(AddFileToolEvent event)
          Notification that a meta data chunk has been uploaded.
 java.io.File getFile()
           
 void message(java.lang.String msg)
          Notification of any other event occurence.
 void startedData(AddFileToolEvent event)
          Notification that a data chunk is starting to be uploaded.
 void startedDirectory(AddFileToolEvent event)
          Notification that a directory upload has started.
 void startedFile(AddFileToolEvent event)
          Notification that a file upload has started.
 void startedMetaData(AddFileToolEvent event)
          Notification that a meta data chunk is starting to be uploaded.
 void startingData(AddFileToolEvent event)
          Notification that a data chunk is about to be checked for on-line replications.
 void tryingData(AddFileToolEvent event)
          Notification that a data chunk is trying to be uploaded to a server.
 void tryingMetaData(AddFileToolEvent event)
          Notification that a meta data chunk is trying to be uploaded to a server.
 void uploadedData(AddFileToolEvent event)
          Notification that a data chunk has been uploaded to a server.
 void uploadedMetaData(AddFileToolEvent event)
          Notification that a meta data chunk has been uploaded to a server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddFileToolPerformanceLog

public AddFileToolPerformanceLog()
                          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 AddFileToolListener
Parameters:
msg -

startedMetaData

public void startedMetaData(AddFileToolEvent event)

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

Specified by:
startedMetaData in interface AddFileToolListener
Parameters:
event -

tryingMetaData

public void tryingMetaData(AddFileToolEvent event)

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

Specified by:
tryingMetaData in interface AddFileToolListener
Parameters:
event -

uploadedMetaData

public void uploadedMetaData(AddFileToolEvent event)

Notification that a meta data chunk has been uploaded to a server.

Specified by:
uploadedMetaData in interface AddFileToolListener
Parameters:
event -

failedMetaData

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

Notification that a meta data chunk could not be uploaded.

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

finishedMetaData

public void finishedMetaData(AddFileToolEvent event)

Notification that a meta data chunk has been uploaded.

Specified by:
finishedMetaData in interface AddFileToolListener
Parameters:
event -

startingData

public void startingData(AddFileToolEvent event)

Notification that a data chunk is about to be checked for on-line replications.

Specified by:
startingData in interface AddFileToolListener
Parameters:
event -

startedData

public void startedData(AddFileToolEvent event)

Notification that a data chunk is starting to be uploaded.

Specified by:
startedData in interface AddFileToolListener
Parameters:
event -

tryingData

public void tryingData(AddFileToolEvent event)

Notification that a data chunk is trying to be uploaded to a server.

Specified by:
tryingData in interface AddFileToolListener
Parameters:
event -

uploadedData

public void uploadedData(AddFileToolEvent event)

Notification that a data chunk has been uploaded to a server.

Specified by:
uploadedData in interface AddFileToolListener
Parameters:
event -

failedData

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

Notification that a data chunk could not be uploaded.

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

finishedData

public void finishedData(AddFileToolEvent event)

Notification that a data chunk has been uploaded.

Specified by:
finishedData in interface AddFileToolListener
Parameters:
event -

startedFile

public void startedFile(AddFileToolEvent event)

Notification that a file upload has started.

Specified by:
startedFile in interface AddFileToolListener
Parameters:
event -

finishedFile

public void finishedFile(AddFileToolEvent event)

Notification that a file upload has finished.

Specified by:
finishedFile in interface AddFileToolListener
Parameters:
event -

failedFile

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

Notification that a file upload has failed.

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

startedDirectory

public void startedDirectory(AddFileToolEvent event)

Notification that a directory upload has started.

Specified by:
startedDirectory in interface AddFileToolListener
Parameters:
event -

finishedDirectory

public void finishedDirectory(AddFileToolEvent event)

Notification that a directory upload has finished.

Specified by:
finishedDirectory in interface AddFileToolListener
Parameters:
event -

failedDirectory

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

Notification that a directory upload has failed.

Specified by:
failedDirectory in interface AddFileToolListener
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