package com.cameleer.server.app.runtime;

import com.cameleer.server.core.runtime.ContainerRequest;
import com.cameleer.server.core.runtime.ContainerStatus;
import com.cameleer.server.core.runtime.RuntimeOrchestrator;

import java.util.stream.Stream;

public class DisabledRuntimeOrchestrator implements RuntimeOrchestrator {
    @Override public boolean isEnabled() { return false; }
    @Override public String startContainer(ContainerRequest r) { throw new UnsupportedOperationException("Runtime management disabled"); }
    @Override public void stopContainer(String id) { throw new UnsupportedOperationException("Runtime management disabled"); }
    @Override public void removeContainer(String id) { throw new UnsupportedOperationException("Runtime management disabled"); }
    @Override public ContainerStatus getContainerStatus(String id) { return ContainerStatus.notFound(); }
    @Override public Stream<String> getLogs(String id, int tail) { return Stream.empty(); }
    @Override public void startLogCapture(String containerId, String instanceId, String appSlug, String envSlug, String tenantId) {}
    @Override public void stopLogCapture(String containerId) {}
}
