Search in sources :

Example 1 with SpmStatusReturn

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

the class JsonRpcVdsServer method spmStatus.

@Override
public SpmStatusReturn spmStatus(String spUUID) {
    JsonRpcRequest request = new RequestBuilder("StoragePool.getSpmStatus").withParameter("storagepoolID", spUUID).build();
    Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("spm_st");
    return new SpmStatusReturn(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)

Aggregations

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