/*- * ============LICENSE_START======================================================= * ONAP : APPC * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * ECOMP is a trademark and service mark of AT&T Intellectual Property. * ============LICENSE_END========================================================= */ package org.onap.appc.adapter.iaas.impl; import java.util.HashMap; import java.util.Map; /** * This class maintains a cache of information by provider, where a provider is identified by both a type and an * identity URL used to connect to that provider. *
* Providers may be multi-tenant, such as OpenStack, where the available services and resources vary from one tenant to * another. Therefore, the provider cache maintains a cache of tenants and the service catalogs for each, as well as the * credentials used to access the tenants, and a pool of Context objects for each tenant. The context pool allows use of * the CDP abstraction layer to access the services of the provider within the specific tenant. *
*/ public class ProviderCache { /** * The type of provider (e.g., OpenStackProvider) used to setup the CDP abstraction layer and load the appropriate * support */ private String providerType; /** * The URL of the provider's identity service or whatever service is used to login and authenticate to the provider */ private String identityURL; /** * A string used to identify the provider instance */ private String providerName; /** * The map of tenant cache objects by tenant id */ private Map