org.mortbay.jetty.win32

Class Service


public class Service
extends java.lang.Object

Run Jetty as a Win32 service. System.out and System.err output can be controlled with java properties: SERVICE_OUT and SERVICE_ERR. The log file can be controlled with the property SERVICE_LOG_FILE Derived from SCMEventManager.java by Bill Giel/KC Multimedia and Design Group, Inc.,

Example

 jettysvc -c -DSERVICE_OUT="./logs/jettysvc.out" \\
             -DSERVICE_ERR="./logs/jettysvc.err" \\
             Jetty.xml wrkdir=$JETTY_HOME
 
Version:
$Revision: 1.8 $
Author:
Greg Wilkins (gregw)

Field Summary

static int
SERVICE_CONTROL_CONTINUE
static int
SERVICE_CONTROL_INTERROGATE
static int
SERVICE_CONTROL_PARAMCHANGE
static int
SERVICE_CONTROL_PAUSE
static int
SERVICE_CONTROL_SHUTDOWN
static int
SERVICE_CONTROL_STOP

Method Summary

static void
dispatchSCMEvent(int eventID)
static void
main(String[] arg)
static void
stopAndDestroy(String[] arg)

Field Details

SERVICE_CONTROL_CONTINUE

public static final int SERVICE_CONTROL_CONTINUE
Field Value:
3

SERVICE_CONTROL_INTERROGATE

public static final int SERVICE_CONTROL_INTERROGATE
Field Value:
4

SERVICE_CONTROL_PARAMCHANGE

public static final int SERVICE_CONTROL_PARAMCHANGE
Field Value:
6

SERVICE_CONTROL_PAUSE

public static final int SERVICE_CONTROL_PAUSE
Field Value:
2

SERVICE_CONTROL_SHUTDOWN

public static final int SERVICE_CONTROL_SHUTDOWN
Field Value:
5

SERVICE_CONTROL_STOP

public static final int SERVICE_CONTROL_STOP
Field Value:
1

Method Details

dispatchSCMEvent

public static void dispatchSCMEvent(int eventID)

main

public static void main(String[] arg)

stopAndDestroy

public static void stopAndDestroy(String[] arg)

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.