Examples of ShutdownTask


Examples of com.github.dreamhead.moco.bootstrap.tasks.ShutdownTask

            assertThat(helper.get(root()), is("foo"));
        } catch (HttpHostConnectException e) {
            fail(e.getMessage());
        }

        ShutdownTask task = new ShutdownTask(SHUTDOWN_MOCO_KEY);
        task.run(new String[]{"-s", Integer.toString(SHUTDOWN_PORT)});

        waitChangeHappens();
        helper.get(root());
    }
View Full Code Here

Examples of org.terasology.utilities.concurrency.ShutdownTask

        }

    }

    public void stopThreads() {
        commonThreadPool.shutdown(new ShutdownTask(), false);
    }
View Full Code Here

Examples of org.terasology.utilities.concurrency.ShutdownTask

    }

    @Override
    public void finishSavingAndShutdown() {
        saveThreadManager.shutdown(new ShutdownTask(), true);
        checkSaveTransactionAndClearUpIfItIsDone();
    }
View Full Code Here

Examples of org.terasology.utilities.concurrency.ShutdownTask

        startSaving();
    }

    private void waitForCompletionOfPreviousSave() {
        if (saveTransaction != null && saveTransaction.getResult() == null) {
            saveThreadManager.shutdown(new ShutdownTask(), true);
            saveThreadManager.restart();
        }
        checkSaveTransactionAndClearUpIfItIsDone();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.