Class OfflineEdgeMessage
- java.lang.Object
-
- io.openems.backend.alerting.Message
-
- io.openems.backend.alerting.message.OfflineEdgeMessage
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TEMPLATE
-
Constructor Summary
Constructors Constructor Description OfflineEdgeMessage(java.lang.String edgeId, java.time.ZonedDateTime offlineAt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRecipient(AlertingSetting setting)
Add a recipient with its delay to the message.java.util.List<AlertingSetting>
getCurrentRecipients()
java.lang.String
getEdgeId()
int
getMessageCount()
java.time.ZonedDateTime
getNotifyStamp()
Returns the time stamp at which this message is supposed to be sent.com.google.gson.JsonObject
getParams()
Get attributes as JsonObject for Mailer.boolean
isEmpty()
java.lang.String
toString()
boolean
update()
Transform message to use for next cycle.
-
-
-
Field Detail
-
TEMPLATE
public static final java.lang.String TEMPLATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNotifyStamp
public java.time.ZonedDateTime 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
-
addRecipient
public void addRecipient(AlertingSetting setting)
Add a recipient with its delay to the message.- Parameters:
setting
- of user to whom to send the mail to
-
getCurrentRecipients
public java.util.List<AlertingSetting> getCurrentRecipients()
-
getMessageCount
public int getMessageCount()
-
update
public boolean update()
Transform message to use for next cycle.- Returns:
- next Message with updated Recipients
-
getEdgeId
public java.lang.String getEdgeId()
-
isEmpty
public boolean isEmpty()
-
getParams
public com.google.gson.JsonObject getParams()
Description copied from class:Message
Get attributes as JsonObject for Mailer.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-