Hello,

I have a custom chukwa adapter that accepts two additional parameters when 
added to agent.

I need to use this adapter with DirTailingAdapter and need to pass the 
additional parameters. The DirTailingAdapter complains about these additional 
parameters. Is there any way to do this or I need to develop custom 
DirTailingAdapter?

Command will be something like

Add DirTailingAdapter <data type> <folder name> <pattern> <param 1> <param 2> 
<adapter> 0

Looking at the code, it supports only 2 or 3 arguments.

      public String parseArgs(String status) {

            String[] args = status.split(" ");

            if (args.length == 2) {
                  baseDir = new File(args[0]);
                  fileFilter = FileFilterUtils.trueFileFilter();
                  adaptorName = args[1];
            } else if (args.length == 3) {
                  baseDir = new File(args[0]);
                  fileFilter = new WildcardFileFilter(args[1]);
                  adaptorName = args[2];
            } else {
                  log.warn("bad syntax in DirTailingAdaptor args");
                  return null;
            }

Thanks
Jaydeep


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

Reply via email to