org.rhq.core.domain.event
Class Event
java.lang.Object
org.rhq.core.domain.event.Event
- All Implemented Interfaces:
- Serializable
public class Event
- extends Object
- implements Serializable
A transpired event, pertaining to a particular Resource
.
- See Also:
- Serialized Form
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
DETAIL_MAX_LENGTH
public static final int DETAIL_MAX_LENGTH
- See Also:
- Constant Field Values
DELETE_BY_RESOURCES
public static final String DELETE_BY_RESOURCES
- See Also:
- Constant Field Values
DELETE_BY_EVENT_IDS
public static final String DELETE_BY_EVENT_IDS
- See Also:
- Constant Field Values
DELETE_ALL_BY_RESOURCE
public static final String DELETE_ALL_BY_RESOURCE
- See Also:
- Constant Field Values
DELETE_ALL_BY_RESOURCE_GROUP
public static final String DELETE_ALL_BY_RESOURCE_GROUP
- See Also:
- Constant Field Values
FIND_EVENTS_FOR_RESOURCE_ID_AND_TIME
public static final String FIND_EVENTS_FOR_RESOURCE_ID_AND_TIME
- See Also:
- Constant Field Values
FIND_EVENTS_FOR_RESOURCE_ID_AND_TIME_SEVERITY
public static final String FIND_EVENTS_FOR_RESOURCE_ID_AND_TIME_SEVERITY
- See Also:
- Constant Field Values
GET_DETAILS_FOR_EVENT_IDS
public static final String GET_DETAILS_FOR_EVENT_IDS
- See Also:
- Constant Field Values
QUERY_EVENT_COUNTS_BY_SEVERITY
public static final String QUERY_EVENT_COUNTS_BY_SEVERITY
- See Also:
- Constant Field Values
QUERY_EVENT_COUNTS_BY_SEVERITY_GROUP
public static final String QUERY_EVENT_COUNTS_BY_SEVERITY_GROUP
- See Also:
- Constant Field Values
Event
protected Event()
Event
public Event(@NotNull
String type,
@NotNull
String sourceLocation,
@NotNull
long timestamp,
@NotNull
EventSeverity severity,
@NotNull
String detail)
- Parameters:
type
- the name of the EventDefinition
that defines this event's typetimestamp
- the date/time this event occurredseverity
- the severity of this eventdetail
- the details of this event
Event
public Event(@NotNull
String type,
@NotNull
String sourceLocation,
@NotNull
long timestamp,
@NotNull
EventSeverity severity,
@NotNull
String detail,
@Nullable
EventSource source)
getId
public int getId()
- NOTE: This method is not intended to be called by plugins or the Plugin Container.
getSource
@Nullable
public EventSource getSource()
- NOTE: This method is not intended to be called by plugins or the Plugin Container.
getType
@Nullable
public String getType()
getSourceLocation
@Nullable
public String getSourceLocation()
getTimestamp
@NotNull
public long getTimestamp()
getSeverity
@NotNull
public EventSeverity getSeverity()
getDetail
@NotNull
public String getDetail()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.