org.apache.flume.channel
Class AbstractChannelSelector
java.lang.Object
   org.apache.flume.channel.AbstractChannelSelector
org.apache.flume.channel.AbstractChannelSelector
- All Implemented Interfaces: 
- ChannelSelector, Configurable, NamedComponent
- Direct Known Subclasses: 
- MultiplexingChannelSelector, ReplicatingChannelSelector
- public abstract class AbstractChannelSelector 
- extends Object- implements ChannelSelector
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
 
AbstractChannelSelector
public AbstractChannelSelector()
getAllChannels
public List<Channel> getAllChannels()
- 
- Specified by:
- getAllChannelsin interface- ChannelSelector
 
- 
- Returns:
- the list of all channels that this selector is configured to work
 with.
 
setChannels
public void setChannels(List<Channel> channels)
- 
- Specified by:
- setChannelsin interface- ChannelSelector
 
- 
- Parameters:
- channels- all channels the selector could select from.
 
setName
public void setName(String name)
- 
- Specified by:
- setNamein interface- NamedComponent
 
- 
 
getName
public String getName()
- 
- Specified by:
- getNamein interface- NamedComponent
 
- 
 
getChannelNameMap
protected Map<String,Channel> getChannelNameMap()
- 
 
- 
- Returns:
- A map of name to channel instance.
 
getChannelListFromNames
protected List<Channel> getChannelListFromNames(String channels,
                                                Map<String,Channel> channelNameMap)
- Given a list of channel names as space delimited string,
 returns list of channels.
 
- 
 
- 
- Returns:
- List of Channels represented by the names.
 
Copyright © 2009-2015 Apache Software Foundation. All Rights Reserved.