com.buildforge.services.common.dbo
Enum ResultDBO.Floating
java.lang.Object
java.lang.Enum<ResultDBO.Floating>
com.buildforge.services.common.dbo.ResultDBO.Floating
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ResultDBO.Floating>
- Enclosing class:
- ResultDBO
public static enum ResultDBO.Floating
- extends java.lang.Enum<ResultDBO.Floating>
Floating state is related to the implementation of the project sticky
flag. A step is floating, and therefore eligible to be stuck, if
- The step did not specify a selector to use, and
- The step has not already been stuck, and
- The project is marked as sticky
Otherwise, the step is floating. When the first floating step runs, it
and all the following steps that are floating are assigned to a server.
The floating state also interacts with .bset server. That
command will change the server for all steps except those that
explicitly specified a selector; that is, those that are FIXED
.
The values for this field have the following meanings:
Value | Meaning |
FIXED | The step specified a selector. |
STUCK | The step is already stuck. |
NO | The project is not marked sticky. |
YES | The step is floating. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
FIXED
public static final ResultDBO.Floating FIXED
STUCK
public static final ResultDBO.Floating STUCK
NO
public static final ResultDBO.Floating NO
YES
public static final ResultDBO.Floating YES
CLASS
public static final java.lang.Class<ResultDBO.Floating> CLASS
code
public final char code
values
public static final ResultDBO.Floating[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ResultDBO.Floating c : ResultDBO.Floating.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ResultDBO.Floating 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 name
fromDB
public static ResultDBO.Floating fromDB(char c)
fromObject
public static ResultDBO.Floating fromObject(java.lang.Object o)
throws APIException
- Throws:
APIException