Пример #1
0
 @Override
 public Collection<ProcessDefinition> getProcessDefinitions(
     SnmpManager manager, Location location) {
   Collection<ProcessDefinition> procs = new ArrayList<ProcessDefinition>(2);
   if (manager.getFeatureManager().isFeatureEnabled(FEATURE_ID, location)
       || location.isPrimary()) {
     procs.add(new ProcessDefinition("mongod", ".*/mongod.*-f.*/mongod.conf"));
   }
   if (manager.getFeatureManager().isFeatureEnabled(ARBITER_FEATURE, location)) {
     procs.add(new ProcessDefinition("mongoArbiter", ".*/mongod.*-f.*/mongod-arbiter.conf"));
   }
   return procs;
 }
Пример #2
0
 @Override
 public Collection<ProcessDefinition> getProcessDefinitions(
     SnmpManager manager, Location location) {
   boolean enabled = manager.getFeatureManager().isFeatureEnabled(FEATURE, location);
   return (enabled ? Collections.singleton(new ProcessDefinition("named")) : null);
 }