com.trendmicro.grid.acl.ds.jpa
Class ReceivedDataSetsHandler
java.lang.Object
com.trendmicro.grid.acl.ds.jpa.AbstractReceivedResultsHandler<T>
com.trendmicro.grid.acl.ds.jpa.AbstractReceivedFileContentsHandler<Void>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.