@ForUseOnly public interface RunLevelAgent
RunLevel
.Modifier and Type | Field and Description |
---|---|
static SpecialistType<RunLevelAgent> |
TYPE
Agent providing information about the current FirstSpirit server
RunLevel . |
Modifier and Type | Method and Description |
---|---|
RunLevel |
getRunLevel()
Returns the current
RunLevel of the FirstSpirit server. |
RunLevel |
waitForRunLevel(RunLevel runLevel,
Duration maxWaitDuration)
Wait until the FirstSpirit server reaches a
RunLevel or a timeout occurs. |
static final SpecialistType<RunLevelAgent> TYPE
RunLevel
.
The agent's technical type can be used to request the agent from a SpecialistsBroker
.@NotNull RunLevel getRunLevel()
RunLevel
of the FirstSpirit server.@NotNull RunLevel waitForRunLevel(@NotNull RunLevel runLevel, @NotNull Duration maxWaitDuration) throws TimeoutException
RunLevel
or a timeout occurs.runLevel
- The minimum RunLevel
to wait for.maxWaitDuration
- The maximum Duration
to wait for the RunLevel
.RunLevel
which is at least the wanted RunLevel
and may be a higher
RunLevel
.TimeoutException
- Thrown if the RunLevel
was not reached within the maximum waiting time.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210