public interface OffloadingTopicManager
OffloadingTopicManager
manages instance blacklisting / whitelisting for specific topics
. Furthermore, it provides a
view of the instances grouped by topic.
Clients outside offloading must not use this interface.Modifier and Type | Method and Description |
---|---|
void |
configureInstance(String slingID,
Map<TopicConfigurationAction,Set<String>> configuration)
Configures the topics an instance will process using a configuration map structured in the following way:
|
Set<String> |
getBlacklistedTopics(InstanceDescription instance)
Retrieves the blacklisted topics from an instance.
|
Map<String,TopicInstancesHolder> |
getInstances()
Provides a
Map view of all the instances from the topology . |
Set<String> |
getRegisteredTopics(InstanceDescription instance)
Retrieves the topics registered for processing from an instance.
|
Set<String> |
getWhitelistedTopics(InstanceDescription instance)
Retrieves the whitelisted topics from an instance.
|
Map<String,TopicInstancesHolder> getInstances()
Map
view of all the instances from the topology
.void configureInstance(String slingID, Map<TopicConfigurationAction,Set<String>> configuration)
Configures the topics an instance will process using a configuration map structured in the following way:
key
- one of: exclusive
, enable
, disable
(for more details see
TopicConfigurationAction
value
- a set of topic strings
The topics marked as exclusive
will be added to the exclusive whitelist. The topics marked otherwise will just be added /
removed from the blacklist.
slingID
- the slingID
of the instance to be configuredconfiguration
- a configuration map.OffloadingException
- if the configuration operation failsSet<String> getRegisteredTopics(InstanceDescription instance)
instance
- the instanceSet<String> getWhitelistedTopics(InstanceDescription instance)
instance
- the instanceSet<String> getBlacklistedTopics(InstanceDescription instance)
instance
- the instance"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"