org.jets3t.service.multi.s3
Class S3ServiceEventAdaptor

java.lang.Object
  extended by org.jets3t.service.multi.StorageServiceEventAdaptor
      extended by org.jets3t.service.multi.s3.S3ServiceEventAdaptor
All Implemented Interfaces:
S3ServiceEventListener, StorageServiceEventListener

public class S3ServiceEventAdaptor
extends StorageServiceEventAdaptor
implements S3ServiceEventListener

Simple implementation of S3ServiceEventListener to listen for events produced by ThreadedS3Service and ThreadedStorageService.

By default this adaptor does nothing but store the first Error event it comes across, if any, and make it available through StorageServiceEventAdaptor.getErrorThrown().

The behaviour of this class can be specialised by over-riding the appropriate event methods, though always be sure to call the super version of these methods if you are relying on the default error-trapping functions of this class.

Author:
James Murty

Constructor Summary
S3ServiceEventAdaptor()
           
 
Method Summary
 void event(MultipartCompletesEvent event)
           
 void event(MultipartStartsEvent event)
           
 void event(MultipartUploadsEvent event)
           
 
Methods inherited from class org.jets3t.service.multi.StorageServiceEventAdaptor
event, event, event, event, event, event, event, event, event, event, getErrorThrown, throwErrorIfPresent, wasErrorThrown
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jets3t.service.multi.StorageServiceEventListener
event, event, event, event, event, event, event, event, event, event
 

Constructor Detail

S3ServiceEventAdaptor

public S3ServiceEventAdaptor()
Method Detail

event

public void event(MultipartUploadsEvent event)
Specified by:
event in interface S3ServiceEventListener

event

public void event(MultipartStartsEvent event)
Specified by:
event in interface S3ServiceEventListener

event

public void event(MultipartCompletesEvent event)
Specified by:
event in interface S3ServiceEventListener