use of org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturn in project ovirt-engine by oVirt.
the class JsonRpcIIrsServer method setVolumeLegality.
@Override
public StatusReturn setVolumeLegality(String spID, String sdID, String imageID, String volumeID, String legality) {
JsonRpcRequest request = new RequestBuilder("Volume.setLegality").withParameter("storagepoolID", spID).withParameter("storagedomainID", sdID).withParameter("imageID", imageID).withParameter("volumeID", volumeID).withParameter("legality", legality).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method verifyUntrustedVolume.
@Override
public StatusReturn verifyUntrustedVolume(String spID, String sdID, String imageID, String volumeID) {
JsonRpcRequest request = new RequestBuilder("Volume.verify_untrusted").withParameter("storagepoolID", spID).withParameter("storagedomainID", sdID).withParameter("imageID", imageID).withParameter("volumeID", volumeID).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusReturn(response);
}
use of org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method teardownImage.
@Override
public StatusReturn teardownImage(String spID, String sdID, String imageID, String volumeID) {
JsonRpcRequest request = new RequestBuilder("Image.teardown").withParameter("storagepoolID", spID).withParameter("storagedomainID", sdID).withParameter("imageID", imageID).withParameter("leafVolID", volumeID).build();
Map<String, Object> response = new FutureMap(this.client, request);
return new StatusReturn(response);
}
Aggregations