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);
}
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);
}
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);
}
Aggregations