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

hex.tree.xgboost.remote.RemoteXGBoostServletProvider Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
package hex.tree.xgboost.remote;

import water.server.ServletMeta;
import water.server.ServletProvider;

import java.util.Collections;
import java.util.List;

public class RemoteXGBoostServletProvider implements ServletProvider {

    private static final List SERVLETS = Collections.singletonList(
            new ServletMeta.Builder("/3/XGBoostExecutor.upload", RemoteXGBoostUploadServlet.class)
                    .withAlwaysEnabled(true) // for external XGBoost on K8s (when LeaderNodeRequestFilter is enabled)
                    .build()
    );

    @Override
    public List servlets() {
        return SERVLETS;
    }

    @Override
    public int priority() {
        return 0;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy