
HasLifecycle interface@Deprecated public interface HardwareController
Note that these methods are invoked as part of a top to bottom tree walking of the components that make the modular structure of the enclosing subsystem.
| Modifier and Type | Method and Description |
|---|---|
default TreeWalkerDiag |
checkHardware()
Deprecated.
This is to be replaced with corresponding methods in the
HasLifecycle interface |
default void |
checkStarted()
Deprecated.
This is to be replaced with corresponding methods in the
HasLifecycle interface |
default void |
checkStopped()
Deprecated.
This is to be replaced with corresponding methods in the
HasLifecycle interface |
@Deprecated default TreeWalkerDiag checkHardware() throws HardwareException
HasLifecycle interfacePhaseState.INITIALIZING state.
If accessing the hardware is considered as having failed, this method
should throw an HardwareException. This will
interrupt the startup process and make the subsystem go to
OperationalState.ENGINEERING_FAULT. The startup process will be
resumed with a call to
Subsystem.completeInitialization() that will invoke
checkStarted()
If this method is considered having succeeded, the state remains to
OperationalState.ENGINEERING_OK
TreeWalkerDiag indicating if
this component has already performed hardware checking for its own
components (HANDLING_CHILDREN) or if the framework should do it
(GO)HardwareException - if any failure interacting with the hardware
occurs. The exception is caught by the framework.@Deprecated default void checkStarted() throws HardwareException
HasLifecycle interfaceSubsystem.completeInitialization()
If a failure in the way the hardware has been started is noticed, the
implementation should throw an HardwareException.
This will interrupt the startup process and make the subsystem remain in
OperationalState.ENGINEERING_FAULT. The startup process will be
resumed with a subsequent call to
Subsystem.completeInitialization()
HardwareException - if a failure is noticed in the way
hardware is started.@Deprecated default void checkStopped() throws HardwareException
HasLifecycle interfaceAgent.shutdown() or
Subsystem.stop(long). At the time it is called, the
enclosing subsystem is in PhaseState.CLOSING phase
If a failure in stopping hardware is noticed, the implementation should
throw an HardwareException. This will interrupt the
shutdown process
If no HardwareException is thrown, the shutdown process will
resume.
HardwareException - if a failure occurs while stopping
the hardware.Copyright © 2017 LSST. All rights reserved.