org.apache.flume.channel
Class DefaultChannelFactory
java.lang.Object
org.apache.flume.channel.DefaultChannelFactory
- All Implemented Interfaces:
- ChannelFactory
public class DefaultChannelFactory
- extends Object
- implements ChannelFactory
DefaultChannelFactory
public DefaultChannelFactory()
register
public boolean register(String name,
Class<? extends Channel> channelClass)
- Specified by:
register
in interface ChannelFactory
unregister
public boolean unregister(String name)
- Specified by:
unregister
in interface ChannelFactory
getChannelNames
public Set<String> getChannelNames()
- Specified by:
getChannelNames
in interface ChannelFactory
create
public Channel create(String name)
throws InstantiationException
- Specified by:
create
in interface ChannelFactory
- Throws:
InstantiationException
toString
public String toString()
- Overrides:
toString
in class Object
getChannelRegistry
public Map<String,Class<? extends Channel>> getChannelRegistry()
setChannelRegistry
public void setChannelRegistry(Map<String,Class<? extends Channel>> channelRegistry)
createFanout
public Channel createFanout(String chList,
Map<String,Channel> chMap)
throws InstantiationException
- Specified by:
createFanout
in interface ChannelFactory
- Throws:
InstantiationException
Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.