org.opennms.netmgt.threshd
Class CollectorThresholdingSet

java.lang.Object
  extended by org.opennms.netmgt.threshd.ThresholdingSet
      extended by org.opennms.netmgt.threshd.CollectorThresholdingSet

public class CollectorThresholdingSet
extends ThresholdingSet

CollectorThresholdingSet class.

Version:
$Id: $
Author:
Alejandro Galue

Field Summary
 
Fields inherited from class org.opennms.netmgt.threshd.ThresholdingSet
m_configManager, m_hasThresholds, m_hostAddress, m_initialized, m_nodeId, m_repository, m_scheduledOutages, m_serviceName, m_thresholdGroups, m_thresholdsDao
 
Constructor Summary
CollectorThresholdingSet(int nodeId, String hostAddress, String serviceName, RrdRepository repository, Map<String,Object> roProps)
          Constructor for CollectorThresholdingSet.
 
Method Summary
 List<Event> applyThresholds(CollectionResource resource, Map<String,CollectionAttribute> attributesMap, Date collectionTimestamp)
          
 boolean hasThresholds(CollectionAttribute attribute)
          hasThresholds
protected  boolean isCollectionEnabled(CollectionResource resource)
           
protected  boolean passedThresholdFilters(CollectionResourceWrapper resource, ThresholdEntity thresholdEntity)
          passedThresholdFilters
 
Methods inherited from class org.opennms.netmgt.threshd.ThresholdingSet
applyThresholds, hasThresholds, hasThresholds, initialize, initThresholdsDao, isNodeInOutage, log, mergeThresholdGroups, reinitialize, toString, updateScheduledOutages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectorThresholdingSet

public CollectorThresholdingSet(int nodeId,
                                String hostAddress,
                                String serviceName,
                                RrdRepository repository,
                                Map<String,Object> roProps)

Constructor for CollectorThresholdingSet.

Parameters:
nodeId - a int.
hostAddress - a String object.
serviceName - a String object.
repository - a RrdRepository object.
Method Detail

hasThresholds

public boolean hasThresholds(CollectionAttribute attribute)

hasThresholds

Parameters:
attribute - a CollectionAttribute object.
Returns:
a boolean.

applyThresholds

public List<Event> applyThresholds(CollectionResource resource,
                                   Map<String,CollectionAttribute> attributesMap,
                                   Date collectionTimestamp)


passedThresholdFilters

protected boolean passedThresholdFilters(CollectionResourceWrapper resource,
                                         ThresholdEntity thresholdEntity)

passedThresholdFilters

Overrides:
passedThresholdFilters in class ThresholdingSet
Parameters:
resource - a CollectionResourceWrapper object.
thresholdEntity - a ThresholdEntity object.
Returns:
a boolean.

isCollectionEnabled

protected boolean isCollectionEnabled(CollectionResource resource)


Copyright © 2011. All Rights Reserved.