public class ControllerImpl extends ComponentImplBase
| Modifier and Type | Field and Description |
|---|---|
protected alma.acs.monitoring.controller.BlobberList |
blobberList
List of known blobbers, either just the component names or also the references.
|
protected java.util.Map<java.lang.String,java.lang.String> |
collector2BlobberName
Maps names of MonitorCollector components to the corresponding Blobber components.
|
m_containerServices, m_instanceName, m_logger| Constructor and Description |
|---|
ControllerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Called after the last functional call to the component has finished.
|
void |
deregisterCollector(java.lang.String collectorCompName) |
protected java.lang.String |
findBlobberAssignedToCollector(java.lang.String collectorCompName,
boolean trustLocalCache) |
protected void |
getBlobberRef(alma.acs.monitoring.controller.BlobberList.BlobberInfo blobberInfo,
boolean skipKnownProblematicBlobber)
Retrieves the blobber component reference for the given blobber name, unless we have it already.
|
protected BlobberOperations |
getBlobberRefFromContainerServices(java.lang.String blobberName)
Broken out from
#getBlobberRef(BlobberInfo, boolean),
to allow mock impl in tests. |
protected java.lang.String[] |
getConfiguredBlobberCompNames()
Broken out from
initialize(ContainerServices) to allow mock impl. |
void |
initialize(ContainerServices inContainerServices)
Subclass must call
super.initialize(containerServices)
unless it overrides as well all other methods which access the member vars of this class. |
void |
registerCollector(java.lang.String collectorCompName)
Note that a collector may call this method before all blobber containers have started.
|
void |
registerKnownCollectors(java.lang.String blobberCompName) |
aboutToAbort, componentState, execute, nameprotected final alma.acs.monitoring.controller.BlobberList blobberList
protected final java.util.Map<java.lang.String,java.lang.String> collector2BlobberName
#myBlobberList.
public void initialize(ContainerServices inContainerServices) throws ComponentLifecycleException
ComponentImplBasesuper.initialize(containerServices)
unless it overrides as well all other methods which access the member vars of this class.initialize in interface ComponentLifecycleinitialize in class ComponentImplBaseinContainerServices - callback object for services provided by the containerComponentLifecycleExceptionComponentLifecycle.initialize(ContainerServices)protected java.lang.String[] getConfiguredBlobberCompNames()
throws AcsJContainerServicesEx
initialize(ContainerServices) to allow mock impl.AcsJContainerServicesExpublic void cleanUp()
ComponentLifecyclecleanUp in interface ComponentLifecyclecleanUp in class ComponentImplBasepublic void registerCollector(java.lang.String collectorCompName)
throws CollectorRegistrationFailedEx
CollectorRegistrationFailedEx - If the collector cannot be registered with any of the available blobbers.
Here we only log this problem; the calling collector is expected to raise an alarm.alma.MonitorArchiver.ControllerOperations#registerCollector(java.lang.String)public void deregisterCollector(java.lang.String collectorCompName)
public void registerKnownCollectors(java.lang.String blobberCompName)
alma.MonitorArchiver.ControllerOperations#registerKnownCollectors(java.lang.String)protected void getBlobberRef(alma.acs.monitoring.controller.BlobberList.BlobberInfo blobberInfo,
boolean skipKnownProblematicBlobber)
blobberInfo object,
otherwise the reference field stays null.blobberInfo - skipKnownProblematicBlobber - If true then we skip the blobber reference retrieval
if the last failure occurred less than 30 s ago.protected BlobberOperations getBlobberRefFromContainerServices(java.lang.String blobberName)
throws AcsJContainerServicesEx
#getBlobberRef(BlobberInfo, boolean),
to allow mock impl in tests.AcsJContainerServicesExprotected java.lang.String findBlobberAssignedToCollector(java.lang.String collectorCompName,
boolean trustLocalCache)
collectorCompName - trustLocalCache -