コード例 #1
0
ファイル: MonitorFilter.java プロジェクト: Rikatouka/net.jxta
 /**
  * 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
ファイル: MonitorFilter.java プロジェクト: Rikatouka/net.jxta
 /**
  * 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);
 }