frysk.util
Class ProcStopUtil

java.lang.Object
  extended by frysk.util.ProcStopUtil

public class ProcStopUtil
extends Object

Framework to be used for frysk utilities that, a) Accept pids, executable paths, core files & b) Require tasks to be stopped, Utilities must define a event.ProcEvent to execute.


Nested Class Summary
private static class ProcStopUtil.UtilAction
           
private static class ProcStopUtil.UtilEvent
           
 
Field Summary
private  String[] args
           
private static Log fine
           
private  CommandlineParser parser
           
 
Constructor Summary
ProcStopUtil(String utilName, String[] args, ProcEvent procEvent)
           
ProcStopUtil(String utilName, String[] args, ProcEvent procEvent, OptionGroup[] utilOptionGroups)
           
 
Method Summary
 void execute()
           
 void setUsage(String usage)
          Use to set the usage of utility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fine

private static final Log fine

args

private String[] args

parser

private CommandlineParser parser
Constructor Detail

ProcStopUtil

public ProcStopUtil(String utilName,
                    String[] args,
                    ProcEvent procEvent,
                    OptionGroup[] utilOptionGroups)

ProcStopUtil

public ProcStopUtil(String utilName,
                    String[] args,
                    ProcEvent procEvent)
Method Detail

setUsage

public void setUsage(String usage)
Use to set the usage of utility.

Parameters:
usage - - String that describes the usage of tool.

execute

public void execute()