public class GSConsumerHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NO_THREADS_STATUS_MESSAGE |
Constructor and Description |
---|
GSConsumerHandler(String consumerName,
int port) |
public static final String NO_THREADS_STATUS_MESSAGE
public GSConsumerHandler(String consumerName, int port)
public void init(GigaSpace gigaSpace, String puName, ConsumerConfiguration consumerConfigFromZK) throws IOException
IOException
public GSMessageExecutorImpl initExecutor()
public GSMessageCleanser initCleanser()
public void startDataIngestion(String offset, Integer partitionsCount) 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 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 boolean isTopicExists(String topic) throws ExecutionException, InterruptedException, TimeoutException
public String getKafkaBootstrapServers()
public String getKafkaTopic()
public short getReplicationFactor()
Copyright © GigaSpaces.