public interface Startable
Entity
that can be started and stopped.
The Effector
s are START
, STOP
and RESTART
. The start effector takes
a collection of Location
objects as an argument which will cause the entity to be started or stopped in all
these locations. The other effectors will stop or restart the entity in the location(s) it is already running in.Modifier and Type | Interface and Description |
---|---|
static class |
Startable.RestartEffectorBody |
static class |
Startable.StartEffectorBody |
static class |
Startable.StopEffectorBody |
Modifier and Type | Field and Description |
---|---|
static Effector<java.lang.Void> |
RESTART |
static AttributeSensor<java.lang.Boolean> |
SERVICE_UP |
static Effector<java.lang.Void> |
START |
static Effector<java.lang.Void> |
STOP |
static final AttributeSensor<java.lang.Boolean> SERVICE_UP
static final Effector<java.lang.Void> START
static final Effector<java.lang.Void> STOP
static final Effector<java.lang.Void> RESTART
void start(java.util.Collection<? extends Location> locations)
void stop()
void restart()