Public Member Functions | Protected Member Functions | Protected Attributes

alma.acs.monitoring.blobber.BlobberImpl Class Reference

Inheritance diagram for alma.acs.monitoring.blobber.BlobberImpl:
alma.acs.component.ComponentImplBase alma.acs.component.ComponentLifecycle

List of all members.

Public Member Functions

void initialize (ContainerServices inContainerServices) throws ComponentLifecycleException
void execute ()
void cleanUp ()
CollectorListStatus addCollector (String inComponentName)
CollectorListStatus containsCollector (String inComponentName)
CollectorListStatus removeCollector (String inComponentName)

Protected Member Functions

BlobberPlugin createBlobberPlugin () throws AcsJCouldntCreateObjectEx
BlobberWorker createWorker (BlobberPlugin blobberPlugin) throws AcsJCouldntCreateObjectEx

Protected Attributes

BlobberWorker myWorker
int collectorIntervalSec
ThreadLoopRunner blobberLoopRunner
BlobberPlugin blobberPlugin

Detailed Description

Implementation of the blobber component.

Author:
apersson, hsommer

Member Function Documentation

CollectorListStatus alma.acs.monitoring.blobber.BlobberImpl.addCollector ( String  inComponentName  ) 
void alma.acs.monitoring.blobber.BlobberImpl.cleanUp (  ) 

Modification of the collector interval during blobber runs is only used in the legacy tests, not for blobber operations. Remove this method and the tests, unless there is a clear purpose.

Parameters:
collectorIntervalSeconds new interval in seconds, must be greater than zero.
See also:
ThreadLoopRunner.setDelayTime(long, TimeUnit) Stops the blobber loop, but does not forcibly stop the running blobber. However this method returns after 30 seconds, even if the blobber has not yet finished by then.
alma.acs.component.ComponentImplBase.cleanUp()

References alma.acs.monitoring.blobber.BlobberImpl.blobberLoopRunner, alma.acs.monitoring.blobber.BlobberImpl.blobberPlugin, alma.acs.concurrent.ThreadLoopRunner.isLoopRunning(), alma.acs.component.ComponentImplBase.m_logger, and alma.acs.concurrent.ThreadLoopRunner.shutdown().

CollectorListStatus alma.acs.monitoring.blobber.BlobberImpl.containsCollector ( String  inComponentName  ) 
BlobberPlugin alma.acs.monitoring.blobber.BlobberImpl.createBlobberPlugin (  )  throws AcsJCouldntCreateObjectEx [protected]

Creates (using reflection) an instance of alma.acs.monitoring.blobber.BlobberPluginAlmaImpl that ARCHIVE/TMCDB/ modules must provide.

Overriding this method allows other projects or unit tests that should run without alma archive code to create a different implementation of BlobberPlugin.

References alma.acs.component.ComponentImplBase.m_containerServices.

Referenced by alma.acs.monitoring.blobber.BlobberImpl.initialize().

BlobberWorker alma.acs.monitoring.blobber.BlobberImpl.createWorker ( BlobberPlugin  blobberPlugin  )  throws AcsJCouldntCreateObjectEx [protected]
void alma.acs.monitoring.blobber.BlobberImpl.execute (  ) 
void alma.acs.monitoring.blobber.BlobberImpl.initialize ( ContainerServices  inContainerServices  )  throws ComponentLifecycleException
CollectorListStatus alma.acs.monitoring.blobber.BlobberImpl.removeCollector ( String  inComponentName  ) 

Member Data Documentation

We use this convenience class from ACS to execute the blobber code at fixed intervals.

Referenced by alma.acs.monitoring.blobber.BlobberImpl.cleanUp(), and alma.acs.monitoring.blobber.BlobberImpl.execute().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties