Tabnine Logo
CommonUtils.exit
Code IndexAdd Tabnine to your IDE (free)

How to use
exit
method
in
com.hazelcast.simulator.utils.CommonUtils

Best Java code snippets using com.hazelcast.simulator.utils.CommonUtils.exit (Showing top 8 results out of 315)

origin: com.hazelcast.simulator/simulator

public static void exitWithError() {
  exit(1);
}
origin: com.hazelcast.simulator/utils

public static void exitWithError() {
  exit(1);
}
origin: com.hazelcast.simulator/simulator

  @Override
  public void run() {
    try {
      Thread.sleep(DELAY);
      CommonUtils.exit(0);
    } catch (Exception e) {
      LOGGER.warn("Failed to shutdown", e);
    }
  }
}).start();
origin: com.hazelcast.simulator/utils

public static void exitWithError(Logger logger, String msg, Throwable throwable) {
  if (throwable instanceof CommandLineExitException) {
    String logMessage = throwable.getMessage();
    if (throwable.getCause() != null) {
      String throwableString = throwableToString(throwable.getCause());
      logMessage += NEW_LINE + throwableString;
    }
    logger.fatal(logMessage);
  } else {
    String throwableString = throwableToString(throwable);
    logger.fatal(msg + NEW_LINE + throwableString);
  }
  exit(1);
}
origin: com.hazelcast.simulator/simulator

public static void exitWithError(Logger logger, String msg, Throwable throwable) {
  if (throwable instanceof CommandLineExitException) {
    String logMessage = throwable.getMessage();
    if (throwable.getCause() != null) {
      String throwableString = throwableToString(throwable.getCause());
      logMessage += NEW_LINE + throwableString;
    }
    logger.fatal(logMessage);
  } else {
    String throwableString = throwableToString(throwable);
    logger.fatal(msg + NEW_LINE + throwableString);
  }
  exit(1);
}
origin: com.hazelcast.simulator/utils

  static void printHelpAndExit(OptionParser parser, OutputStream sink) {
    try {
      parser.formatHelpWith(new BuiltinHelpFormatter(HELP_WIDTH, HELP_INDENTATION));
      parser.printHelpOn(sink);
    } catch (Exception e) {
      throw new CommandLineExitException("Could not print command line help", e);
    }
    exit(0);
  }
}
origin: com.hazelcast.simulator/simulator

  static void printHelpAndExit(OptionParser parser, OutputStream sink) {
    try {
      parser.formatHelpWith(new BuiltinHelpFormatter(HELP_WIDTH, HELP_INDENTATION));
      parser.printHelpOn(sink);
    } catch (Exception e) {
      throw new CommandLineExitException("Could not print command line help", e);
    }
    exit(0);
  }
}
origin: com.hazelcast.simulator/simulator

void run() throws Exception {
  if (options.has(downloadSpec)) {
    downloader.download();
  } else if (options.has(cleanSpec)) {
    downloader.clean();
  } else {
    coordinator.start();
    if (testSuite == null) {
      int coordinatorPort = coordinatorParameters.getSimulatorProperties().getCoordinatorPort();
      LOGGER.info("Coordinator started in interactive mode on port " + coordinatorPort + ". "
          + "Waiting for commands from the coordinator-remote.");
    } else {
      runMonolith.init(deploymentPlan);
      boolean success = runMonolith.run(testSuite);
      exit(success ? 0 : 1);
    }
  }
}
com.hazelcast.simulator.utilsCommonUtilsexit

Popular methods of CommonUtils

  • sleepMillis
  • sleepSeconds
  • closeQuietly
  • exitWithError
  • rethrow
  • sleepMillisThrowException
  • sleepNanos
  • throwableToString
  • await
  • awaitTermination
  • getElapsedSeconds
  • getSimulatorVersion
  • getElapsedSeconds,
  • getSimulatorVersion,
  • joinThread,
  • sleepRandomNanos,
  • sleepTimeUnit,
  • sleepUntilMs

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now