feat: add log capture methods to RuntimeOrchestrator interface
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -13,4 +13,7 @@ public class DisabledRuntimeOrchestrator implements RuntimeOrchestrator {
|
|||||||
@Override public void removeContainer(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 ContainerStatus getContainerStatus(String id) { return ContainerStatus.notFound(); }
|
||||||
@Override public Stream<String> getLogs(String id, int tail) { return Stream.empty(); }
|
@Override public Stream<String> getLogs(String id, int tail) { return Stream.empty(); }
|
||||||
|
@Override public void startLogCapture(String containerId, String appSlug, String envSlug, String tenantId) {}
|
||||||
|
@Override public void stopLogCapture(String containerId) {}
|
||||||
|
@Override public void stopLogCaptureByApp(String appSlug, String envSlug) {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,4 +9,13 @@ public interface RuntimeOrchestrator {
|
|||||||
void removeContainer(String containerId);
|
void removeContainer(String containerId);
|
||||||
ContainerStatus getContainerStatus(String containerId);
|
ContainerStatus getContainerStatus(String containerId);
|
||||||
Stream<String> getLogs(String containerId, int tailLines);
|
Stream<String> getLogs(String containerId, int tailLines);
|
||||||
|
|
||||||
|
/** Start streaming container logs to ClickHouse. */
|
||||||
|
default void startLogCapture(String containerId, String appSlug, String envSlug, String tenantId) {}
|
||||||
|
|
||||||
|
/** Stop log capture for a specific container (e.g., on die/oom). */
|
||||||
|
default void stopLogCapture(String containerId) {}
|
||||||
|
|
||||||
|
/** Stop log capture for all containers matching this app+env (e.g., on agent SSE connect). */
|
||||||
|
default void stopLogCaptureByApp(String appSlug, String envSlug) {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user