com.danielflower.apprunner.router.mgmt.MapManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of app-runner-router Show documentation
Show all versions of app-runner-router Show documentation
A reverse proxy for AppRunner that allows you horizontally scale AppRunner
package com.danielflower.apprunner.router.mgmt;
import io.muserver.MuRequest;
import org.json.JSONObject;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
public interface MapManager {
ConcurrentHashMap getCurrentMapping();
Result loadAllApps(MuRequest clientRequest, List runners) throws InterruptedException;
JSONObject loadRunner(MuRequest clientRequest, Runner runner) throws Exception;
void removeRunner(Runner runner);
class Result {
public final List appsJsonFromEachRunner = new ArrayList<>();
public final List errors = new ArrayList<>();
}
}