Search in sources :

Example 1 with StatusReturn

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);
}
Also used : JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) StatusReturn(org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturn) StorageStatusReturn(org.ovirt.engine.core.vdsbroker.irsbroker.StorageStatusReturn)

Example 2 with StatusReturn

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);
}
Also used : JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) SpmStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStatusReturn) TaskStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.TaskStatusReturn) ServerConnectionStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.ServerConnectionStatusReturn) GlusterVolumeStatusReturn(org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeStatusReturn) StatusReturn(org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturn) MigrateStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateStatusReturn) FenceStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.FenceStatusReturn)

Example 3 with StatusReturn

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);
}
Also used : JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder) SpmStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStatusReturn) TaskStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.TaskStatusReturn) ServerConnectionStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.ServerConnectionStatusReturn) GlusterVolumeStatusReturn(org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeStatusReturn) StatusReturn(org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturn) MigrateStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateStatusReturn) FenceStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.FenceStatusReturn)

Aggregations

StatusReturn (org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturn)3 JsonRpcRequest (org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest)3 RequestBuilder (org.ovirt.vdsm.jsonrpc.client.RequestBuilder)3 GlusterVolumeStatusReturn (org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeStatusReturn)2 FenceStatusReturn (org.ovirt.engine.core.vdsbroker.vdsbroker.FenceStatusReturn)2 MigrateStatusReturn (org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateStatusReturn)2 ServerConnectionStatusReturn (org.ovirt.engine.core.vdsbroker.vdsbroker.ServerConnectionStatusReturn)2 SpmStatusReturn (org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStatusReturn)2 TaskStatusReturn (org.ovirt.engine.core.vdsbroker.vdsbroker.TaskStatusReturn)2 StorageStatusReturn (org.ovirt.engine.core.vdsbroker.irsbroker.StorageStatusReturn)1