MCPcopy Create free account
hub / github.com/apache/mesos / exit

Method exit

src/examples/java/TestLog.java:111–126  ·  view source on GitHub ↗
(int status)

Source from the content-addressed store, hash-verified

109 }
110
111 private static void exit(int status) throws Exception {
112 if (zkserver != null) {
113 zkserver.stop();
114 }
115 // For this test to pass reliably on some platforms, this sleep is
116 // required to ensure that the test server shutdown is complete
117 // before the JVM starts running native object destructors after
118 // System.exit() is called. 500ms proved successful in test runs,
119 // but on a heavily loaded machine it might not.
120 // TODO(greg): Ideally, we would inspect the status of the server
121 // via the Java API and wait until its teardown is complete to
122 // exit.
123 Thread.sleep(500);
124
125 System.exit(status);
126 }
127
128 public static void main(String[] args) throws Exception {
129 if (args.length < 3) {

Callers 15

mainMethod · 0.95
usageFunction · 0.80
fatalFunction · 0.80
docoptFunction · 0.80
main.pyFile · 0.80
statusUpdateMethod · 0.80
frameworkMessageMethod · 0.80
test_framework.pyFile · 0.80
test_executor.pyFile · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80

Calls 2

sleepMethod · 0.80
stopMethod · 0.65

Tested by

no test coverage detected