public static enum ActiveMQServer.SERVER_STATE extends Enum<ActiveMQServer.SERVER_STATE>
Enum Constant and Description |
---|
STARTED
server is started.
|
STARTING
start() has been called but components are not initialized.
|
STOPPED
Stopped: either stop() has been called and has finished running, or start() has never been
called.
|
STOPPING
stop() was called but has not finished yet.
|
Modifier and Type | Method and Description |
---|---|
static ActiveMQServer.SERVER_STATE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ActiveMQServer.SERVER_STATE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActiveMQServer.SERVER_STATE STARTING
STARTED
and
STOPPED
, so that methods testing for these two values such as
ServiceComponent.stop(boolean)
worked as intended.public static final ActiveMQServer.SERVER_STATE STARTED
server.isStarted()
returns true
, and all assumptions
about it hold.public static final ActiveMQServer.SERVER_STATE STOPPING
public static final ActiveMQServer.SERVER_STATE STOPPED
public static ActiveMQServer.SERVER_STATE[] values()
for (ActiveMQServer.SERVER_STATE c : ActiveMQServer.SERVER_STATE.values()) System.out.println(c);
public static ActiveMQServer.SERVER_STATE valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021 JBoss by Red Hat. All rights reserved.