All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nustaq.kontraktor.services.rlserver.RLJsonServerService Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package org.nustaq.kontraktor.services.rlserver;

import org.nustaq.kontraktor.annotations.CallerSideMethod;
import org.nustaq.kontraktor.services.ServiceActor;
import org.nustaq.kontraktor.remoting.base.ServiceDescription;
import org.nustaq.kontraktor.services.rlclient.DataClient;

import java.io.File;

public class RLJsonServerService extends ServiceActor {

    private RLJsonServer server;

    public static RLJsonServerService start(String a[]) {
        if ( ! new File("etc").exists() ) {
            System.out.println("Please start with working dir project root");
            System.exit(1);
        }
        return (RLJsonServerService) ServiceActor.RunTCP( a, RLJsonServerService.class, SingleProcessRLClusterArgs.class );
    }

    @Override
    protected String[] getRequiredServiceNames() {
        return new String[0];
    }

    @Override
    protected ServiceDescription createServiceDescription() {
        return new ServiceDescription("JSONServerService");
    }

    public void setWebServer(RLJsonServer self) {
        server = self;
    }

    @CallerSideMethod
    public DataClient getDClient() {
        return getActor().dclient;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy