public class ThresholdingSetImpl extends Object implements ThresholdingSet
Abstract ThresholdingSet class.
Modifier and Type | Field and Description |
---|---|
protected ThresholdingEventProxy |
m_eventProxy |
protected String |
m_hostAddress |
protected int |
m_nodeId |
protected RrdRepository |
m_repository |
protected ResourceStorageDao |
m_resourceStorageDao |
protected List<String> |
m_scheduledOutages |
protected String |
m_serviceName |
protected List<ThresholdGroup> |
m_thresholdGroups |
protected ThresholdsDao |
m_thresholdsDao |
Constructor and Description |
---|
ThresholdingSetImpl(int nodeId,
String hostAddress,
String serviceName,
RrdRepository repository,
ServiceParameters svcParams,
ResourceStorageDao resourceStorageDao,
ThresholdingEventProxy eventProxy,
ThresholdingSession thresholdingSession,
ReadableThreshdDao threshdDao,
ReadableThresholdingDao thresholdingDao,
ReadablePollOutagesDao pollOutagesDao,
IfLabel ifLabelDao,
EntityScopeProvider entityScopeProvider) |
Modifier and Type | Method and Description |
---|---|
List<Event> |
applyThresholds(CollectionResource resource,
Map<String,CollectionAttribute> attributesMap,
Date collectionTimestamp,
Long sequenceNumber) |
protected List<Event> |
applyThresholds(CollectionResourceWrapper resourceWrapper,
Map<String,CollectionAttribute> attributesMap) |
int |
getNodeId() |
List<String> |
getscheduledOutages() |
List<ThresholdGroup> |
getThresholdGroups() |
boolean |
hasThresholds() |
boolean |
hasThresholds(CollectionAttribute attribute) |
protected void |
initialize() |
protected void |
initThresholdsDao() |
boolean |
isNodeInOutage() |
protected boolean |
passedThresholdFilters(CollectionResourceWrapper resource,
ThresholdEntity thresholdEntity) |
void |
reinitialize() |
void |
setCounterReset(boolean counterReset) |
String |
toString() |
protected void |
updateScheduledOutages() |
protected final int m_nodeId
protected final String m_hostAddress
protected final String m_serviceName
protected final RrdRepository m_repository
protected ThresholdsDao m_thresholdsDao
protected ThresholdingEventProxy m_eventProxy
protected ResourceStorageDao m_resourceStorageDao
protected final List<ThresholdGroup> m_thresholdGroups
public ThresholdingSetImpl(int nodeId, String hostAddress, String serviceName, RrdRepository repository, ServiceParameters svcParams, ResourceStorageDao resourceStorageDao, ThresholdingEventProxy eventProxy, ThresholdingSession thresholdingSession, ReadableThreshdDao threshdDao, ReadableThresholdingDao thresholdingDao, ReadablePollOutagesDao pollOutagesDao, IfLabel ifLabelDao, EntityScopeProvider entityScopeProvider) throws ThresholdInitializationException
ThresholdInitializationException
protected void initialize() throws ThresholdInitializationException
ThresholdInitializationException
public void reinitialize()
reinitialize
in interface ThresholdingSet
public boolean hasThresholds()
public final boolean isNodeInOutage()
protected final List<Event> applyThresholds(CollectionResourceWrapper resourceWrapper, Map<String,CollectionAttribute> attributesMap)
protected boolean passedThresholdFilters(CollectionResourceWrapper resource, ThresholdEntity thresholdEntity)
protected final void initThresholdsDao() throws ThresholdInitializationException
ThresholdInitializationException
protected void updateScheduledOutages()
public void setCounterReset(boolean counterReset)
public boolean hasThresholds(CollectionAttribute attribute)
public List<Event> applyThresholds(CollectionResource resource, Map<String,CollectionAttribute> attributesMap, Date collectionTimestamp, Long sequenceNumber)
public List<ThresholdGroup> getThresholdGroups()
public int getNodeId()
Copyright © 2021. All rights reserved.