Connection conn = hypervisorResource.getConnection();
String storeUrl = cmd.getDataStore();
try {
DecodedDataObject obj = Decoder.decode(storeUrl);
DecodedDataStore store = obj.getStore();
if (store.getScheme().equalsIgnoreCase("nfs")) {
SR sr = getNfsSR(conn, store);
} else if (store.getScheme().equalsIgnoreCase("iscsi")) {
//getIscsiSR(conn, dataStore);
} else if (store.getScheme().equalsIgnoreCase("presetup")) {
} else {
return new Answer(cmd, false, "The pool type: " + store.getScheme() + " is not supported.");
}
return new Answer(cmd, true, "success");
} catch (Exception e) {
// String msg = "Catch Exception " + e.getClass().getName() + ", create StoragePool failed due to " + e.toString() + " on host:" + _host.uuid + " pool: " + pool.getHost() + pool.getPath();
//s_logger.warn(msg, e);