Enum ServerState
- java.lang.Object
-
- java.lang.Enum<ServerState>
-
- de.desy.mst.libs.framework.mstapp.server.ServerState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ServerState>
public enum ServerState extends java.lang.Enum<ServerState>
- Author:
- K. Hinsch -mst1-
-
-
Field Summary
Fields Modifier and Type Field Description java.awt.Color
foreColor
java.lang.String
langerName
Status des Servers
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerState
getDefaultState()
Nimmt das Framework falls nicht anders gesetzt.java.awt.Color
getForeColor()
java.lang.String
getLangenNamen()
static ServerState
getServerState()
ServerState dieser Applikation, nie nullstatic void
setServerState(ServerState serverState)
ServerState dieser Applikation @throws NullPointerExceptionstatic ServerState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ServerState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDL
public static final ServerState IDL
Idle: Nr 0
-
UPDATE
public static final ServerState UPDATE
Update: Nr 1
-
OPERATING
public static final ServerState OPERATING
Operating: Nr 2
-
BUSY
public static final ServerState BUSY
Busy: Nr 3
-
-
Method Detail
-
values
public static ServerState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServerState c : ServerState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getServerState
public static final ServerState getServerState()
ServerState dieser Applikation, nie null
-
setServerState
public static final void setServerState(ServerState serverState)
ServerState dieser Applikation @throws NullPointerException
-
getDefaultState
public static ServerState getDefaultState()
Nimmt das Framework falls nicht anders gesetzt.
-
getLangenNamen
public final java.lang.String getLangenNamen()
-
getForeColor
public final java.awt.Color getForeColor()
-
-