|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.event.EventManagerBean
public class EventManagerBean
Manager for Handling of Events.
| Constructor Summary | |
|---|---|
EventManagerBean()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventManagerBean()
| Method Detail |
|---|
public void addEventData(Map<org.rhq.core.domain.event.EventSource,Set<org.rhq.core.domain.event.Event>> events)
EventManagerLocal
addEventData in interface EventManagerLocalevents - a set of events.
public int purgeEventData(Date deleteUpToTime)
throws SQLException
EventManagerLocal
purgeEventData in interface EventManagerLocaldeleteUpToTime - event data older than this time will be deleted
SQLException
public int[] getEventCounts(org.rhq.core.domain.auth.Subject subject,
int resourceId,
long begin,
long end,
int numBuckets)
EventManagerLocal
getEventCounts 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
EventManagerLocal
getEventDetailForEventId 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 EventManagerLocal
public int deleteEventsForContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context,
List<Integer> eventIds)
deleteEventsForContext in interface EventManagerLocal
public int purgeEventsForContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
purgeEventsForContext in interface EventManagerLocal
public 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 EventManagerLocal
public 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 EventManagerLocal
public 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 EventManagerLocal
public 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 EventManagerLocal
public 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 EventManagerLocal
public 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 EventManagerLocalfindEventsByCriteria in interface EventManagerRemote
public 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 EventManagerLocalgetSeverityBuckets in interface EventManagerRemote
public 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 EventManagerLocalgetSeverityBucketsForAutoGroup in interface EventManagerRemote
public 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 EventManagerLocalgetSeverityBucketsForCompGroup in interface EventManagerRemote
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||