public class OSService extends Object
This class is provided for information purposes only. Interpretation of the meaning of services is platform-dependent.
| Modifier and Type | Class and Description |
|---|---|
static class |
OSService.State
Service Execution States
|
| Constructor and Description |
|---|
OSService(String name,
int processID,
OSService.State state)
Instantiate a new
OSService. |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Getter for the field
name. |
int |
getProcessID()
Getter for the field
processID. |
OSService.State |
getState()
Getter for the field
state. |
public OSService(String name, int processID, OSService.State state)
OSService.name - The service name.processID - The process ID if running, or 0 if stopped.state - The service OSService.State.public String getName()
Getter for the field name.
public int getProcessID()
Getter for the field processID.
public OSService.State getState()
Getter for the field state.
Copyright © 2019. All rights reserved.