org.apache.hadoop.util
Interface Tool

All Superinterfaces:
Configurable
All Known Implementing Classes:
CopyFiles, DFSAdmin, DFSck, FsShell, JobClient, MigrationTool, ToolBase

public interface Tool
extends Configurable

A tool interface that support generic options handling

Author:
hairong

Method Summary
 int run(String[] args)
          execute the command with the given arguments
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Method Detail

run

int run(String[] args)
        throws Exception
execute the command with the given arguments

Parameters:
args - command specific arguments
Returns:
exit code
Throws:
Exception


Copyright © 2006 The Apache Software Foundation