use of io.fabric8.maven.docker.access.log.LogGetHandle in project docker-maven-plugin by fabric8io.
the class DockerAccessWithHcClient method getLogAsync.
@Override
public LogGetHandle getLogAsync(String containerId, LogCallback callback) {
LogRequestor extractor = new LogRequestor(delegate.createBasicClient(), urlBuilder, containerId, callback);
extractor.start();
return extractor;
}
use of io.fabric8.maven.docker.access.log.LogGetHandle in project docker-maven-plugin by fabric8io.
the class LogDispatcher method trackContainerLog.
public synchronized void trackContainerLog(String containerId, LogOutputSpec spec) {
LogGetHandle handle = dockerAccess.getLogAsync(containerId, new DefaultLogCallback(spec));
logHandles.put(containerId, handle);
}
use of io.fabric8.maven.docker.access.log.LogGetHandle in project docker-maven-plugin by fabric8io.
the class LogDispatcher method untrackAllContainerLogs.
public synchronized void untrackAllContainerLogs() {
for (String key : logHandles.keySet()) {
LogGetHandle handle = logHandles.get(key);
handle.finish();
}
logHandles.clear();
}
Aggregations