Search in sources :

Example 1 with LogGetHandle

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;
}
Also used : LogRequestor(io.fabric8.maven.docker.access.log.LogRequestor)

Example 2 with LogGetHandle

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);
}
Also used : LogGetHandle(io.fabric8.maven.docker.access.log.LogGetHandle)

Example 3 with LogGetHandle

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();
}
Also used : LogGetHandle(io.fabric8.maven.docker.access.log.LogGetHandle)

Aggregations

LogGetHandle (io.fabric8.maven.docker.access.log.LogGetHandle)2 LogRequestor (io.fabric8.maven.docker.access.log.LogRequestor)1