Package com.viam.robot.v1
Enum Class Robot.ModuleStatus.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,Serializable,Comparable<Robot.ModuleStatus.State>,Constable
- Enclosing class:
Robot.ModuleStatus
public static enum Robot.ModuleStatus.State
extends Enum<Robot.ModuleStatus.State>
implements com.google.protobuf.Internal.EnumLite
Protobuf enum
viam.robot.v1.ModuleStatus.State-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionmodule process is shutting down, either because the module is being removed from the machine or because it is restarting during a reconfigure.module is configured but viam-server has not yet attempted to start it (because e.g.module has sent a Ready response, registered its models, and is running transitions -> state_unhealthy on bad exitmodule process has been spawned and viam-server is waiting for it to send a Ready response and register its models transitions -> state_ready on successmodule failed to start, exited unexpectedly, or is being restarted after a crash.state is unknown or has not been set yet -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intmodule process is shutting down, either because the module is being removed from the machine or because it is restarting during a reconfigure.static final intmodule is configured but viam-server has not yet attempted to start it (because e.g.static final intmodule has sent a Ready response, registered its models, and is running transitions -> state_unhealthy on bad exitstatic final intmodule process has been spawned and viam-server is waiting for it to send a Ready response and register its models transitions -> state_ready on successstatic final intmodule failed to start, exited unexpectedly, or is being restarted after a crash.static final intstate is unknown or has not been set yet -
Method Summary
Modifier and TypeMethodDescriptionstatic Robot.ModuleStatus.StateforNumber(int value) final intstatic com.google.protobuf.Internal.EnumLiteMap<Robot.ModuleStatus.State> static com.google.protobuf.Internal.EnumVerifierstatic Robot.ModuleStatus.StatevalueOf(int value) Deprecated.static Robot.ModuleStatus.StateReturns the enum constant of this class with the specified name.static Robot.ModuleStatus.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
state is unknown or has not been set yet
STATE_UNSPECIFIED = 0; -
STATE_PENDING
module is configured but viam-server has not yet attempted to start it (because e.g. a required package is still downloading) transitions -> state_starting after pre-setup completes
STATE_PENDING = 1; -
STATE_STARTING
module process has been spawned and viam-server is waiting for it to send a Ready response and register its models transitions -> state_ready on success
STATE_STARTING = 2; -
STATE_READY
module has sent a Ready response, registered its models, and is running transitions -> state_unhealthy on bad exit
STATE_READY = 3; -
STATE_UNHEALTHY
module failed to start, exited unexpectedly, or is being restarted after a crash. any failure in any other state goes to this state
STATE_UNHEALTHY = 4; -
STATE_CLOSING
module process is shutting down, either because the module is being removed from the machine or because it is restarting during a reconfigure. on removal the module's status stops being tracked once shutdown completes; on restart it transitions -> state_starting
STATE_CLOSING = 5; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEstate is unknown or has not been set yet
STATE_UNSPECIFIED = 0;- See Also:
-
STATE_PENDING_VALUE
public static final int STATE_PENDING_VALUEmodule is configured but viam-server has not yet attempted to start it (because e.g. a required package is still downloading) transitions -> state_starting after pre-setup completes
STATE_PENDING = 1;- See Also:
-
STATE_STARTING_VALUE
public static final int STATE_STARTING_VALUEmodule process has been spawned and viam-server is waiting for it to send a Ready response and register its models transitions -> state_ready on success
STATE_STARTING = 2;- See Also:
-
STATE_READY_VALUE
public static final int STATE_READY_VALUEmodule has sent a Ready response, registered its models, and is running transitions -> state_unhealthy on bad exit
STATE_READY = 3;- See Also:
-
STATE_UNHEALTHY_VALUE
public static final int STATE_UNHEALTHY_VALUEmodule failed to start, exited unexpectedly, or is being restarted after a crash. any failure in any other state goes to this state
STATE_UNHEALTHY = 4;- See Also:
-
STATE_CLOSING_VALUE
public static final int STATE_CLOSING_VALUEmodule process is shutting down, either because the module is being removed from the machine or because it is restarting during a reconfigure. on removal the module's status stops being tracked once shutdown completes; on restart it transitions -> state_starting
STATE_CLOSING = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Robot.ModuleStatus.State> internalGetValueMap() -
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-