org.voovan.docker.message.service.atom.ResourcePolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JDocker Show documentation
Show all versions of JDocker Show documentation
By encapsulating the Docker API enables developers to use Java can quickly developed the control and operation of the Docker application, using streaming operation, simple and clear.
The newest version!
package org.voovan.docker.message.service.atom;
/**
*
* @author helyho
*
* DockerFly Framework.
* WebSite: https://git.oschina.net/helyho/JDocker
* Licence: Apache v2 License
*/
public class ResourcePolicy {
private Long nanoCPUs;
private Long memoryBytes;
public ResourcePolicy() {
nanoCPUs = 0L;
memoryBytes = 0L;
}
public void setNanoCPUs(Long nanoCPUs) {
this.nanoCPUs = nanoCPUs;
}
public Long getNanoCPUs() {
return this.nanoCPUs;
}
public void setMemoryBytes(Long memoryBytes) {
this.memoryBytes = memoryBytes;
}
public Long getMemoryBytes() {
return this.memoryBytes;
}
}