use of com.emc.sa.service.vipr.file.tasks.CreateFileSystem in project coprhd-controller by CoprHD.
the class FileStorageUtils method createFileSystemWithoutRollBack.
public static URI createFileSystemWithoutRollBack(URI project, URI virtualArray, URI virtualPool, String label, double sizeInGb, int advisoryLimit, int softLimit, int gracePeriod) {
Task<FileShareRestRep> task = execute(new CreateFileSystem(label, sizeInGb, advisoryLimit, softLimit, gracePeriod, virtualPool, virtualArray, project));
addAffectedResource(task);
logInfo("file.storage.filesystem.task", task.getResourceId(), task.getOpId());
return task.getResourceId();
}
use of com.emc.sa.service.vipr.file.tasks.CreateFileSystem 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, int advisoryLimit, int softLimit, int gracePeriod) {
Task<FileShareRestRep> task = execute(new CreateFileSystem(label, sizeInGb, advisoryLimit, softLimit, gracePeriod, virtualPool, virtualArray, project));
addAffectedResource(task);
URI fileSystemId = task.getResourceId();
addRollback(new DeactivateFileSystem(fileSystemId, FileControllerConstants.DeleteTypeEnum.FULL));
logInfo("file.storage.filesystem.task", task.getResourceId(), task.getOpId());
return fileSystemId;
}
use of com.emc.sa.service.vipr.file.tasks.CreateFileSystem 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;
}
Aggregations