org.apache.hadoop.chukwa.datacollection.agent
Class AdaptorFactory

java.lang.Object
  extended by org.apache.hadoop.chukwa.datacollection.agent.AdaptorFactory

public class AdaptorFactory
extends Object

Produces new unconfigured adaptors, given the class name of the appender type. Will try the name both in the default package, and then with 'org.apache.hadoop.chukwa.datacollection.adaptor' prepended.


Field Summary
static String PREPENDED_PACKAGE
           
 
Constructor Summary
AdaptorFactory()
           
 
Method Summary
static Adaptor createAdaptor(String className)
          Instantiate an adaptor that can be added by the ChukwaAgent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREPENDED_PACKAGE

public static final String PREPENDED_PACKAGE
See Also:
Constant Field Values
Constructor Detail

AdaptorFactory

public AdaptorFactory()
Method Detail

createAdaptor

public static Adaptor createAdaptor(String className)
Instantiate an adaptor that can be added by the ChukwaAgent

Parameters:
className - the name of the Adaptor class to instantiate
Returns:
an Adaptor of the specified type


Copyright © ${year} The Apache Software Foundation