public interface DmaapTopicSourceFactory
Modifier and Type | Method and Description |
---|---|
DmaapTopicSource |
build(List<String> servers,
String topic)
Instantiates a new DMAAP Topic Source
|
DmaapTopicSource |
build(List<String> servers,
String topic,
String apiKey,
String apiSecret)
Instantiates a new DMAAP Topic Source
|
DmaapTopicSource |
build(List<String> servers,
String topic,
String apiKey,
String apiSecret,
String userName,
String password,
String consumerGroup,
String consumerInstance,
int fetchTimeout,
int fetchLimit,
boolean managed)
Instantiates a new DMAAP Topic Source
|
List<DmaapTopicSource> |
build(Properties properties)
Creates an DMAAP Topic Source based on properties files
|
void |
destroy()
Destroys all DMAAP Topic Sources
|
void |
destroy(String topic)
Destroys an DMAAP Topic Source based on a topic
|
DmaapTopicSource |
get(String topic)
gets an DMAAP Topic Source based on topic name
|
List<DmaapTopicSource> |
inventory()
Provides a snapshot of the DMAAP Topic Sources
|
List<DmaapTopicSource> build(Properties properties) throws IllegalArgumentException
properties
- Properties containing initialization valuesIllegalArgumentException
- if invalid parameters are presentDmaapTopicSource build(List<String> servers, String topic, String apiKey, String apiSecret, String userName, String password, String consumerGroup, String consumerInstance, int fetchTimeout, int fetchLimit, boolean managed) throws IllegalArgumentException
servers
- list of serverstopic
- topic nameapiKey
- API KeyapiSecret
- API SecretuserName
- user namepassword
- passwordconsumerGroup
- Consumer GroupconsumerInstance
- Consumer InstancefetchTimeout
- Read Fetch TimeoutfetchLimit
- Fetch Limitmanaged
- is this endpoind managed?IllegalArgumentException
- if invalid parameters are presentDmaapTopicSource build(List<String> servers, String topic, String apiKey, String apiSecret) throws IllegalArgumentException
servers
- list of serverstopic
- topic nameapiKey
- API KeyapiSecret
- API SecretIllegalArgumentException
- if invalid parameters are presentDmaapTopicSource build(List<String> servers, String topic) throws IllegalArgumentException
uebTopicReaderType
- Implementation typeservers
- list of serverstopic
- topic nameIllegalArgumentException
- if invalid parameters are presentvoid destroy(String topic)
topic
- topic nameIllegalArgumentException
- if invalid parameters are presentvoid destroy()
DmaapTopicSource get(String topic) throws IllegalArgumentException, IllegalStateException
topic
- the topic nameIllegalArgumentException
- if an invalid topic is providedIllegalStateException
- if the DMAAP Topic Source is
an incorrect stateList<DmaapTopicSource> inventory()
Copyright © 2018. All rights reserved.