public class EventManagerBean extends Object implements EventManagerLocal, EventManagerRemote
Events.| Constructor and Description |
|---|
EventManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventData(Map<org.rhq.core.domain.event.EventSource,Set<org.rhq.core.domain.event.Event>> events)
Add the passed events to the database
|
int |
deleteEventsForContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context,
List<Integer> eventIds) |
void |
deleteEventSourcesForDefinition(org.rhq.core.domain.event.EventDefinition def) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.event.composite.EventComposite> |
findEventComposites(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context,
long begin,
long end,
org.rhq.core.domain.event.EventSeverity[] severities,
String source,
String detail,
org.rhq.core.domain.util.PageControl pc) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.event.composite.EventComposite> |
findEventCompositesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.EventCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.event.Event> |
findEventsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.EventCriteria criteria) |
int[] |
getEventCounts(org.rhq.core.domain.auth.Subject subject,
int resourceId,
long begin,
long end,
int numBuckets)
Retrieve the count of events for the given resource in the time between begin and end, nicely separated
in numBuckets.
|
Map<org.rhq.core.domain.event.EventSeverity,Integer> |
getEventCountsBySeverity(org.rhq.core.domain.auth.Subject subject,
int resourceId,
long startDate,
long endDate) |
Map<org.rhq.core.domain.event.EventSeverity,Integer> |
getEventCountsBySeverityForGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
long startDate,
long endDate) |
org.rhq.core.domain.event.composite.EventComposite |
getEventDetailForEventId(org.rhq.core.domain.auth.Subject subject,
int eventId)
Obtain detail information about the passed event
|
org.rhq.core.domain.event.EventSeverity[] |
getSeverityBuckets(org.rhq.core.domain.auth.Subject subject,
int resourceId,
long begin,
long end,
int numBuckets) |
org.rhq.core.domain.event.EventSeverity[] |
getSeverityBucketsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context,
long begin,
long end,
int bucketCount) |
org.rhq.core.domain.event.EventSeverity[] |
getSeverityBucketsForAutoGroup(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
long begin,
long end,
int numBuckets) |
org.rhq.core.domain.event.EventSeverity[] |
getSeverityBucketsForCompGroup(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId,
long begin,
long end,
int numBuckets) |
int |
purgeEventsForContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context) |
public void addEventData(Map<org.rhq.core.domain.event.EventSource,Set<org.rhq.core.domain.event.Event>> events)
EventManagerLocaladdEventData in interface EventManagerLocalevents - a set of events.public int[] getEventCounts(org.rhq.core.domain.auth.Subject subject,
int resourceId,
long begin,
long end,
int numBuckets)
EventManagerLocalgetEventCounts in interface EventManagerLocalsubject - Subject of the callerresourceId - Id of the resource we want to know the databegin - Begin dateend - End datenumBuckets - Number of buckets to distribute into.public org.rhq.core.domain.event.composite.EventComposite getEventDetailForEventId(org.rhq.core.domain.auth.Subject subject,
int eventId)
throws EventException
EventManagerLocalgetEventDetailForEventId in interface EventManagerLocalsubject - Subject of the callereventId - ID of the desired event.EventExceptionpublic void deleteEventSourcesForDefinition(org.rhq.core.domain.event.EventDefinition def)
deleteEventSourcesForDefinition in interface EventManagerLocalpublic int deleteEventsForContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context,
List<Integer> eventIds)
deleteEventsForContext in interface EventManagerLocalpublic int purgeEventsForContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
purgeEventsForContext in interface EventManagerLocalpublic Map<org.rhq.core.domain.event.EventSeverity,Integer> getEventCountsBySeverity(org.rhq.core.domain.auth.Subject subject, int resourceId, long startDate, long endDate)
getEventCountsBySeverity in interface EventManagerLocalpublic Map<org.rhq.core.domain.event.EventSeverity,Integer> getEventCountsBySeverityForGroup(org.rhq.core.domain.auth.Subject subject, int groupId, long startDate, long endDate)
getEventCountsBySeverityForGroup in interface EventManagerLocalpublic org.rhq.core.domain.event.EventSeverity[] getSeverityBucketsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context,
long begin,
long end,
int bucketCount)
getSeverityBucketsByContext in interface EventManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.event.composite.EventComposite> findEventComposites(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context,
long begin,
long end,
org.rhq.core.domain.event.EventSeverity[] severities,
String source,
String detail,
org.rhq.core.domain.util.PageControl pc)
findEventComposites in interface EventManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.event.composite.EventComposite> findEventCompositesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.EventCriteria criteria)
findEventCompositesByCriteria in interface EventManagerLocalpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.event.Event> findEventsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.EventCriteria criteria)
findEventsByCriteria in interface EventManagerRemotepublic org.rhq.core.domain.event.EventSeverity[] getSeverityBuckets(org.rhq.core.domain.auth.Subject subject,
int resourceId,
long begin,
long end,
int numBuckets)
getSeverityBuckets in interface EventManagerRemotebegin - in millisend - in millispublic org.rhq.core.domain.event.EventSeverity[] getSeverityBucketsForAutoGroup(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
long begin,
long end,
int numBuckets)
getSeverityBucketsForAutoGroup in interface EventManagerRemotebegin - in millisend - in millispublic org.rhq.core.domain.event.EventSeverity[] getSeverityBucketsForCompGroup(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId,
long begin,
long end,
int numBuckets)
getSeverityBucketsForCompGroup in interface EventManagerRemotebegin - in millisend - in millisCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.