Rio Project 4.2 API Documentation



org.rioproject.tools.cli
Class CLI.StopHandler

java.lang.Object
  extended by org.rioproject.tools.cli.CLI.StopHandler
All Implemented Interfaces:
OptionHandler
Enclosing class:
CLI

public static class CLI.StopHandler
extends Object
implements OptionHandler

Handle the destroy command


Constructor Summary
CLI.StopHandler()
           
 
Method Summary
 void destroyAll(ServiceItem[] items, PrintStream out)
           
 void destroyService(Object proxy, String name, PrintStream out)
           
 void destroyService(ServiceItem item, PrintStream out)
           
 String getUsage()
          Get the usage of the command
 String process(String input, BufferedReader br, PrintStream out)
          Process the option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLI.StopHandler

public CLI.StopHandler()
Method Detail

process

public String process(String input,
                      BufferedReader br,
                      PrintStream out)
Description copied from interface: OptionHandler
Process the option.

Specified by:
process in interface OptionHandler
Parameters:
input - Parameters for the option, may be null
br - An optional BufferdReader, used if the option requires input. if this is null, the option handler may create a BufferedReader to handle the input
out - The PrintStream to use if the option prints results or choices for the user. Must not be null
Returns:
The result of the action.

destroyAll

public void destroyAll(ServiceItem[] items,
                       PrintStream out)

destroyService

public void destroyService(ServiceItem item,
                           PrintStream out)

destroyService

public void destroyService(Object proxy,
                           String name,
                           PrintStream out)

getUsage

public String getUsage()
Description copied from interface: OptionHandler
Get the usage of the command

Specified by:
getUsage in interface OptionHandler
Returns:
Command usage

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.