Catalog alignment
[sdc.git] / asdctool / src / main / java / org / openecomp / sdc / asdctool / migration / config / mocks / CambriaHandlerMock.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.asdctool.migration.config.mocks;
22
23 import com.att.nsa.apiClient.credentials.ApiCredential;
24 import fj.data.Either;
25 import org.openecomp.sdc.be.components.distribution.engine.CambriaErrorResponse;
26 import org.openecomp.sdc.be.components.distribution.engine.ICambriaHandler;
27 import org.openecomp.sdc.be.components.distribution.engine.INotificationData;
28 import org.openecomp.sdc.be.components.distribution.engine.SubscriberTypeEnum;
29 import org.springframework.stereotype.Component;
30
31 import java.util.Collection;
32 import java.util.List;
33 import java.util.Set;
34
35 @Component("cambriaHandler")
36 public class CambriaHandlerMock implements ICambriaHandler {
37
38     @Override
39     public Either<Set<String>, CambriaErrorResponse> getTopics(List<String> hostSet) {
40         return null;
41     }
42
43     @Override
44     public CambriaErrorResponse createTopic(Collection<String> hostSet, String apiKey, String secretKey, String topicName, int partitionCount, int replicationCount) {
45         return null;
46     }
47
48     @Override
49     public CambriaErrorResponse unRegisterFromTopic(Collection<String> hostSet, String managerApiKey, String managerSecretKey, String subscriberApiKey, SubscriberTypeEnum subscriberTypeEnum, String topicName) {
50         return null;
51     }
52
53     @Override
54     public CambriaErrorResponse registerToTopic(Collection<String> hostSet, String managerApiKey, String managerSecretKey, String subscriberApiKey, SubscriberTypeEnum subscriberTypeEnum, String topicName) {
55         return null;
56     }
57
58     @Override
59     public com.att.nsa.cambria.client.CambriaConsumer createConsumer(Collection<String> hostSet, String topicName, String apiKey, String secretKey, String consumerId, String consumerGroup, int timeoutMS) throws Exception {
60         return null;
61     }
62
63     @Override
64     public CambriaErrorResponse sendNotification(String topicName, String uebPublicKey, String uebSecretKey, List<String> uebServers, INotificationData data) {
65         return null;
66     }
67
68     @Override
69     public CambriaErrorResponse sendNotificationAndClose(String topicName, String uebPublicKey, String uebSecretKey, List<String> uebServers, INotificationData data, long waitBeforeCloseTimeout) {
70         return null;
71     }
72
73     @Override
74     public CambriaErrorResponse getApiKey(String server, String apiKey) {
75         return null;
76     }
77
78     @Override
79     public Either<ApiCredential, CambriaErrorResponse> createUebKeys(List<String> hostSet) {
80         return null;
81     }
82
83     @Override
84     public Either<Iterable<String>, CambriaErrorResponse> fetchFromTopic(com.att.nsa.cambria.client.CambriaConsumer topicConsumer) {
85         return null;
86     }
87 }