
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocalPersistenceFilePresent()
Tells whether a local persistence file exists on the local filesystem for
that agent.
|
boolean |
load()
Reads the persisted data local file and applies the contained value to
the
Persist annotated fields. |
boolean |
persistNow()
Persists the annotated fields values in a local file.
|
default void |
preBuild() |
void |
preInit() |
void |
preStart()
Called from the enclosing
Subsystem when
HasLifecycle.start() has been called. |
default void |
preStop() |
void |
setAutomatic(boolean loadAtStartup,
boolean persistAtShutdown)
Customize the behavior of the local persistence service.
|
void |
shutdownNow()
Called from the enclosing
Subsystem when
Agent.shutdown() has been called. |
public void preInit()
public void preStart()
Subsystem when
HasLifecycle.start() has been called.
The preceding lifecycle step is HasLifecycle.postInit()
The following lifecycle step is HasLifecycle.start()
At the time it is called :
PhaseState is
INITIALIZING
connection with the messaging layer is effective, the enclosing
subsystem has started StatusHeartBeat
publication
public void shutdownNow()
HasLifecycleSubsystem when
Agent.shutdown() has been called. At the time it
is called :
PhaseState is CLOSING.
HardwareController.checkStopped() has
been called
public void setAutomatic(boolean loadAtStartup,
boolean persistAtShutdown)
loadAtStartup - true if the persistence file should be loaded
automatically at startuppersistAtShutdown - true if the persistence file should be written
autmatically at shutdown@Command(description="writes persistent data in local file") public boolean persistNow()
@Command(description="loads persistent data from local file") public boolean load()
Persist annotated fields.
Inconsistent data are silently ignored@Command(description="returns true if a local persistence file is present, false otherwise.") public boolean isLocalPersistenceFilePresent()
public void preBuild()
public void preStop()
Copyright © 2017 LSST. All rights reserved.