org.tranche.clc
Class KillItem

java.lang.Object
  extended by org.tranche.clc.TrancheServerCommandLineClientItem
      extended by org.tranche.clc.KillItem
All Implemented Interfaces:
java.lang.Comparable

public class KillItem
extends TrancheServerCommandLineClientItem

Kill item class for killing the tranche server.

Author:
Jayson Falkner - jfalkner@umich.edu

Constructor Summary
KillItem(TrancheServer dfs, TrancheServerCommandLineClient dfsclc)
          Create a kill item for the CLC.
 
Method Summary
 void doAction(java.io.BufferedReader in, java.io.PrintStream out)
          Kill's the server by exiting the process.
 
Methods inherited from class org.tranche.clc.TrancheServerCommandLineClientItem
addAttribute, addAttribute, compareTo, getAttributes, getDescription, getName, getParameter, getTrancheServer, getTrancheServerCommandLineClient, preDoAction, splitCommandLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KillItem

public KillItem(TrancheServer dfs,
                TrancheServerCommandLineClient dfsclc)
Create a kill item for the CLC. Use only for emergency use.

Parameters:
dfs - the Tranche server received
dfsclc - the Tranche server command line client received
Method Detail

doAction

public void doAction(java.io.BufferedReader in,
                     java.io.PrintStream out)
Kill's the server by exiting the process.

Specified by:
doAction in class TrancheServerCommandLineClientItem
Parameters:
in - the buffered reader
out - the print stream


This code is free for use both commercially and non-commercially as stated in the project's license