Class Event
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an event.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getDate()
The date and time of the event.A list of the event categories.The identifier of the event.The text of this event.The severity of the event.The identifier for the source of the event.The source type for this event.int
hashCode()
void
The date and time of the event.void
setEventCategories
(Collection<String> eventCategories) A list of the event categories.void
setEventId
(String eventId) The identifier of the event.void
setMessage
(String message) The text of this event.void
setSeverity
(String severity) The severity of the event.void
setSourceIdentifier
(String sourceIdentifier) The identifier for the source of the event.void
setSourceType
(SourceType sourceType) The source type for this event.void
setSourceType
(String sourceType) The source type for this event.toString()
Returns a string representation of this object; useful for testing and debugging.The date and time of the event.withEventCategories
(String... eventCategories) A list of the event categories.withEventCategories
(Collection<String> eventCategories) A list of the event categories.withEventId
(String eventId) The identifier of the event.withMessage
(String message) The text of this event.withSeverity
(String severity) The severity of the event.withSourceIdentifier
(String sourceIdentifier) The identifier for the source of the event.withSourceType
(SourceType sourceType) The source type for this event.withSourceType
(String sourceType) The source type for this event.
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
setSourceIdentifier
The identifier for the source of the event.
- Parameters:
sourceIdentifier
- The identifier for the source of the event.
-
getSourceIdentifier
The identifier for the source of the event.
- Returns:
- The identifier for the source of the event.
-
withSourceIdentifier
The identifier for the source of the event.
- Parameters:
sourceIdentifier
- The identifier for the source of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceType
The source type for this event.
- Parameters:
sourceType
- The source type for this event.- See Also:
-
getSourceType
The source type for this event.
- Returns:
- The source type for this event.
- See Also:
-
withSourceType
The source type for this event.
- Parameters:
sourceType
- The source type for this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setSourceType
The source type for this event.
- Parameters:
sourceType
- The source type for this event.- See Also:
-
withSourceType
The source type for this event.
- Parameters:
sourceType
- The source type for this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setMessage
The text of this event.
- Parameters:
message
- The text of this event.
-
getMessage
The text of this event.
- Returns:
- The text of this event.
-
withMessage
The text of this event.
- Parameters:
message
- The text of this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEventCategories
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
- Returns:
- A list of the event categories.
Values: Configuration, Management, Monitoring, Security
-
setEventCategories
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
- Parameters:
eventCategories
- A list of the event categories.Values: Configuration, Management, Monitoring, Security
-
withEventCategories
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
NOTE: This method appends the values to the existing list (if any). Use
setEventCategories(java.util.Collection)
orwithEventCategories(java.util.Collection)
if you want to override the existing values.- Parameters:
eventCategories
- A list of the event categories.Values: Configuration, Management, Monitoring, Security
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEventCategories
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
- Parameters:
eventCategories
- A list of the event categories.Values: Configuration, Management, Monitoring, Security
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSeverity
The severity of the event.
Values: ERROR, INFO
- Parameters:
severity
- The severity of the event.Values: ERROR, INFO
-
getSeverity
The severity of the event.
Values: ERROR, INFO
- Returns:
- The severity of the event.
Values: ERROR, INFO
-
withSeverity
The severity of the event.
Values: ERROR, INFO
- Parameters:
severity
- The severity of the event.Values: ERROR, INFO
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDate
The date and time of the event.
- Parameters:
dateValue
- The date and time of the event.
-
getDate
The date and time of the event.
- Returns:
- The date and time of the event.
-
withDate
The date and time of the event.
- Parameters:
dateValue
- The date and time of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEventId
The identifier of the event.
- Parameters:
eventId
- The identifier of the event.
-
getEventId
The identifier of the event.
- Returns:
- The identifier of the event.
-
withEventId
The identifier of the event.
- Parameters:
eventId
- The identifier of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-