org.rhq.core.domain.event
Class EventSource
java.lang.Object
org.rhq.core.domain.event.EventSource
- All Implemented Interfaces:
- Serializable
public class EventSource
- extends Object
- implements Serializable
An event source (e.g. a log file path or an SNMP trap OID) for a specific type of Event
(see
EventDefinition
) and a specific Resource
.
- See Also:
- Serialized Form
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
QUERY_DELETE_BY_RESOURCES
public static final String QUERY_DELETE_BY_RESOURCES
- See Also:
- Constant Field Values
QUERY_BY_EVENT_DEFINITION
public static final String QUERY_BY_EVENT_DEFINITION
- See Also:
- Constant Field Values
EventSource
public EventSource()
EventSource
public EventSource(@NotNull
String location,
@NotNull
EventDefinition eventDefinition,
@NotNull
Resource resource)
getId
public int getId()
getEventDefinition
public EventDefinition getEventDefinition()
getResource
public Resource getResource()
getResourceId
public int getResourceId()
getLocation
@NotNull
public String getLocation()
getEvents
public Set<Event> getEvents()
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.