Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.stop
Class Main  view Main download Main.java

java.lang.Object
  extended byorg.mortbay.stop.Main

public class Main
extends java.lang.Object

Main stop class. This class is intended to be the main class listed in the MANIFEST.MF of the stop.jar archive. It allows an application started with the command "java -jar start.jar" to be stopped. Programs started with start.jar may be stopped with the stop.jar, which connects via a local port to stop the server. The default port can be set with the STOP.PORT system property (a port of < 0 disables the stop mechanism). If the STOP.KEY system property is set, then a random key is generated and written to stdout. This key must be passed to the stop.jar.

Version:
$Revision: 1.3 $

Field Summary
private  java.lang.String _config
           
private  boolean _debug
           
private  java.lang.String _key
           
private  int _port
           
 
Constructor Summary
Main()
           
 
Method Summary
static void main(java.lang.String[] args)
           
(package private)  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_debug

private boolean _debug

_config

private java.lang.String _config

_port

private int _port

_key

private java.lang.String _key
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)

stop

void stop()