public interface EventManagerLocal
| 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 |
purgeEventData(Date deleteUpToTime)
Deletes event data older than the specified time.
|
int |
purgeEventsForContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context) |
void addEventData(Map<org.rhq.core.domain.event.EventSource,Set<org.rhq.core.domain.event.Event>> events)
events - a set of events.int purgeEventData(Date deleteUpToTime) throws SQLException
deleteUpToTime - event data older than this time will be deletedSQLExceptionMap<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)
int[] getEventCounts(org.rhq.core.domain.auth.Subject subject,
int resourceId,
long begin,
long end,
int numBuckets)
subject - Subject of the callerresourceId - Id of the resource we want to know the databegin - Begin dateend - End datenumBuckets - Number of buckets to distribute into.org.rhq.core.domain.event.composite.EventComposite getEventDetailForEventId(org.rhq.core.domain.auth.Subject subject,
int eventId)
throws EventException
subject - Subject of the callereventId - ID of the desired event.EventExceptionvoid deleteEventSourcesForDefinition(org.rhq.core.domain.event.EventDefinition def)
int deleteEventsForContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context,
List<Integer> eventIds)
int purgeEventsForContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
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.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.util.PageList<org.rhq.core.domain.event.Event> findEventsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.EventCriteria criteria)
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[] 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)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.