public enum ServerStatus extends java.lang.Enum<ServerStatus>
enumeration lists the possible statuses of an instance in an SAP CC system in the system landscape.
The possible values are:
On: the system instance is up and runningWaiting: the system instance is waiting to be enabledOff: the system instance is stoppedStarting: the system instance is starting (next status is On)Stopping: the system instance is stopping (next status is Off)Standby: the system instance is in standbyGoingIntoStandby: the system instance is going into standby (next status is Standby)InstanceStatusThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:simpleType name="ServerStatusType">
<xs:restriction base="xs:string">
<xs:enumeration value="off"/>
<xs:enumeration value="waiting"/>
<xs:enumeration value="on"/>
<xs:enumeration value="starting"/>
<xs:enumeration value="stopping"/>
<xs:enumeration value="standby"/>
<xs:enumeration value="goingIntoStandby"/>
</xs:restriction>
</xs:simpleType>
| Enum Constant and Description |
|---|
goingIntoStandby |
off |
on |
standby |
starting |
stopping |
waiting |
| Modifier and Type | Field and Description |
|---|---|
static int |
SERVER_STATUS_COUNT |
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
java.lang.String |
getLabel() |
static ServerStatus |
getServerStatusById(int id) |
static ServerStatus |
getServerStatusByName(java.lang.String name) |
boolean |
isRunning() |
static ServerStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServerStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerStatus off
public static final ServerStatus waiting
public static final ServerStatus on
public static final ServerStatus starting
public static final ServerStatus stopping
public static final ServerStatus standby
public static final ServerStatus goingIntoStandby
public static final int SERVER_STATUS_COUNT
public static ServerStatus[] values()
for (ServerStatus c : ServerStatus.values()) System.out.println(c);
public static ServerStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getId()
public boolean isRunning()
public java.lang.String getLabel()
public static final ServerStatus getServerStatusById(int id)
public static final ServerStatus getServerStatusByName(java.lang.String name)