public class GSConsumerHandler extends Object
Constructor and Description |
---|
GSConsumerHandler(String consumerName,
int port) |
public GSConsumerHandler(String consumerName, int port)
public void init(GigaSpace gigaSpace, String puName) throws IOException
IOException
public GSMessageExecutorImpl initExecutor()
public GSMessageCleanser initCleanser()
public void startDataIngestion(String offset, Integer partitionsCount, Boolean cleanStart) throws Exception
Exception
public ConsumerConfiguration getConsumerConfigFromZK() throws Exception
Exception
public void saveConsumerConfigToZK(ConsumerConfiguration consumerConfiguration) throws IOException
IOException
public void stopDataIngestion()
public boolean isAlive()
public int getStatusCode()
public boolean hasKafkaDeltaInTopic() throws ExecutionException, InterruptedException, TimeoutException
public void setConsumerStatus(GSKafkaConsumerStatusEnum newStatus)
public GSKafkaConsumerStatusEnum getConsumerStatus()
public int getTotalOperation() throws IOException
IOException
public String delete()
public String getKafkaBootstrap()
public void deletePipelineCdcInfo(String pipelineName) throws ExecutionException
ExecutionException
public ConsumerConfiguration getConsumerConfiguration()
public void setConsumerConfiguration(ConsumerConfiguration consumerConfiguration)
public void clearPipelineTables(List<String> typesList) throws ExecutionException
ExecutionException
public void destroy()
public void startPopulationOfDeletedTables()
public void stopPopulationOfDeletedTables()
public void setPartitionsAndPersistToZK(int partitions) throws Exception
Exception
public Integer getPartitions()
public long getActiveThreadsCount()
public String getThreadsStatus()
public void deleteTopics(org.apache.kafka.clients.admin.AdminClient adminClient, List<String> topics) throws Exception
Exception
public String getKafkaBootstrapServers()
public String getKafkaTopic()
public short getReplicationFactor()
Copyright © GigaSpaces.