com.hubspot.singularity.executor.models.DockerContext Maven / Gradle / Ivy
The newest version!
package com.hubspot.singularity.executor.models;
public class DockerContext {
private final EnvironmentContext envContext;
private final RunnerContext runContext;
private final String prefix;
private final int stopTimeout;
private final boolean privileged;
public DockerContext(
EnvironmentContext envContext,
RunnerContext runContext,
String prefix,
int stopTimeout,
boolean privileged
) {
this.envContext = envContext;
this.runContext = runContext;
this.prefix = prefix;
this.stopTimeout = stopTimeout;
this.privileged = privileged;
}
public EnvironmentContext getEnvContext() {
return envContext;
}
public RunnerContext getRunContext() {
return runContext;
}
public String getPrefix() {
return prefix;
}
public int getStopTimeout() {
return stopTimeout;
}
public boolean isPrivileged() {
return privileged;
}
@Override
public String toString() {
return (
"DockerContext{" +
"envContext=" +
envContext +
", runContext=" +
runContext +
", prefix='" +
prefix +
'\'' +
", stopTimeout=" +
stopTimeout +
", privileged=" +
privileged +
'}'
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy