Examples of registerShutdownListener()


Examples of com.tinkerpop.rexster.server.ShutdownManager.registerShutdownListener()

    private void startShutdownManager(final RexsterProperties properties) throws Exception {
        final ShutdownManager shutdownManager = new ShutdownManager(properties);

        //Register a shutdown hook
        shutdownManager.registerShutdownListener(new ShutdownManager.ShutdownListener() {
            public void shutdown() {
            // shutdown grizzly/graphs
            stop();
            }
        });
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.