All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.voovan.docker.message.volume.VolumeInfo Maven / Gradle / Ivy

Go to download

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.volume;

import org.voovan.tools.json.JSONPath;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 * @author helyho
 * 

* DockerFly Framework. * WebSite: https://git.oschina.net/helyho/JDocker * Licence: Apache v2 License */ public class VolumeInfo { private String name; private String driver; private Map driverOpts; private String mountpoint; private Map labels; private String scope; public VolumeInfo() { labels = new HashMap(); } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDriver() { return driver; } public void setDriver(String driver) { this.driver = driver; } public Map getDriverOpts() { return driverOpts; } public void setDriverOpts(Map driverOpts) { this.driverOpts = driverOpts; } public String getMountpoint() { return mountpoint; } public void setMountpoint(String mountpoint) { this.mountpoint = mountpoint; } public Map getLabels() { return labels; } public void setLabels(Map labels) { this.labels = labels; } public String getScope() { return scope; } public void setScope(String scope) { this.scope = scope; } public static List load(String jsonStr) throws ParseException, ReflectiveOperationException { JSONPath jsonPath = JSONPath.newInstance(jsonStr); List volumes = jsonPath.listObject("/Volumes", VolumeInfo.class, new ArrayList()); return volumes; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy