Search in sources :

Example 1 with GlusterVolumeGeoRepStatus

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

the class JsonRpcVdsServer method glusterVolumeGeoRepSessionList.

@Override
public GlusterVolumeGeoRepStatus glusterVolumeGeoRepSessionList(String volumeName, String slaveHost, String slaveVolumeName, String userName) {
    JsonRpcRequest request = new RequestBuilder("GlusterVolume.geoRepSessionList").withParameter("volumeName", volumeName).withParameter("remoteHost", slaveHost).withParameter("remoteVolumeName", slaveVolumeName).withOptionalParameter("remoteUserName", userName).build();
    Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
    return new GlusterVolumeGeoRepStatus(response);
}
Also used : GlusterVolumeGeoRepStatus(org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatus) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder)

Example 2 with GlusterVolumeGeoRepStatus

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

the class JsonRpcVdsServer method glusterVolumeGeoRepSessionList.

@Override
public GlusterVolumeGeoRepStatus glusterVolumeGeoRepSessionList() {
    JsonRpcRequest request = new RequestBuilder("GlusterVolume.geoRepSessionList").build();
    Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
    return new GlusterVolumeGeoRepStatus(response);
}
Also used : GlusterVolumeGeoRepStatus(org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatus) JsonRpcRequest(org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest) RequestBuilder(org.ovirt.vdsm.jsonrpc.client.RequestBuilder)

Aggregations

GlusterVolumeGeoRepStatus (org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatus)2 JsonRpcRequest (org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest)2 RequestBuilder (org.ovirt.vdsm.jsonrpc.client.RequestBuilder)2