Search in sources :

Example 1 with GlusterVolumeSnapshotCreateReturn

use of org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotCreateReturn in project ovirt-engine by oVirt.

the class JsonRpcVdsServer method glusterVolumeSnapshotCreate.

@Override
public GlusterVolumeSnapshotCreateReturn glusterVolumeSnapshotCreate(String volumeName, String snapshotName, String description, boolean force) {
    JsonRpcRequest request = new RequestBuilder("GlusterVolume.snapshotCreate").withParameter("volumeName", volumeName).withParameter("snapName", snapshotName).withOptionalParameter("snapDescription", description).withParameter("force", force).build();
    Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
    return new GlusterVolumeSnapshotCreateReturn(response);
}
Also used : JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) GlusterVolumeSnapshotCreateReturn(org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotCreateReturn)

Aggregations

GlusterVolumeSnapshotCreateReturn (org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotCreateReturn)1 JsonRpcRequest (org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest)1 RequestBuilder (org.ovirt.vdsm.jsonrpc.client.RequestBuilder)1