blob: 3818aff68ee920832f377d0f2ada5f2ef42064d0 [file] [log] [blame]
Ray Milkey2d572dd2017-04-14 10:01:24 -07001/*
Shravan Ambatia4875d82017-01-09 13:06:51 -08002 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.kafkaintegration.api;
17
18import org.onosproject.kafkaintegration.api.dto.KafkaServerConfig;
19
20
21public interface KafkaPublisherAdminService {
22 /**
23 * Starts the Kafka Producer.
24 *
25 * @param config the Kafka Server Config
26 */
27 void start(KafkaServerConfig config);
28
29 /**
30 * Stops the Kafka Producer.
31 *
32 */
33 void stop();
34
35 /**
36 * Restarts the Kafka Producer.
37 *
38 * @param config the Kafka Server Config
39 */
40 void restart(KafkaServerConfig config);
41}