Package netflix.karyon.examples.hellonoss.server.simple.module

Source Code of netflix.karyon.examples.hellonoss.server.simple.module.SimpleRunner

package netflix.karyon.examples.hellonoss.server.simple.module;

import netflix.adminresources.resources.KaryonWebAdminModule;
import netflix.karyon.Karyon;
import netflix.karyon.KaryonBootstrapSuite;
import netflix.karyon.ShutdownModule;
import netflix.karyon.archaius.ArchaiusSuite;
import netflix.karyon.servo.KaryonServoModule;

/**
* @author Nitesh Kant
*/
public class SimpleRunner {

    public static void main(String[] args) {

        Karyon.forRequestHandler(8888,
                                 // new SimpleRouter(), /* Use this instead of RouterWithInterceptors below if interceptors are not required */
                                 new RouterWithInterceptors(),
                                 new KaryonBootstrapSuite(),
                                 new ArchaiusSuite("hello-netflix-oss"),
                                 // KaryonEurekaModule.asSuite(), /* Uncomment if you need eureka */
                                 KaryonWebAdminModule.asSuite(),
                                 ShutdownModule.asSuite(),
                                 KaryonServoModule.asSuite())
              .startAndWaitTillShutdown();
    }
}
TOP

Related Classes of netflix.karyon.examples.hellonoss.server.simple.module.SimpleRunner

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.