hex.tree.xgboost.remote.RemoteXGBoostServletProvider Maven / Gradle / Ivy
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;
}
}