Search in sources :

Example 1 with VirtualArraysCall

use of jobs.vipr.VirtualArraysCall in project coprhd-controller by CoprHD.

the class BlockVirtualPools method addDynamicOptions.

private static void addDynamicOptions(BlockVirtualPoolForm vpool) {
    // Runs all queries in jobs
    Promise<List<VirtualArrayRestRep>> virtualArrays = new VirtualArraysCall().asPromise();
    Promise<List<String>> autoTierPolicies = vpool.autoTierPolicyNames().asPromise();
    Promise<List<BlockVirtualPoolRestRep>> connectedVirtualPools = vpool.connectedVirtualPools().asPromise();
    Promise<List<VirtualArrayRestRep>> haVirtualArrays = vpool.highAvailabilityVirtualArrays().asPromise();
    Promise<List<BlockVirtualPoolRestRep>> haVirtualPools = vpool.highAvailabilityVirtualPools().asPromise();
    Promise<List<VirtualArrayRestRep>> rpVirtualArrays = vpool.recoverPointVirtualArrays().asPromise();
    Promise<List<VirtualArrayRestRep>> rpJournalVirtualArrays = vpool.recoverPointVirtualArrays().asPromise();
    Promise<List<VirtualArrayRestRep>> sourceJournalVirtualArrays = vpool.sourceJournalVirtualArrays().asPromise();
    Promise<List<VirtualArrayRestRep>> haJournalVirtualArrays = vpool.haRpJournalVirtualArrays().asPromise();
    Promise<List<BlockVirtualPoolRestRep>> sourceJournalVirtualPools = vpool.sourceRpJournalVirtualPools().asPromise();
    Promise<List<BlockVirtualPoolRestRep>> haJournalVirtualPools = vpool.haRpJournalVirtualPools().asPromise();
    Promise<List<VirtualArrayRestRep>> srdfVirtualArrays = vpool.srdfVirtualArrays().asPromise();
    if (TenantUtils.canReadAllTenants() && VirtualPoolUtils.canUpdateACLs()) {
        addDataObjectOptions("tenantOptions", new TenantsCall().asPromise());
    }
    addDataObjectOptions("virtualArrayOptions", virtualArrays);
    addStringOptions("autoTierPolicyOptions", autoTierPolicies);
    addDataObjectOptions("continuousCopyVirtualPoolOptions", connectedVirtualPools);
    addDataObjectOptions("haVirtualArrayOptions", haVirtualArrays);
    addDataObjectOptions("haVirtualPoolOptions", haVirtualPools);
    addDataObjectOptions("rpVirtualArrayOptions", rpVirtualArrays);
    addDataObjectOptions("rpJournalVirtualArrayOptions", rpJournalVirtualArrays);
    addDataObjectOptions("vpoolSourceJournalVirtualArrayOptions", sourceJournalVirtualArrays);
    addDataObjectOptions("vpoolSourceJournalVirtualPoolOptions", sourceJournalVirtualPools);
    addDataObjectOptions("vpoolHAJournalVirtualArrayOptions", haJournalVirtualArrays);
    addDataObjectOptions("vpoolHAJournalVirtualPoolOptions", haJournalVirtualPools);
    addDataObjectOptions("srdfVirtualArrayOptions", srdfVirtualArrays);
    addDataObjectOptions("srdfVirtualPoolOptions", connectedVirtualPools);
}
Also used : VirtualArraysCall(jobs.vipr.VirtualArraysCall) TenantsCall(jobs.vipr.TenantsCall) StorageSystemTypeList(com.emc.storageos.model.storagesystem.type.StorageSystemTypeList) List(java.util.List) ArrayList(java.util.ArrayList)

Example 2 with VirtualArraysCall

use of jobs.vipr.VirtualArraysCall in project coprhd-controller by CoprHD.

the class FileVirtualPools method addDynamicOptions.

private static void addDynamicOptions(FileVirtualPoolForm vpool) {
    // Runs all queries in jobs
    Promise<List<VirtualArrayRestRep>> virtualArrays = new VirtualArraysCall().asPromise();
    if (TenantUtils.canReadAllTenants() && VirtualPoolUtils.canUpdateACLs()) {
        addDataObjectOptions("tenantOptions", new TenantsCall().asPromise());
    }
    addDataObjectOptions("virtualArrayOptions", virtualArrays);
}
Also used : VirtualArraysCall(jobs.vipr.VirtualArraysCall) TenantsCall(jobs.vipr.TenantsCall) List(java.util.List)

Example 3 with VirtualArraysCall

use of jobs.vipr.VirtualArraysCall in project coprhd-controller by CoprHD.

the class ObjectVirtualPools method addDynamicOptions.

private static void addDynamicOptions(ObjectVirtualPoolForm vpool) {
    // Runs all queries in jobs
    Promise<List<VirtualArrayRestRep>> virtualArrays = new VirtualArraysCall().asPromise();
    if (TenantUtils.canReadAllTenants() && VirtualPoolUtils.canUpdateACLs()) {
        addDataObjectOptions("tenantOptions", new TenantsCall().asPromise());
    }
    addDataObjectOptions("virtualArrayOptions", virtualArrays);
}
Also used : VirtualArraysCall(jobs.vipr.VirtualArraysCall) TenantsCall(jobs.vipr.TenantsCall) List(java.util.List)

Aggregations

List (java.util.List)3 TenantsCall (jobs.vipr.TenantsCall)3 VirtualArraysCall (jobs.vipr.VirtualArraysCall)3 StorageSystemTypeList (com.emc.storageos.model.storagesystem.type.StorageSystemTypeList)1 ArrayList (java.util.ArrayList)1