Enum ProcessServerStatus
- java.lang.Object
-
- java.lang.Enum<ProcessServerStatus>
-
- com.redwood.scheduler.api.model.enumeration.ProcessServerStatus
-
- All Implemented Interfaces:
BaseSchedulerEnumeration<ProcessServerStatus,Character>,SchedulerEnumeration<ProcessServerStatus>,Serializable,Comparable<ProcessServerStatus>
public enum ProcessServerStatus extends Enum<ProcessServerStatus> implements SchedulerEnumeration<ProcessServerStatus>
The current or desired status of the ProcessServer. (Character Enumeration)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ConnectingA ProcessServer service is currently trying to connect to the remote system.CreatedThe ProcessServer has been created, but has never been started.ErrorThe ProcessServer cannot process processes because of some failure condition, possible a resource restriction.OverloadedThe ProcessServer is running above its load threshold.PartiallyRunningThe ProcessServer and at least one service (but not all services) are running.RunningThe ProcessServer is currently running normally.ShutdownThe ProcessServer is not currently running.ShutdownAbortThe ProcessServer is being shutdown with the Abort Flag.ShutdownImmediateThe ProcessServer is being shutdown immediately.ShutdownNormalThe ProcessServer is being shutdown normally.StartingThe ProcessServer is in the process of starting up.UnknownThe state of the ProcessServer is not currently known.UpdatingA ProcessServer service is currently trying to update the software on the remote system.
-
Field Summary
Fields Modifier and Type Field Description static charConnectingCodeThe char returned from Connecting.getCodeEx().static charCreatedCodeThe char returned from Created.getCodeEx().static charErrorCodeThe char returned from Error.getCodeEx().static charOverloadedCodeThe char returned from Overloaded.getCodeEx().static charPartiallyRunningCodeThe char returned from PartiallyRunning.getCodeEx().static charRunningCodeThe char returned from Running.getCodeEx().static charShutdownAbortCodeThe char returned from ShutdownAbort.getCodeEx().static charShutdownCodeThe char returned from Shutdown.getCodeEx().static charShutdownImmediateCodeThe char returned from ShutdownImmediate.getCodeEx().static charShutdownNormalCodeThe char returned from ShutdownNormal.getCodeEx().static charStartingCodeThe char returned from Starting.getCodeEx().static charUnknownCodeThe char returned from Unknown.getCodeEx().static charUpdatingCodeThe char returned from Updating.getCodeEx().
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetCodeEx()Get the code that is used to represent this enumeration in the database.CharactergetCodeExCharacter()Get the code that is used to represent this enumeration in the database.StringgetCodeExString()Get the code that is used to represent this enumeration in the database.CharactergetCodeExValue()Return the code for the enumeration item as the database type of this enumeration.StringgetDescriptionKey()Get the translation-key for the description that must be used to retrieve the locale-specific description of this enumeration.intgetPriority()StringgetTranslationEN()Get the English name of this enumeration.StringgetTranslationKey()Get the translation-key that must be used to retrieve the locale-specific name of this enumeration.static ProcessServerStatussafeValueOf(String value)Helper function to return the ProcessServerStatus represented byvalue.static ProcessServerStatusvalueOf(char code)Helper function to return the ProcessServerStatus represented by code.static ProcessServerStatusvalueOf(Character code)Helper function to return the ProcessServerStatus represented by code.static ProcessServerStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ProcessServerStatusvalueOfCode(String code)Helper function to return the ProcessServerStatus represented by code.static ProcessServerStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.redwood.scheduler.api.model.enumeration.BaseSchedulerEnumeration
name, ordinal
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Enum Constant Detail
-
Created
public static final ProcessServerStatus Created
The ProcessServer has been created, but has never been started. This is also the value that the DesiredStatus attribute is reset to (and hence the only value seen in the database).
-
Starting
public static final ProcessServerStatus Starting
The ProcessServer is in the process of starting up.
-
Running
public static final ProcessServerStatus Running
The ProcessServer is currently running normally.
-
Shutdown
public static final ProcessServerStatus Shutdown
The ProcessServer is not currently running.
-
ShutdownAbort
public static final ProcessServerStatus ShutdownAbort
The ProcessServer is being shutdown with the Abort Flag.
-
ShutdownImmediate
public static final ProcessServerStatus ShutdownImmediate
The ProcessServer is being shutdown immediately.
-
ShutdownNormal
public static final ProcessServerStatus ShutdownNormal
The ProcessServer is being shutdown normally.
-
Unknown
public static final ProcessServerStatus Unknown
The state of the ProcessServer is not currently known.
-
Connecting
public static final ProcessServerStatus Connecting
A ProcessServer service is currently trying to connect to the remote system.
-
Updating
public static final ProcessServerStatus Updating
A ProcessServer service is currently trying to update the software on the remote system.
-
PartiallyRunning
public static final ProcessServerStatus PartiallyRunning
The ProcessServer and at least one service (but not all services) are running.
-
Overloaded
public static final ProcessServerStatus Overloaded
The ProcessServer is running above its load threshold.
-
Error
public static final ProcessServerStatus Error
The ProcessServer cannot process processes because of some failure condition, possible a resource restriction.
-
-
Field Detail
-
CreatedCode
public static final char CreatedCode
The char returned from Created.getCodeEx().- See Also:
Created, Constant Field Values
-
StartingCode
public static final char StartingCode
The char returned from Starting.getCodeEx().- See Also:
Starting, Constant Field Values
-
RunningCode
public static final char RunningCode
The char returned from Running.getCodeEx().- See Also:
Running, Constant Field Values
-
ShutdownCode
public static final char ShutdownCode
The char returned from Shutdown.getCodeEx().- See Also:
Shutdown, Constant Field Values
-
ShutdownAbortCode
public static final char ShutdownAbortCode
The char returned from ShutdownAbort.getCodeEx().- See Also:
ShutdownAbort, Constant Field Values
-
ShutdownImmediateCode
public static final char ShutdownImmediateCode
The char returned from ShutdownImmediate.getCodeEx().- See Also:
ShutdownImmediate, Constant Field Values
-
ShutdownNormalCode
public static final char ShutdownNormalCode
The char returned from ShutdownNormal.getCodeEx().- See Also:
ShutdownNormal, Constant Field Values
-
UnknownCode
public static final char UnknownCode
The char returned from Unknown.getCodeEx().- See Also:
Unknown, Constant Field Values
-
ConnectingCode
public static final char ConnectingCode
The char returned from Connecting.getCodeEx().- See Also:
Connecting, Constant Field Values
-
UpdatingCode
public static final char UpdatingCode
The char returned from Updating.getCodeEx().- See Also:
Updating, Constant Field Values
-
PartiallyRunningCode
public static final char PartiallyRunningCode
The char returned from PartiallyRunning.getCodeEx().- See Also:
PartiallyRunning, Constant Field Values
-
OverloadedCode
public static final char OverloadedCode
The char returned from Overloaded.getCodeEx().- See Also:
Overloaded, Constant Field Values
-
ErrorCode
public static final char ErrorCode
The char returned from Error.getCodeEx().- See Also:
Error, Constant Field Values
-
-
Method Detail
-
values
public static ProcessServerStatus[] 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 (ProcessServerStatus c : ProcessServerStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessServerStatus valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getPriority
public int getPriority()
-
valueOfCode
public static ProcessServerStatus valueOfCode(String code)
Helper function to return the ProcessServerStatus represented by code. code must be a single character. If code is null, longer than one character, empty, or not a valid code then this method will return null.- Parameters:
code- A string with one character that is one of the codes for ProcessServerStatus- Returns:
- The ProcessServerStatus corresponding to code, or null, if code is null, longer than one character, or not a valid code
-
safeValueOf
public static ProcessServerStatus safeValueOf(String value)
Helper function to return the ProcessServerStatus represented byvalue. Ifvalueis null, or not a valid ProcessServerStatus enumeration then this method will return null.The main difference between this method and
valueOf(String), is that this method will return null when passed an invalidvalue,valueOf(String)will throw anIllegalArgumentException.- Parameters:
value- The string value that corresponds to the requested enumeration value- Returns:
- The ProcessServerStatus corresponding to
value, or null, ifvalueis null, or not a valid enumeration - See Also:
valueOf(String)
-
valueOf
public static ProcessServerStatus valueOf(Character code)
Helper function to return the ProcessServerStatus represented by code. If code is null, or not a valid ProcessServerStatus code then this method will return null.- Parameters:
code- Character that is one of the codes for HandlerAction- Returns:
- The ProcessServerStatus corresponding to code, or null, if code is null, or not a valid code
-
valueOf
public static ProcessServerStatus valueOf(char code)
Helper function to return the ProcessServerStatus represented by code. If code is not a valid ProcessServerStatus code then this method will return null.- Parameters:
code- char that is one of the codes for HandlerAction- Returns:
- The ProcessServerStatus corresponding to code, or null, if code is not a valid code
-
getCodeEx
public char getCodeEx()
Description copied from interface:SchedulerEnumerationGet the code that is used to represent this enumeration in the database.- Specified by:
getCodeExin interfaceSchedulerEnumeration<ProcessServerStatus>- Returns:
- the database code for the enumeration
-
getCodeExValue
public Character getCodeExValue()
Description copied from interface:BaseSchedulerEnumerationReturn the code for the enumeration item as the database type of this enumeration.- Specified by:
getCodeExValuein interfaceBaseSchedulerEnumeration<ProcessServerStatus,Character>- Returns:
- the enumeration code
-
getCodeExCharacter
public Character getCodeExCharacter()
Description copied from interface:SchedulerEnumerationGet the code that is used to represent this enumeration in the database.- Specified by:
getCodeExCharacterin interfaceSchedulerEnumeration<ProcessServerStatus>- Returns:
- the database code for the enumeration
-
getTranslationKey
public String getTranslationKey()
Description copied from interface:BaseSchedulerEnumerationGet the translation-key that must be used to retrieve the locale-specific name of this enumeration.- Specified by:
getTranslationKeyin interfaceBaseSchedulerEnumeration<ProcessServerStatus,Character>- Returns:
- the key.
-
getTranslationEN
public String getTranslationEN()
Description copied from interface:BaseSchedulerEnumerationGet the English name of this enumeration.- Specified by:
getTranslationENin interfaceBaseSchedulerEnumeration<ProcessServerStatus,Character>- Returns:
- the English name of this enumeration.
-
getDescriptionKey
public String getDescriptionKey()
Description copied from interface:BaseSchedulerEnumerationGet the translation-key for the description that must be used to retrieve the locale-specific description of this enumeration.- Specified by:
getDescriptionKeyin interfaceBaseSchedulerEnumeration<ProcessServerStatus,Character>- Returns:
- the key that can be passed to
SchedulerSession.translateField(String)to retrieve the translated description.
-
getCodeExString
public String getCodeExString()
Description copied from interface:SchedulerEnumerationGet the code that is used to represent this enumeration in the database.- Specified by:
getCodeExStringin interfaceSchedulerEnumeration<ProcessServerStatus>- Returns:
- the database code for the enumeration
-
-