Search in sources :

Example 16 with VNXeNfsShare

use of com.emc.storageos.vnxe.models.VNXeNfsShare in project coprhd-controller by CoprHD.

the class VNXeApiClient method getNfsSharesForSnap.

/**
 * Find nfsShares for snapshot Id
 *
 * @param snapId
 *            file system snapshot Id
 * @return list of nfsShare
 */
public List<VNXeNfsShare> getNfsSharesForSnap(String snapId) {
    _logger.info("finding nfsShares for snap id: {} ", snapId);
    NfsShareRequests req = new NfsShareRequests(_khClient);
    List<VNXeNfsShare> shares = req.getSharesForFileSystemSnap(snapId);
    return shares;
}
Also used : NfsShareRequests(com.emc.storageos.vnxe.requests.NfsShareRequests) VNXeNfsShare(com.emc.storageos.vnxe.models.VNXeNfsShare)

Example 17 with VNXeNfsShare

use of com.emc.storageos.vnxe.models.VNXeNfsShare in project coprhd-controller by CoprHD.

the class VNXeApiClient method getNfsSharesForFileSystem.

/**
 * Find nfsShares for filesystem Id
 *
 * @param fsId
 *            file system Id
 * @return list of nfsShare
 */
public List<VNXeNfsShare> getNfsSharesForFileSystem(String fsId) {
    _logger.info("finding nfsShares for filesystem id: {} ", fsId);
    NfsShareRequests req = new NfsShareRequests(_khClient);
    List<VNXeNfsShare> shares = req.getSharesForFileSystem(fsId);
    return shares;
}
Also used : NfsShareRequests(com.emc.storageos.vnxe.requests.NfsShareRequests) VNXeNfsShare(com.emc.storageos.vnxe.models.VNXeNfsShare)

Example 18 with VNXeNfsShare

use of com.emc.storageos.vnxe.models.VNXeNfsShare in project coprhd-controller by CoprHD.

the class VNXeApiClient method findSnapNfsShare.

/**
 * Find nfsShare using snapshot Id and snapshot share name
 *
 * @param snapId
 *            file system snapshot Id
 * @param shareName
 *            NFS Export/Share name
 * @return nfsShare
 */
public VNXeNfsShare findSnapNfsShare(String snapId, String shareName) {
    _logger.info("finding nfsShare id for snap id: {}, and shareName: {} ", snapId, shareName);
    NfsShareRequests req = new NfsShareRequests(_khClient);
    VNXeNfsShare share = req.findSnapNfsShare(snapId, shareName, getBasicSystemInfo().getSoftwareVersion());
    return share;
}
Also used : NfsShareRequests(com.emc.storageos.vnxe.requests.NfsShareRequests) VNXeNfsShare(com.emc.storageos.vnxe.models.VNXeNfsShare)

Example 19 with VNXeNfsShare

use of com.emc.storageos.vnxe.models.VNXeNfsShare in project coprhd-controller by CoprHD.

the class NfsShareRequestsTest method findNfsShareTest.

@Test
public void findNfsShareTest() {
    NfsShareRequests req = new NfsShareRequests(_client);
    VNXeNfsShare share = req.findNfsShare("fs_30", "ProviderTenant_fskh33_d7909c79-3bfe-4845-bc84-6c9775f1e44d-share" + host, "3.1.0");
    req.get();
    System.out.println(share.getId());
/*
         * VNXeFileSystem fs2 = req.getByFSName("ProviderTenant_fskh02_5bb3ac40-65f3-4ce1-b629-0c2f0775647c");
         * System.out.println(fs2.getId());
         */
}
Also used : VNXeNfsShare(com.emc.storageos.vnxe.models.VNXeNfsShare) Test(org.junit.Test)

Aggregations

VNXeNfsShare (com.emc.storageos.vnxe.models.VNXeNfsShare)19 VNXeApiClient (com.emc.storageos.vnxe.VNXeApiClient)6 NfsShareRequests (com.emc.storageos.vnxe.requests.NfsShareRequests)6 ArrayList (java.util.ArrayList)6 VNXeBase (com.emc.storageos.vnxe.models.VNXeBase)4 VNXeFileSystem (com.emc.storageos.vnxe.models.VNXeFileSystem)4 StorageSystem (com.emc.storageos.db.client.model.StorageSystem)3 VNXeFileSystemSnap (com.emc.storageos.vnxe.models.VNXeFileSystemSnap)3 FSExportMap (com.emc.storageos.db.client.model.FSExportMap)2 FileShare (com.emc.storageos.db.client.model.FileShare)2 Snapshot (com.emc.storageos.db.client.model.Snapshot)2 StoragePort (com.emc.storageos.db.client.model.StoragePort)2 UnManagedFileExportRule (com.emc.storageos.db.client.model.UnManagedDiscoveredObjects.UnManagedFileExportRule)2 UnManagedFileSystem (com.emc.storageos.db.client.model.UnManagedDiscoveredObjects.UnManagedFileSystem)2 ExportRule (com.emc.storageos.model.file.ExportRule)2 NFSShareDefaultAccessEnum (com.emc.storageos.vnxe.models.NfsShareParam.NFSShareDefaultAccessEnum)2 VNXeCifsShare (com.emc.storageos.vnxe.models.VNXeCifsShare)2 VNXeHost (com.emc.storageos.vnxe.models.VNXeHost)2 UnManagedExportVerificationUtility (com.emc.storageos.volumecontroller.impl.utils.UnManagedExportVerificationUtility)2 IOException (java.io.IOException)2