Enum Class ActiveMQServer.SERVER_STATE
java.lang.Object
java.lang.Enum<ActiveMQServer.SERVER_STATE>
org.apache.activemq.artemis.core.server.ActiveMQServer.SERVER_STATE
- All Implemented Interfaces:
Serializable,Comparable<ActiveMQServer.SERVER_STATE>,Constable
- Enclosing interface:
- ActiveMQServer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionserver is started.ActiveMQComponent.start()has been called but components are not initialized.Stopped: eitherActiveMQComponent.stop()has been called and has finished running, orActiveMQComponent.start()has never been called.ActiveMQComponent.stop()was called but has not finished yet. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActiveMQServer.SERVER_STATEReturns the enum constant of this class with the specified name.static ActiveMQServer.SERVER_STATE[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTING
ActiveMQComponent.start()has been called but components are not initialized. This is an intermediate state betweenSTARTEDandSTOPPEDso that methods testing for these two values such asServiceComponent.stop(boolean)work as intended. -
STARTED
server is started.ActiveMQComponent.isStarted()returnstrueand all assumptions about it hold. -
STOPPING
ActiveMQComponent.stop()was called but has not finished yet. Meant to avoids starting components whileActiveMQComponent.stop()is executing. -
STOPPED
Stopped: eitherActiveMQComponent.stop()has been called and has finished running, orActiveMQComponent.start()has never been called.
-
-
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
-