|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.plugin.desktop.server.ServerState
public class ServerState
This class contains constants and methods for representing the current state of a server in an SAP BusinessObjects Enterprise deployment.
IServerBase.getState()| Field Summary | |
|---|---|
static ServerState |
INVALID
Specifies that the server is currently in an invalid state due to a configuration error. |
static ServerState |
RUNNING
Specifies that the server is currently running. |
static ServerState |
STOPPED
Specifies that the server is currently stopped. |
static ServerState |
WAITING_FOR_RESOURCES
Specifies that the server is currently waiting for resources. |
| Method Summary | |
|---|---|
static ServerState |
fromInteger(int i)
Returns a server state object that corresponds to the specified integer. |
static ServerState |
fromString(java.lang.String s)
Returns a server state object that corresponds to the specified string. |
int |
toInteger()
Returns the server state as an integer. |
java.lang.String |
toString()
Returns the server state as a string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ServerState STOPPED
public static final ServerState RUNNING
public static final ServerState WAITING_FOR_RESOURCES
public static final ServerState INVALID
| Method Detail |
|---|
public java.lang.String toString()
Running | The server is currently running. |
Stopped | The server is currently stopped. |
WaitingForResources | The server is currently waiting for resources. This can occur if the Central Management Server is unavailable. |
Invalid | The server is currently in an invalid state due to a configuration error. |
toString in class java.lang.Objectpublic static ServerState fromString(java.lang.String s)
s - the server state string. Possible values are:
Running | The server is currently running. |
Stopped | The server is currently stopped. |
WaitingForResources | The server is currently waiting for resources. This can occur if the Central Management Server is unavailable. |
Invalid | The server is currently in an invalid state due to a configuration error. |
If you specify a value that is not in this table, this method returns a ServerState object
with the Invalid state.
public static ServerState fromInteger(int i)
i - the server state integer. Possible values are:
0 | The server is currently stopped. |
1 | The server is currently running. |
2 | The server is currently waiting for resources. This can occur if the Central Management Server is unavailable. |
| (any other value) | The server is currently in an invalid state due to a configuration error. |
If you specify a value that is not in this table, this method returns a ServerState object
with the Invalid state.
public int toInteger()
-1 | The server is currently in an invalid state due to a configuration error. |
0 | The server is currently stopped. |
1 | The server is currently running. |
2 | The server is currently waiting for resources. This can occur if the Central Management Server is unavailable. |
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||