Class SumStateMessage
java.lang.Object
io.openems.backend.alerting.Message
io.openems.backend.alerting.message.SumStateMessage
- All Implemented Interfaces:
Comparable<Message>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSumStateMessage
(String edgeId, Level sumState, ZonedDateTime stateSince) SumStateMessage
(String edgeId, Level sumState, ZonedDateTime stateSince, List<SumStateAlertingSetting> recipients) -
Method Summary
Modifier and TypeMethodDescriptionGet the list of settings, which are closest to be sent.Returns the time stamp at which this message is supposed to be sent.com.google.gson.JsonObject
Get attributes as JsonObject for Mailer.boolean
isEmpty()
void
setSumState
(Level sumState, ZonedDateTime now) toString()
boolean
update()
Update and prepare message for a next schedule.
-
Field Details
-
TEMPLATE
- See Also:
-
-
Constructor Details
-
SumStateMessage
public SumStateMessage(String edgeId, Level sumState, ZonedDateTime stateSince, List<SumStateAlertingSetting> recipients) -
SumStateMessage
-
-
Method Details
-
getSumState
-
getStateSince
-
getNotifyStamp
Description copied from class:Message
Returns the time stamp at which this message is supposed to be sent.- Specified by:
getNotifyStamp
in classMessage
- Returns:
ZonedDateTime
at which to send this message
-
setSumState
-
getEdgeId
-
getCurrentRecipients
Get the list of settings, which are closest to be sent.- Returns:
List
of recipients
-
getParams
public com.google.gson.JsonObject getParams()Description copied from class:Message
Get attributes as JsonObject for Mailer. -
toString
-
update
public boolean update()Update and prepare message for a next schedule.- Returns:
- true if should be rescheduled;
-
isEmpty
public boolean isEmpty()
-