src/main/java/io/github/jrrickard/XenonTalkHost.java
/**
     * Start services: a host can run multiple services.
     */
Start services: a host can run multiple services.
Start services : a host can run multiple services .
@Override
    public ServiceHost start() throws Throwable {
        super.start();
        startDefaultCoreServicesSynchronously();
        /*
         * Starting services can be done two ways :
         */
        super.startService(Operation.createPost(UriUtils.buildUri(this, RootNamespaceService.class)), new RootNamespaceService());
        super.startService(new UiService());
        super.startService(new MeetupFactoryService());
        super.startService(new StatlessServiceExample());
        super.startService(new TagService());
        super.startFactory(DeleteMeetupsTaskService.class, DeleteMeetupsTaskService::createFactory);
        super.startFactory(new MigrationTaskService());
        System.err.println(String.format("Great, let's see the UI. Go to %s",
                "http://127.0.0.1:8000/core/ui/default/#/core/ui/default/"));
        System.err.println(String.format("To see the services that are loaded. Go to %s",
                "http://127.0.0.1:8000"));
        return this;
    }
@ Override public ServiceHost start ( ) throws Throwable { super . start ( ) ; startDefaultCoreServicesSynchronously ( ) ; /*
         * Starting services can be done two ways :
         */ super . startService ( Operation . createPost ( UriUtils . buildUri ( this , RootNamespaceService . class ) ) , new RootNamespaceService ( ) ) ; super . startService ( new UiService ( ) ) ; super . startService ( new MeetupFactoryService ( ) ) ; super . startService ( new StatlessServiceExample ( ) ) ; super . startService ( new TagService ( ) ) ; super . startFactory ( DeleteMeetupsTaskService . class , DeleteMeetupsTaskService :: createFactory ) ; super . startFactory ( new MigrationTaskService ( ) ) ; System . err . println ( String . format ( "Great, let's see the UI. Go to %s" , "http://127.0.0.1:8000/core/ui/default/#/core/ui/default/" ) ) ; System . err . println ( String . format ( "To see the services that are loaded. Go to %s" , "http://127.0.0.1:8000" ) ) ; return this ; }
Start services: a host can run multiple services.
Start services : a host can run multiple services .
// Start core services (logging, gossiping) - must be done once