hudson.cli
Class CLI

java.lang.Object
  extended by hudson.cli.CLI

public class CLI
extends Object

CLI entry point to Hudson.

Author:
Kohsuke Kawaguchi

Constructor Summary
CLI(URL hudson)
           
CLI(URL hudson, ExecutorService exec)
           
 
Method Summary
 void close()
           
 int execute(List<String> args)
           
 int execute(List<String> args, InputStream stdin, OutputStream stdout, OutputStream stderr)
           
 int execute(String... args)
           
 boolean hasCommand(String name)
          Returns true if the named command exists.
static void main(String[] _args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLI

public CLI(URL hudson)
    throws IOException,
           InterruptedException
Throws:
IOException
InterruptedException

CLI

public CLI(URL hudson,
           ExecutorService exec)
    throws IOException,
           InterruptedException
Throws:
IOException
InterruptedException
Method Detail

close

public void close()
           throws IOException,
                  InterruptedException
Throws:
IOException
InterruptedException

execute

public int execute(List<String> args,
                   InputStream stdin,
                   OutputStream stdout,
                   OutputStream stderr)

execute

public int execute(List<String> args)

execute

public int execute(String... args)

hasCommand

public boolean hasCommand(String name)
Returns true if the named command exists.


main

public static void main(String[] _args)
                 throws Exception
Throws:
Exception


Copyright © 2004-2011 Hudson. All Rights Reserved.