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

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

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 VolumeDetail { private String name; private String driver; private Map driverOpts; private String mountpoint; private Map labels; private String scope; public VolumeDetail() { 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 VolumeDetail load(String jsonStr) throws ParseException, ReflectiveOperationException { JSONPath jsonPath = JSONPath.newInstance(jsonStr); VolumeDetail volumeDetail = jsonPath.value("/", VolumeDetail.class, new VolumeDetail()); return volumeDetail; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy