Search in sources :

Example 1 with CreateFileSystem

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();
}
Also used : FileShareRestRep(com.emc.storageos.model.file.FileShareRestRep) CreateFileSystem(com.emc.sa.service.vipr.file.tasks.CreateFileSystem)

Example 2 with CreateFileSystem

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;
}
Also used : DeactivateFileSystem(com.emc.sa.service.vipr.file.tasks.DeactivateFileSystem) FileShareRestRep(com.emc.storageos.model.file.FileShareRestRep) CreateFileSystem(com.emc.sa.service.vipr.file.tasks.CreateFileSystem) URI(java.net.URI)

Example 3 with CreateFileSystem

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;
}
Also used : DeactivateFileSystem(com.emc.sa.service.vipr.file.tasks.DeactivateFileSystem) FileShareRestRep(com.emc.storageos.model.file.FileShareRestRep) CreateFileSystem(com.emc.sa.service.vipr.file.tasks.CreateFileSystem) URI(java.net.URI)

Aggregations

CreateFileSystem (com.emc.sa.service.vipr.file.tasks.CreateFileSystem)3 FileShareRestRep (com.emc.storageos.model.file.FileShareRestRep)3 DeactivateFileSystem (com.emc.sa.service.vipr.file.tasks.DeactivateFileSystem)2 URI (java.net.URI)2