use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method failbackFileSystem.
public static void failbackFileSystem(URI fileId, URI targetId, boolean replicationConf) {
Tasks<FileShareRestRep> tasks = execute(new FailbackFileSystem(fileId, targetId, FileTechnologyType.REMOTE_MIRROR.name(), replicationConf));
addAffectedResources(tasks);
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method deactivateFileSystemExport.
public static URI deactivateFileSystemExport(URI fileSystemId, Boolean allDir, String subDir, Boolean unmountExport) {
Task<FileShareRestRep> task = execute(new DeactivateFileSystemExportRule(fileSystemId, allDir, subDir, unmountExport));
addAffectedResource(task);
return task.getResourceId();
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method createCifsShare.
public static String createCifsShare(URI fileSystemId, String shareName, String shareComment, String subDirectory) {
Task<FileShareRestRep> task = execute(new CreateFileSystemShare(shareName, shareComment, fileSystemId, subDirectory));
addAffectedResource(task);
String shareId = task.getResourceId().toString();
addRollback(new DeactivateFileSystemShare(fileSystemId, shareId));
logInfo("file.storage.share.task", shareId, task.getOpId());
return shareId;
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method mountNFSExport.
public static Task<FileShareRestRep> mountNFSExport(URI hostId, URI fileSystemId, String subDirectory, String mountPath, String security, String fsType) {
FileSystemMountParam param = new FileSystemMountParam(hostId, subDirectory, security, mountPath, fsType);
Task<FileShareRestRep> task = execute(new MountFSExport(fileSystemId, param));
addAffectedResource(task);
return task;
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method reduceFileSystem.
public static void reduceFileSystem(URI fileSystemId, double sizeInGb) {
String newSize = String.valueOf(DiskSizeConversionUtils.gbToBytes(sizeInGb));
Task<FileShareRestRep> response = execute(new ReduceFileSystem(fileSystemId, newSize));
addAffectedResource(response);
logInfo("file.storage.task", response.getOpId());
}
Aggregations