Package io.airlift.bootstrap

Examples of io.airlift.bootstrap.LifeCycleManager.start()


                    }
                });

        // Inject the lifecycle into this instance, so we can use it for shutdown
        LifeCycleManager lifeCycleManager = injector.getInstance(LifeCycleManager.class);
        lifeCycleManager.start();
    }

    /**
     * A runnable handler for shutting down a {@link ThriftServer} directly
     */
 
View Full Code Here


                }
        );

        // Start server
        LifeCycleManager serverLifeCycleManager = serverInjector.getInstance(LifeCycleManager.class);
        serverLifeCycleManager.start();
        ThriftServer server = serverInjector.getInstance(ThriftServer.class);
        int serverPort = server.getPort();

        // Start client manager and send request
        LifeCycleManager clientLifeCycleManager = clientInjector.getInstance(LifeCycleManager.class);
View Full Code Here

        ThriftServer server = serverInjector.getInstance(ThriftServer.class);
        int serverPort = server.getPort();

        // Start client manager and send request
        LifeCycleManager clientLifeCycleManager = clientInjector.getInstance(LifeCycleManager.class);
        clientLifeCycleManager.start();
        sendClientRequest(clientInjector, serverPort);

        // Stop client manager
        clientLifeCycleManager.stop();
View Full Code Here

                        thriftClientBinder(binder).bindThriftClient(ExampleService.class);
                    }
                });

        LifeCycleManager manager = injector.getInstance(LifeCycleManager.class);
        manager.start();

        try {
            ThriftClient<ExampleService> clientFactory =
                    injector.getInstance(Key.get(new TypeLiteral<ThriftClient<ExampleService>>() {}));
            String stringToProcess =
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.