com.trendmicro.grid.acl.ds.jpa
Class ReceivedDataSetsHandler

java.lang.Object
  extended by com.trendmicro.grid.acl.ds.jpa.AbstractReceivedResultsHandler<T>
      extended by com.trendmicro.grid.acl.ds.jpa.AbstractReceivedFileContentsHandler<Void>
          extended by com.trendmicro.grid.acl.ds.jpa.ReceivedDataSetsHandler

public class ReceivedDataSetsHandler
extends AbstractReceivedFileContentsHandler<Void>

Is the primary handler that operates on the complete dataSets.

Version:
1.0
Author:
juergen_kellerer, 2010-11-22

Nested Class Summary
 
Nested classes/interfaces inherited from class com.trendmicro.grid.acl.ds.jpa.AbstractReceivedResultsHandler
AbstractReceivedResultsHandler.StorageContext
 
Constructor Summary
ReceivedDataSetsHandler(JpaFileRepository fileRepository, JpaPackageRepository packageRepository, ReceivedPreparedPackagesHandler packagesHandler, ReceivedSourcesHandler sourcesHandler)
          Creates a new thread safe instance.
 
Method Summary
protected  Void handle(AbstractReceivedResultsHandler.StorageContext context)
          Handles the job in relation to the given storage context.
 
Methods inherited from class com.trendmicro.grid.acl.ds.jpa.AbstractReceivedFileContentsHandler
createOrUpdateFileReference, createOrUpdateFileReferences
 
Methods inherited from class com.trendmicro.grid.acl.ds.jpa.AbstractReceivedResultsHandler
getValue, isAfter, isNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceivedDataSetsHandler

public ReceivedDataSetsHandler(JpaFileRepository fileRepository,
                               JpaPackageRepository packageRepository,
                               ReceivedPreparedPackagesHandler packagesHandler,
                               ReceivedSourcesHandler sourcesHandler)
Creates a new thread safe instance.

Parameters:
fileRepository - the repository to use for file contents.
packageRepository - the repository to use for packages.
packagesHandler - the PreparedPackage handler to use.
sourcesHandler - the SourcesHandler to use.
Method Detail

handle

protected Void handle(AbstractReceivedResultsHandler.StorageContext context)
Handles the job in relation to the given storage context.

Specified by:
handle in class AbstractReceivedResultsHandler<Void>
Parameters:
context - the data set to handle.
Returns:
an arbitrary value that may be used by downstream handlers, or 'null' if not relevant.