com.github.dockerjava.core.command.InspectSwarmNodeCmdImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.core.command;
import com.github.dockerjava.api.command.InspectSwarmNodeCmd;
import com.github.dockerjava.api.exception.NotFoundException;
import com.github.dockerjava.api.model.SwarmNode;
import javax.annotation.CheckForNull;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Inspect the details of a swarmNode.
*/
public class InspectSwarmNodeCmdImpl extends AbstrDockerCmd implements
InspectSwarmNodeCmd {
private String swarmNodeId;
public InspectSwarmNodeCmdImpl(Exec exec, String swarmNodeId) {
super(exec);
withSwarmNodeId(swarmNodeId);
}
@Override
@CheckForNull
public String getSwarmNodeId() {
return swarmNodeId;
}
@Override
public InspectSwarmNodeCmd withSwarmNodeId(String swarmNodeId) {
checkNotNull(swarmNodeId, "swarmNodeId was not specified");
this.swarmNodeId = swarmNodeId;
return this;
}
/**
* @throws NotFoundException
* No such swarmNode
*/
@Override
public SwarmNode exec() throws NotFoundException {
return super.exec();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy