Search in sources :

Example 1 with XtremIOCGResponse

use of com.emc.storageos.xtremio.restapi.model.response.XtremIOCGResponse in project coprhd-controller by CoprHD.

the class XtremIOV2Client method getSnapshotSetDetails.

@Override
public XtremIOConsistencyGroup getSnapshotSetDetails(String snapshotSetName, String clusterName) throws Exception {
    String uriString = XtremIOConstants.XTREMIO_V2_SNAPSHOT_SET_STR.concat(XtremIOConstants.getInputNameForClusterString(snapshotSetName, clusterName));
    ClientResponse response = get(URI.create(uriString));
    XtremIOCGResponse cgResponse = getResponseObject(XtremIOCGResponse.class, response);
    XtremIOConsistencyGroup cg = cgResponse.getContent();
    log.info(cg.toString());
    return cg;
}
Also used : ClientResponse(com.sun.jersey.api.client.ClientResponse) XtremIOConsistencyGroup(com.emc.storageos.xtremio.restapi.model.response.XtremIOConsistencyGroup) XtremIOCGResponse(com.emc.storageos.xtremio.restapi.model.response.XtremIOCGResponse)

Example 2 with XtremIOCGResponse

use of com.emc.storageos.xtremio.restapi.model.response.XtremIOCGResponse in project coprhd-controller by CoprHD.

the class XtremIOV2Client method getConsistencyGroupDetails.

@Override
public XtremIOConsistencyGroup getConsistencyGroupDetails(String cgName, String clusterName) throws Exception {
    String uriString = XtremIOConstants.XTREMIO_V2_CONSISTENCY_GROUPS_STR.concat(XtremIOConstants.getInputNameForClusterString(cgName, clusterName));
    ClientResponse response = get(URI.create(uriString));
    XtremIOCGResponse cgResponse = getResponseObject(XtremIOCGResponse.class, response);
    XtremIOConsistencyGroup cg = cgResponse.getContent();
    log.info(cg.toString());
    return cg;
}
Also used : ClientResponse(com.sun.jersey.api.client.ClientResponse) XtremIOConsistencyGroup(com.emc.storageos.xtremio.restapi.model.response.XtremIOConsistencyGroup) XtremIOCGResponse(com.emc.storageos.xtremio.restapi.model.response.XtremIOCGResponse)

Aggregations

XtremIOCGResponse (com.emc.storageos.xtremio.restapi.model.response.XtremIOCGResponse)2 XtremIOConsistencyGroup (com.emc.storageos.xtremio.restapi.model.response.XtremIOConsistencyGroup)2 ClientResponse (com.sun.jersey.api.client.ClientResponse)2