use of com.emc.storageos.xtremio.restapi.model.response.XtremIOTags in project coprhd-controller by CoprHD.
the class XtremIOV1Client method getVolumeGroupFolder.
private XtremIOTag getVolumeGroupFolder(String volumeFolderName, String clusterName) throws Exception {
try {
String uriStr = XtremIOConstants.XTREMIO_VOLUME_FOLDERS_STR.concat(XtremIOConstants.getInputNameString(volumeFolderName));
ClientResponse response = get(URI.create(uriStr));
XtremIOTags folderResponse = getResponseObject(XtremIOTags.class, response);
XtremIOTag folder = folderResponse.getContent();
log.info(folder.toString());
return folder;
} catch (Exception e) {
if (null != e.getMessage() && !e.getMessage().contains(XtremIOConstants.OBJECT_NOT_FOUND)) {
throw e;
} else {
log.warn("Volume folder {} not found on cluster {}", volumeFolderName, clusterName);
}
}
log.info("Volume Folder not available on Array with name : {}", volumeFolderName);
return null;
}
use of com.emc.storageos.xtremio.restapi.model.response.XtremIOTags in project coprhd-controller by CoprHD.
the class XtremIOV2Client method getTagDetails.
@Override
public XtremIOTag getTagDetails(String tagName, String tagEntityType, String clusterName) throws Exception {
try {
String rootFolder = XtremIOConstants.getV2RootFolderForEntityType(tagEntityType);
String xioTagName = rootFolder.concat(tagName);
String uriString = XtremIOConstants.XTREMIO_V2_TAGS_STR.concat(XtremIOConstants.getInputNameForClusterString(xioTagName, clusterName));
ClientResponse response = get(URI.create(uriString));
XtremIOTags tags = getResponseObject(XtremIOTags.class, response);
return tags.getContent();
} catch (Exception e) {
log.warn(e.getMessage(), e);
}
log.info("Tag not available on Array with name : {}", tagName);
return null;
}
use of com.emc.storageos.xtremio.restapi.model.response.XtremIOTags in project coprhd-controller by CoprHD.
the class XtremIOV1Client method getInitiatorGroupFolder.
private XtremIOTag getInitiatorGroupFolder(String initiatorGroupFolderName, String clusterName) throws Exception {
try {
String uriStr = XtremIOConstants.XTREMIO_INITIATOR_GROUPS_FOLDER_STR.concat(XtremIOConstants.getInputNameString(initiatorGroupFolderName));
ClientResponse response = get(URI.create(uriStr));
XtremIOTags folderResponse = getResponseObject(XtremIOTags.class, response);
XtremIOTag folder = folderResponse.getContent();
log.info(folder.toString());
return folder;
} catch (Exception e) {
if (null != e.getMessage() && !e.getMessage().contains(XtremIOConstants.OBJECT_NOT_FOUND)) {
throw e;
} else {
log.warn("Initiator group folder {} not found on cluster {}", initiatorGroupFolderName, clusterName);
}
}
log.info("Initiator Group Folder not available on Array with name : {}", initiatorGroupFolderName);
return null;
}
Aggregations