@Entity public class AlertEntity extends SystemLocalVersionedEntity
Modifier and Type | Class and Description |
---|---|
static class |
AlertEntity.AlertSeverity
Representation of the Severity enumeration - required due to OSGi
behaviors with regards to the JPA representation of all entity
artifacts maintained in the same physical bundle.
|
Constructor and Description |
---|
AlertEntity()
Default constructor used by persistence framework.
|
AlertEntity(UUID uid,
UUID sysId,
Boolean state,
String topic,
String origin,
Date timestamp,
Severity severity,
String description)
Creates an alert entity.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description information associated with this alert.
|
String |
getOrigin()
Returns the origin associated with this alert.
|
Severity |
getSeverity()
Returns the severity associated with this alert.
|
boolean |
getState()
Returns the active state of this alert.
|
Date |
getTimestamp()
Returns the time stamp associated with this alert.
|
String |
getTopic()
Returns the topic associated with this alert.
|
void |
setState(boolean newState)
Set the state for this alert.
|
getSysId
getVersion
equals, getId, hashCode, toString
public AlertEntity()
public AlertEntity(UUID uid, UUID sysId, Boolean state, String topic, String origin, Date timestamp, Severity severity, String description)
uid
- the external unique identifysysId
- the system id associated with the alertstate
- the state of the alert (active or not)topic
- the topic associated with this alertorigin
- The origin of this alerttimestamp
- the time when the alert was createdseverity
- the severity associated with this alertdescription
- the data description containing the data associated with
this alertpublic String getTopic()
public String getOrigin()
public Date getTimestamp()
public Severity getSeverity()
public boolean getState()
true
if the event is active, false
otherwisepublic String getDescription()
public void setState(boolean newState)
newState
- the desired stateCopyright © 2015. All Rights Reserved.