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;
27 import org.onap.policy.apex.context.ContextAlbum;
28 import org.onap.policy.apex.context.ContextException;
29 import org.onap.policy.apex.context.Distributor;
30 import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey;
31 import org.onap.policy.apex.testsuites.integration.context.lock.modifier.AlbumModifier;
32 import org.onap.policy.apex.testsuites.integration.context.lock.modifier.LockType;
35 * The Interface ConfigrationProvider provides the configuration for a context test to a context test executor.
37 public interface ConfigrationProvider {
42 * @return the test name
49 * @return the loop size
54 * Gets the thread count.
56 * @return the thread count
63 * @return the jvm count
68 * Gets the album size.
70 * @return the album size
75 * Gets the executor service.
77 * @return the executor service
79 ExecutorService getExecutorService();
82 * Gets the executor service.
84 * @param threadFactoryName the thread factory name
85 * @param threadPoolSize the thread pool size
86 * @return the executor service
88 ExecutorService getExecutorService(final String threadFactoryName, final int threadPoolSize);
91 * Gets the distributor.
94 * @return the distributor
96 Distributor getDistributor(final AxArtifactKey key);
99 * Gets the distributor.
101 * @return the distributor
103 Distributor getDistributor();
106 * Gets the context album.
108 * @param distributor the distributor
109 * @return the context album
111 ContextAlbum getContextAlbum(final Distributor distributor);
114 * Gets the context album.
116 * @param distributor the distributor
117 * @param axContextAlbumKey the ax context album key
118 * @param artifactKeys the artifact keys
119 * @return the context album
120 * @throws ContextException the context exception
122 ContextAlbum getContextAlbum(final Distributor distributor, AxArtifactKey axContextAlbumKey,
123 AxArtifactKey[] artifactKeys) throws ContextException;
126 * Gets the context album init values.
128 * @return the context album init values
130 Map<String, Object> getContextAlbumInitValues();
133 * Gets the album modifier.
135 * @return the album modifier
137 AlbumModifier getAlbumModifier();
140 * Gets the lock type.
142 * @return the lock type
144 LockType getLockType();