Package com.gigaspaces.dih.consumer.web
Class GSConsumerHandler
java.lang.Object
com.gigaspaces.dih.consumer.web.GSConsumerHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearPipelineTables(List<String> typesList) delete()voiddeletePipelineCdcInfo(String pipelineName) voiddeleteTopic(String topic) voiddestroy()longUNHEALTHY - retrying PENDING - deployed but haven't started yet ACTIVE - startedLazy status check, when there are no consumer we return the last status that was saved which can be either STOPPED or PENDINGshortintintbooleanvoidinit(GigaSpace gigaSpace, String puName, ConsumerConfiguration consumerConfigFromZK) booleanisAlive()booleanisTopicExists(String topic) voidsaveConsumerConfigToZK(ConsumerConfiguration consumerConfiguration) voidsetConsumerConfiguration(ConsumerConfiguration consumerConfiguration) voidsetConsumerStatus(GSKafkaConsumerStatusEnum newStatus) voidsetPartitionsAndPersistToZK(int partitions) voidstartDataIngestion(String offset, Integer partitionsCount) voidvoidvoid
-
Field Details
-
NO_THREADS_STATUS_MESSAGE
- See Also:
-
-
Constructor Details
-
GSConsumerHandler
-
-
Method Details
-
init
public void init(GigaSpace gigaSpace, String puName, ConsumerConfiguration consumerConfigFromZK) throws IOException - Throws:
IOException
-
initExecutor
-
initCleanser
-
startDataIngestion
- Throws:
Exception
-
getConsumerConfigFromZK
- Throws:
Exception
-
saveConsumerConfigToZK
- Throws:
IOException
-
stopDataIngestion
public void stopDataIngestion() -
isAlive
public boolean isAlive() -
getStatusCode
public int getStatusCode() -
hasKafkaDeltaInTopic
public boolean hasKafkaDeltaInTopic() throws ExecutionException, InterruptedException, TimeoutException -
setConsumerStatus
-
getConsumerStatus
Lazy status check, when there are no consumer we return the last status that was saved which can be either STOPPED or PENDING -
getTotalOperation
- Throws:
IOException
-
delete
-
getRegisteredTypes
-
getKafkaBootstrap
-
deletePipelineCdcInfo
- Throws:
ExecutionException
-
setConsumerConfiguration
-
clearPipelineTables
- Throws:
ExecutionException
-
destroy
public void destroy() -
startPopulationOfDeletedTables
public void startPopulationOfDeletedTables() -
stopPopulationOfDeletedTables
public void stopPopulationOfDeletedTables() -
setPartitionsAndPersistToZK
- Throws:
Exception
-
getPartitions
-
getActiveThreadsCount
public long getActiveThreadsCount()UNHEALTHY - retrying PENDING - deployed but haven't started yet ACTIVE - started -
getThreadsStatus
-
isTopicExists
public boolean isTopicExists(String topic) throws ExecutionException, InterruptedException, TimeoutException -
deleteTopic
- Throws:
Exception
-
getKafkaBootstrapServers
-
getKafkaTopic
-
getReplicationFactor
public short getReplicationFactor()
-