com.epam.eco.kafkamanager.KafkaManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafka-manager-commons Show documentation
Show all versions of kafka-manager-commons Show documentation
Common models, utilities, etc
The newest version!
/*******************************************************************************
* Copyright 2022 EPAM Systems
*
* 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.
*******************************************************************************/
package com.epam.eco.kafkamanager;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
/**
* @author Andrei_Tytsik
*/
public interface KafkaManager {
int getBrokerCount();
boolean brokerExists(int brokerId);
BrokerInfo getBroker(int brokerId);
List getAllBrokers();
List getBrokers(BrokerSearchCriteria criteria);
Page getBrokerPage(Pageable pageable);
Page getBrokerPage(BrokerSearchCriteria criteria, Pageable pageable);
BrokerInfo updateBroker(BrokerMetadataUpdateParams params);
BrokerInfo updateBroker(BrokerMetadataDeleteParams params);
BrokerInfo updateBroker(BrokerConfigUpdateParams params);
int getTopicCount();
boolean topicExists(String topicName);
TopicInfo getTopic(String topicName);
List getAllTopics();
List getTopics(SearchCriteria criteria);
Page getTopicPage(Pageable pageable);
Page getTopicPage(SearchCriteria criteria, Pageable pageable);
TopicInfo createTopic(TopicCreateParams params);
TopicInfo updateTopic(TopicConfigUpdateParams params);
TopicInfo updateTopic(TopicPartitionsCreateParams params);
TopicInfo updateTopic(TopicMetadataUpdateParams params);
TopicInfo updateTopic(TopicMetadataDeleteParams params);
void deleteTopic(String topicName);
TopicRecordCounterTaskExecutor getTopicRecordCounterTaskExecutor();
@Deprecated
TopicOffsetFetcherTaskExecutor getTopicOffsetFetcherTaskExecutor();
TopicOffsetRangeFetcherTaskExecutor getTopicOffsetRangeFetcherTaskExecutor();
TopicOffsetForTimeFetcherTaskExecutor getTopicOffsetForTimeFetcherTaskExecutor();
TopicPurgerTaskExecutor getTopicPurgerTaskExecutor();
TopicRecordFetcherTaskExecutor getTopicRecordFetcherTaskExecutor();
int getConsumerGroupCount();
boolean consumerGroupExists(String groupName);
ConsumerGroupInfo getConsumerGroup(String groupName);
List getAllConsumerGroups();
List getConsumerGroups(SearchCriteria criteria);
Page getConsumerGroupPage(Pageable pageable);
Page getConsumerGroupPage(SearchCriteria criteria, Pageable pageable);
List getConsumerGroupsForTopic(String topicName);
ConsumerGroupInfo updateConsumerGroup(ConsumerGroupDeleteTopicParams params);
ConsumerGroupInfo updateConsumerGroup(ConsumerGroupMetadataUpdateParams params);
ConsumerGroupInfo updateConsumerGroup(ConsumerGroupMetadataDeleteParams params);
void deleteConsumerGroup(String groupName);
ConsumerGroupOffsetResetterTaskExecutor getConsumerGroupOffsetResetterTaskExecutor();
ConsumerGroupTopicOffsetFetcherTaskExecutor getConsumerGroupTopicOffsetFetcherTaskExecutor();
int getPermissionCount();
List getAllPermissions();
List getPermissions(PermissionSearchCriteria criteria);
Page getPermissionPage(Pageable pageable);
Page getPermissionPage(PermissionSearchCriteria criteria, Pageable pageable);
List getPermissionsOfResource(ResourcePermissionFilter filter);
void createPermission(PermissionCreateParams params);
void updatePermission(PermissionMetadataUpdateParams params);
void updatePermission(PermissionMetadataDeleteParams params);
void deletePermissions(ResourcePermissionsDeleteParams params);
void deletePermissions(PrincipalPermissionsDeleteParams params);
int getTransactionCount();
boolean transactionExists(String transactionalId);
TransactionInfo getTransaction(String transactionalId);
List getAllTransactions();
List getTransactions(TransactionSearchCriteria criteria);
Page getTransactionPage(Pageable pageable);
Page getTransactionPage(TransactionSearchCriteria criteria, Pageable pageable);
List getTransactionsForTopic(String topicName);
}