private boolean sendStopToMongoInstance() {
   try {
     return Mongod.sendShutdown(getConfig().getServerAddress(), getConfig().getPort());
   } catch (UnknownHostException e) {
     logger.log(Level.SEVERE, "sendStop", e);
   }
   return false;
 }
 @Override
 protected void onAfterProcessStart(ProcessControl process, IRuntimeConfig runtimeConfig)
     throws IOException {
   ProcessOutput outputConfig = runtimeConfig.getProcessOutput();
   LogWatchStreamProcessor logWatch =
       new LogWatchStreamProcessor(
           "waiting for connections on port",
           "failed",
           StreamToLineProcessor.wrap(outputConfig.getOutput()));
   Processors.connect(process.getReader(), logWatch);
   Processors.connect(process.getError(), StreamToLineProcessor.wrap(outputConfig.getError()));
   logWatch.waitForResult(TIMEOUT);
   if (logWatch.isInitWithSuccess()) {
     setProcessId(Mongod.getMongodProcessId(logWatch.getOutput(), -1));
   } else {
     throw new IOException("Could not start mongod process");
   }
 }
 @Override
 protected final void onAfterProcessStart(ProcessControl process, IRuntimeConfig runtimeConfig)
     throws IOException {
   ProcessOutput outputConfig = runtimeConfig.getProcessOutput();
   LogWatchStreamProcessor logWatch =
       new LogWatchStreamProcessor(
           successMessage(),
           knownFailureMessages(),
           StreamToLineProcessor.wrap(outputConfig.getOutput()));
   Processors.connect(process.getReader(), logWatch);
   Processors.connect(process.getError(), StreamToLineProcessor.wrap(outputConfig.getError()));
   logWatch.waitForResult(getConfig().timeout().getStartupTimeout());
   if (logWatch.isInitWithSuccess()) {
     setProcessId(Mongod.getMongodProcessId(logWatch.getOutput(), -1));
   } else {
     throw new IOException("Could not start process: " + logWatch.getFailureFound());
   }
 }
 @Override
 protected List<String> getCommandLine(Distribution distribution, MongosConfig config, File exe)
     throws IOException {
   return Mongod.enhanceCommandLinePlattformSpecific(
       distribution, Mongos.getCommandLine(getConfig(), exe, dbDir));
 }