示例#1
0
 /**
  * Add a ServiceMonitorFilter to this MonitorFilter
  *
  * @param serviceMonitorFilter Service Specific Filter
  * @exception MonitorFilterException
  * @return ServiceMonitorFilter Modified Filter to the capabilities of the service
  */
 public ServiceMonitorFilter addServiceMonitorFilter(ServiceMonitorFilter serviceMonitorFilter)
     throws MonitorFilterException {
   ModuleClassID moduleClassID = serviceMonitorFilter.getModuleClassID();
   if (serviceMonitorFilters.get(moduleClassID) != null)
     throw new MonitorFilterException(
         "Attempt to add a second Monitor Filter for: " + moduleClassID);
   serviceMonitorFilters.put(moduleClassID, serviceMonitorFilter);
   return serviceMonitorFilter;
 }
示例#2
0
 /**
  * Get ServiceMonitorFilter subfilter
  *
  * @param moduleClassID ServiceMonitor's moduleClassID
  * @return ServiceMonitorFilter SubFilter or null if not found
  */
 public ServiceMonitorFilter getServiceMonitorFilter(ModuleClassID moduleClassID) {
   return (ServiceMonitorFilter) serviceMonitorFilters.get(moduleClassID);
 }