Search in sources :

Example 1 with MigrateStatusReturn

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

the class JsonRpcVdsServer method migrateStatus.

@Override
public MigrateStatusReturn migrateStatus(String vmId) {
    JsonRpcRequest request = new RequestBuilder("VM.getMigrationStatus").withParameter("vmID", vmId).build();
    Map<String, Object> response = new FutureMap(this.client, request).withResponseKey("response").withResponseType(Long.class);
    return new MigrateStatusReturn(response);
}
Also used : MigrateStatusReturn(org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateStatusReturn) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder)

Aggregations

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