org.ow2.jasmine.event.beans
Class JasmineEventNotification
java.lang.Object
org.ow2.jasmine.event.beans.JasmineEventNotification
- All Implemented Interfaces:
- Serializable, IJasmineEventNotification
- Direct Known Subclasses:
- JasmineEventNotificationJMX, JasmineEventNotificationMail, JasmineEventNotificationSNMP
public class JasmineEventNotification
- extends Object
- implements IJasmineEventNotification, Serializable
- Author:
- Jean-Pierre Poutcheu
- See Also:
- Serialized Form
JasmineEventNotification
public JasmineEventNotification()
- default constructor.
JasmineEventNotification
public JasmineEventNotification(String id,
Date date,
String level,
String message,
Boolean status,
String rule)
- Parameters:
date - level - message - status - rule -
getId
public String getId()
- Returns:
- the id
setId
public void setId(String id)
- Parameters:
id - the id to set
getDate
public Date getDate()
- Returns:
- the date
setDate
public void setDate(Date date)
- Parameters:
date - the date to set
getLevel
public String getLevel()
- Returns:
- the level
setLevel
public void setLevel(String level)
- Parameters:
level - the level to set
getMessage
public String getMessage()
- Returns:
- the message
setMessage
public void setMessage(String message)
- Parameters:
message - the message to set
getStatus
public Boolean getStatus()
- Returns:
- the status
setStatus
public void setStatus(Boolean status)
- Parameters:
status - the status to set
getRule
public String getRule()
- Returns:
- the rule
setRule
public void setRule(String rule)
- Parameters:
rule - the rule to set
getDetails
public List<JasmineEventNotificationDetail> getDetails()
- Returns:
- the details
setDetails
public void setDetails(List<JasmineEventNotificationDetail> details)
- Parameters:
details - the details to set
addDetail
public void addDetail(String label,
String message)
- Parameters:
label - the detail labelmessage - the detail message
getActions
public List<JasmineEventNotificationExecutedAction> getActions()
- Returns:
- the actions
setActions
public void setActions(List<JasmineEventNotificationExecutedAction> actions)
- Parameters:
actions - the actions to set
addExecutedActions
public void addExecutedActions(String comment,
String action,
String user,
Date date)
- Simply add the given action.
- Parameters:
action -
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012 OW2 Consortium. All Rights Reserved.