use of com.emc.storageos.vnxe.models.VNXeCommandJob in project coprhd-controller by CoprHD.
the class FileSystemActionRequestTest method modifyFileSystem.
// @Test
public void modifyFileSystem() {
ModifyFileSystemParam parm = new ModifyFileSystemParam();
NfsShareCreateParam nfsShareParm = new NfsShareCreateParam();
nfsShareParm.setName("fs-21-share-1");
nfsShareParm.setPath("/");
NfsShareParam shareParm = new NfsShareParam();
List<VNXeBase> hosts = new ArrayList<VNXeBase>();
VNXeBase host = new VNXeBase();
host.setId("Host_1");
hosts.add(host);
shareParm.setReadWriteHosts(hosts);
nfsShareParm.setNfsShareParameters(shareParm);
List<NfsShareCreateParam> nfsList = new ArrayList<NfsShareCreateParam>();
nfsList.add(nfsShareParm);
parm.setNfsShareCreate(nfsList);
FileSystemActionRequest req = new FileSystemActionRequest(_client);
VNXeCommandJob job = req.modifyFileSystemAsync(parm, "res_4");
System.out.println(job.getId());
}
use of com.emc.storageos.vnxe.models.VNXeCommandJob in project coprhd-controller by CoprHD.
the class FileSystemSnapRequestsTest method deleteSnap.
/*
* @Test
* public void getFileSystemSnap() {
*
* FileSystemSnapRequests req = new FileSystemSnapRequests(_client);
*
* VNXeFileSystemSnap response = null;
* try {
* response = req.getByName("test-file-01-snap");
* } catch (VNXeException e) {
* // TODO Auto-generated catch block
* logger.error("VNXeException occured", e);
* }
*
* System.out.println(response.getId());
*
*
* }
*/
// @Test
public void deleteSnap() {
FileSystemSnapRequests req = new FileSystemSnapRequests(_client);
VNXeCommandJob response = null;
try {
response = req.deleteFileSystemSnap("98784247867", "3.1.0");
} catch (VNXeException e) {
logger.error("VNXeException occured", e);
}
System.out.println(response.getId());
}
use of com.emc.storageos.vnxe.models.VNXeCommandJob in project coprhd-controller by CoprHD.
the class FileSystemSnapRequestsTest method restoreSnap.
@Test
public void restoreSnap() {
FileSystemSnapRequests req = new FileSystemSnapRequests(_client);
VNXeCommandJob response = null;
try {
response = req.restoreFileSystemSnap("98784247833", null, "3.1.0");
} catch (VNXeException e) {
logger.error("VNXeException occured", e);
}
System.out.println(response.getId());
}
Aggregations