public static enum SoftwareProcess.ChildStartableMode extends java.lang.Enum<SoftwareProcess.ChildStartableMode>
Startable
children as part of the start (stop, restart) effector on this entity
(NB: restarts are currently not propagated to children in the default SoftwareProcess
due to the various semantics which may be desired; this may change, but if entities have specific requirements for restart,
developers should either subclass the SoftwareProcessDriverLifecycleEffectorTasks
and/or lean on sensors from the parent
Enum Constant and Description |
---|
BACKGROUND
start
Startable children concurrent with *driver* start (stop, restart),
but in background, ie disassociated from the effector task at this entity
(so that this entity can complete start/stop independent of children) |
BACKGROUND_LATE
as
BACKGROUND but isLate |
FOREGROUND
start (stop)
Startable children concurrent with *driver* start (stop),
in foreground, so invoking entity will wait for children to complete. |
FOREGROUND_LATE
as
FOREGROUND but isLate |
NONE
do nothing with
Startable children |
Modifier and Type | Field and Description |
---|---|
boolean |
isBackground
whether starting (stopping, restarting) children is backgrounded, so parent should not wait on them
|
boolean |
isDisabled
whether starting (stopping, restarting) children is disabled
|
boolean |
isLate
whether starting (stopping, restarting) children should be nested, so start occurs after the driver is started,
and stop before the driver is stopped (if false the children operations are concurrent with the parent),
(with restart always being done in parallel though this behaviour may change)
|
Modifier and Type | Method and Description |
---|---|
static SoftwareProcess.ChildStartableMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SoftwareProcess.ChildStartableMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoftwareProcess.ChildStartableMode NONE
Startable
childrenpublic static final SoftwareProcess.ChildStartableMode FOREGROUND
Startable
children concurrent with *driver* start (stop),
in foreground, so invoking entity will wait for children to complete.
if the child requires the parent to reach a particular state before acting, when running in foreground the parent should communicate its state using sensors which the child listens for. note that often sensors at the parent are not activated until it is started, so the usual sensors connected at an entity may not be available when running in this mode
public static final SoftwareProcess.ChildStartableMode FOREGROUND_LATE
FOREGROUND
but isLate
public static final SoftwareProcess.ChildStartableMode BACKGROUND
Startable
children concurrent with *driver* start (stop, restart),
but in background, ie disassociated from the effector task at this entity
(so that this entity can complete start/stop independent of children)public static final SoftwareProcess.ChildStartableMode BACKGROUND_LATE
BACKGROUND
but isLate
public final boolean isDisabled
public final boolean isBackground
public final boolean isLate
public static SoftwareProcess.ChildStartableMode[] values()
for (SoftwareProcess.ChildStartableMode c : SoftwareProcess.ChildStartableMode.values()) System.out.println(c);
public static SoftwareProcess.ChildStartableMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null