
public class Alarm extends Object implements HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected String |
description
Data fields.
|
protected String |
name |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
First lifecycle hook.
|
void |
clearState()
Deprecated.
|
Alert |
getAlert(AlertState alertState,
AlertState previousAlertState)
Get the Alert to be raised at the given AlertState.
|
String |
getName() |
void |
init()
Called from the enclosing
Subsystem at initialization
phase. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostBuild, postInit, postShutdown, postStart, shutdown, startprotected String description
@LookupName protected String name
public Alarm()
public Alarm(Alert alert)
public void build()
HasLifecyclebuild in interface HasLifecyclepublic void init()
HasLifecycleSubsystem at initialization
phase.
This method is called before the children components of this
object have their init method called.
At the time it is called, connection to the messaging layer is not yet
done, so there should be no attempt to send messages in the body of
this method. Configuration for message listening can nevertheless be
done here, such as adding MessageListener
objects.
It is unnecessary to call super.init()
init in interface HasLifecyclepublic Alert getAlert(AlertState alertState, AlertState previousAlertState)
alertState - The State at which the Alert will be raised.previousAlertState - The previous state in this state transition.@Deprecated public void clearState()
public String getName()
Copyright © 2021 LSST. All rights reserved.