use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method createFileContinuousCopy.
public static Task<FileShareRestRep> createFileContinuousCopy(URI fileId, String name) {
Task<FileShareRestRep> copy = execute(new CreateFileContinuousCopy(fileId, name, FileTechnologyType.LOCAL_MIRROR.name()));
addAffectedResource(copy);
return copy;
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method changeFileVirtualPool.
public static void changeFileVirtualPool(URI fileId, URI targetVirtualPool, URI filePolicy, URI targetVirtualArray) {
Task<FileShareRestRep> task = execute(new ChangeFileVirtualPool(fileId, targetVirtualPool, filePolicy, targetVirtualArray));
addAffectedResource(task);
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method createFileSystem.
public static URI createFileSystem(URI project, URI virtualArray, URI virtualPool, String label, double sizeInGb) {
Task<FileShareRestRep> task = execute(new CreateFileSystem(label, sizeInGb, virtualPool, virtualArray, project));
addAffectedResource(task);
URI fileSystemId = task.getResourceId();
addRollback(new DeactivateFileSystem(fileSystemId, FileControllerConstants.DeleteTypeEnum.FULL));
logInfo("file.storage.filesystem.task", fileSystemId, task.getOpId());
return fileSystemId;
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method createFileSystemExport.
public static String createFileSystemExport(URI fileSystemId, String comment, String security, String permissions, String rootUser, List<String> exportHosts, String subDirectory, boolean bypassDnsCheck) {
Task<FileShareRestRep> task = createFileSystemExportWithoutRollBack(fileSystemId, comment, security, permissions, rootUser, exportHosts, subDirectory, bypassDnsCheck);
addRollback(new DeactivateFileSystemExportRule(fileSystemId, false, subDirectory, false));
String exportId = task.getResourceId().toString();
logInfo("file.storage.export.task", exportId, task.getOpId());
return exportId;
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method deactivateFileSystem.
public static void deactivateFileSystem(URI fileSystemId, FileControllerConstants.DeleteTypeEnum fileDeletionType) {
Task<FileShareRestRep> response = execute(new DeactivateFileSystem(fileSystemId, fileDeletionType));
addAffectedResource(response);
logInfo("file.storage.task", response.getOpId());
}
Aggregations