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

grpcstarter.server.DummyGrpcServer Maven / Gradle / Ivy

There is a newer version: 3.4.1
Show newest version
package grpcstarter.server;

/**
 * Dummy gRPC server.
 *
 * @author Freeman
 */
public class DummyGrpcServer implements GrpcServer {
    public static final int DUMMY_PORT = -1;

    @Override
    public void start() {
        // nothing to do
    }

    @Override
    public void stop() {
        // nothing to do
    }

    @Override
    public boolean isRunning() {
        return false;
    }

    @Override
    public boolean isAutoStartup() {
        return false;
    }

    @Override
    public int getPort() {
        return DUMMY_PORT;
    }

    @Override
    public Object getServer() {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy