public class SingleThreadedDmaapTopicSource extends SingleThreadedBusTopicSource implements DmaapTopicSource, Runnable
Topic.CommInfrastructure
Modifier and Type | Field and Description |
---|---|
protected String |
password |
protected String |
userName |
alive, busPollerThread, consumer, consumerGroup, consumerInstance, fetchLimit, fetchTimeout, locked, networkLogger, topicListeners
apiKey, apiSecret, recentEvents, servers, topic
factory
DEFAULT_CONSUMER_INSTANCE, DEFAULT_LIMIT_FETCH, DEFAULT_TIMEOUT_MS_FETCH, NO_LIMIT_FETCH, NO_TIMEOUT_MS_FETCH
NETWORK_LOGGER
Constructor and Description |
---|
SingleThreadedDmaapTopicSource(List<String> servers,
String topic,
String apiKey,
String apiSecret,
String userName,
String password,
String consumerGroup,
String consumerInstance,
int fetchTimeout,
int fetchLimit) |
Modifier and Type | Method and Description |
---|---|
Topic.CommInfrastructure |
getTopicCommInfrastructure()
gets the communication infrastructure type
|
void |
init()
Initialize the Cambria or MR Client
|
String |
toString() |
broadcast, getConsumerGroup, getConsumerInstance, getFetchLimit, getFetchTimeout, isAlive, isLocked, lock, offer, register, run, shutdown, snapshotTopicListeners, start, stop, unlock, unregister
getApiKey, getApiSecret, getRecentEvents, getServers, getTopic
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConsumerGroup, getConsumerInstance, getFetchLimit, getFetchTimeout
getApiKey, getApiSecret
offer
register, unregister
getRecentEvents, getServers, getTopic
isAlive, shutdown, start, stop
public SingleThreadedDmaapTopicSource(List<String> servers, String topic, String apiKey, String apiSecret, String userName, String password, String consumerGroup, String consumerInstance, int fetchTimeout, int fetchLimit) throws IllegalArgumentException
servers
- DMaaP serverstopic
- DMaaP Topic to be monitoredapiKey
- DMaaP API Key (optional)apiSecret
- DMaaP API Secret (optional)consumerGroup
- DMaaP Reader Consumer GroupconsumerInstance
- DMaaP Reader InstancefetchTimeout
- DMaaP fetch timeoutfetchLimit
- DMaaP fetch limitIllegalArgumentException
- An invalid parameter passed inpublic void init() throws Exception
init
in class SingleThreadedBusTopicSource
Exception
public Topic.CommInfrastructure getTopicCommInfrastructure()
getTopicCommInfrastructure
in interface Topic
public String toString()
toString
in class SingleThreadedBusTopicSource
Copyright © 2018. All rights reserved.