org.tanukisoftware.wrapper

Class WrapperWin32Service


public class WrapperWin32Service
extends Object

A WrapperWin32Service contains information about an individual service registered with the current system.
Version:
$Revision: 1.3 $
Author:
Leif Mortenson

Field Summary

static int
SERVICE_STATE_CONTINUE_PENDING
static int
SERVICE_STATE_PAUSED
static int
SERVICE_STATE_PAUSE_PENDING
static int
SERVICE_STATE_RUNNING
static int
SERVICE_STATE_START_PENDING
static int
SERVICE_STATE_STOPPED
static int
SERVICE_STATE_STOP_PENDING

Method Summary

String
getDisplayName()
Returns the display name of the service.
int
getExitCode()
Returns the exit of the service, or 0 if it is still running.
String
getName()
Returns the name of the service.
int
getServiceState()
Returns the last known state of the service.
String
getServiceStateName()
Returns the last known state name of the service.
String
toString()
Returns a string representation of the user.

Field Details

SERVICE_STATE_CONTINUE_PENDING

public static final int SERVICE_STATE_CONTINUE_PENDING
Field Value:
5

SERVICE_STATE_PAUSED

public static final int SERVICE_STATE_PAUSED
Field Value:
7

SERVICE_STATE_PAUSE_PENDING

public static final int SERVICE_STATE_PAUSE_PENDING
Field Value:
6

SERVICE_STATE_RUNNING

public static final int SERVICE_STATE_RUNNING
Field Value:
4

SERVICE_STATE_START_PENDING

public static final int SERVICE_STATE_START_PENDING
Field Value:
2

SERVICE_STATE_STOPPED

public static final int SERVICE_STATE_STOPPED
Field Value:
1

SERVICE_STATE_STOP_PENDING

public static final int SERVICE_STATE_STOP_PENDING
Field Value:
3

Method Details

getDisplayName

public String getDisplayName()
Returns the display name of the service.
Returns:
The display name of the service.

getExitCode

public int getExitCode()
Returns the exit of the service, or 0 if it is still running.
Returns:
The exit of the service.

getName

public String getName()
Returns the name of the service.
Returns:
The name of the service.

getServiceState

public int getServiceState()
Returns the last known state of the service.
Returns:
The last known state of the service.

getServiceStateName

public String getServiceStateName()
Returns the last known state name of the service.
Returns:
The last known state name of the service.

toString

public String toString()
Returns a string representation of the user.
Returns:
A string representation of the user.

Copyright 1999, 2006 Tanuki Software Inc., All Rights Reserved.