2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2018 Ericsson. All rights reserved.
4 * Modifications Copyright (C) 2019 Nordix Foundation.
5 * ================================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 * SPDX-License-Identifier: Apache-2.0
19 * ============LICENSE_END=========================================================
22 package org.onap.policy.apex.testsuites.integration.context.utils;
25 import java.util.concurrent.ExecutorService;
26 import org.onap.policy.apex.context.ContextAlbum;
27 import org.onap.policy.apex.context.ContextException;
28 import org.onap.policy.apex.context.Distributor;
29 import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;
30 import org.onap.policy.apex.testsuites.integration.context.lock.modifier.AlbumModifier;
31 import org.onap.policy.apex.testsuites.integration.context.lock.modifier.LockType;
34 * The Interface ConfigrationProvider provides the configuration for a context test to a context test executor.
36 public interface ConfigrationProvider {
41 * @return the test name
48 * @return the loop size
53 * Gets the thread count.
55 * @return the thread count
62 * @return the jvm count
67 * Gets the album size.
69 * @return the album size
74 * Gets the executor service.
76 * @return the executor service
78 ExecutorService getExecutorService();
81 * Gets the executor service.
83 * @param threadFactoryName the thread factory name
84 * @param threadPoolSize the thread pool size
85 * @return the executor service
87 ExecutorService getExecutorService(final String threadFactoryName, final int threadPoolSize);
90 * Gets the distributor.
93 * @return the distributor
95 Distributor getDistributor(final AxArtifactKey key);
98 * Gets the distributor.
100 * @return the distributor
102 Distributor getDistributor();
105 * Gets the context album.
107 * @param distributor the distributor
108 * @return the context album
110 ContextAlbum getContextAlbum(final Distributor distributor);
113 * Gets the context album.
115 * @param distributor the distributor
116 * @param axContextAlbumKey the ax context album key
117 * @param artifactKeys the artifact keys
118 * @return the context album
119 * @throws ContextException the context exception
121 ContextAlbum getContextAlbum(final Distributor distributor, AxArtifactKey axContextAlbumKey,
122 AxArtifactKey[] artifactKeys) throws ContextException;
125 * Gets the context album init values.
127 * @return the context album init values
129 Map<String, Object> getContextAlbumInitValues();
132 * Gets the album modifier.
134 * @return the album modifier
136 AlbumModifier getAlbumModifier();
139 * Gets the lock type.
141 * @return the lock type
143 LockType getLockType();