Example #1
0
 private void remove() {
   Collection<PerformanceProbe> probes = _perfProbes.get(outputPeriod);
   if (probes == null) {
     return;
   }
   probes.remove(this);
 }
Example #2
0
 private void remove() {
   Collection<SamplingTask> samplers = samplingTasks.get(samplingPeriod);
   if (samplers == null) {
     return;
   }
   samplers.remove(this);
 }
Example #3
0
 /**
  * Unregister the au with this Tdb for its plugin.
  *
  * @param au the TdbAu
  * @return <code>false</code> if au was not registered, otherwise <code>true</code>
  */
 private boolean removeTdbAuForPlugin(TdbAu au) {
   // if can't add au to title, we need to undo the au
   // registration and re-throw the exception we just caught
   String pluginId = au.getPluginId();
   Collection<TdbAu.Id> c = pluginIdTdbAuIdsMap.get(pluginId);
   if (c.remove(au.getId())) {
     if (c.isEmpty()) {
       pluginIdTdbAuIdsMap.remove(c);
     }
     tdbAuCount--;
     return true;
   }
   return false;
 }
 /** Try to figure out whether the predefined Templates have already been migrated. */
 static boolean hasDeployed() {
   if (hasDeployed) {
     return true;
   }
   Collection<String> names = getPredefinedTemplateNames();
   File dir = TemplateDatabase.TemplateDir;
   if (dir.isDirectory()) {
     File[] files = dir.listFiles();
     for (File file : files) {
       String name = file.getName();
       names.remove(name);
     }
   }
   return names.isEmpty();
 }
Example #5
0
 @Override
 public void removeReferencing(String id) {
   referencing.remove(id);
 }