|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.event.transfer.EventReport
public class EventReport
A report of resource Event
s that the Plugin Container periodically sends to the Server. The report contains
all Events that have occurred since the last time a report was successfully sent.
Each report has a limit on the number of events they can hold. There are actually two limits: first,
each event source has a limit on the number of events they can have and second, the report has a total
number of events it can hold at a maximum (i.e. the sum of all events for all event sources cannot
exceed this total maximum).
This report maintains a counter of the number of events that have been dropped due to hitting these
maximum limits. If you want this report to get additional warning events added to them to indicate
if these maximum limits were exceeded, call addLimitWarningEvents()
.
Constructor Summary | |
---|---|
EventReport(int maxEventsPerSource,
int maxEventsPerReport)
|
Method Summary | |
---|---|
void |
addEvent(Event event,
EventSource eventSource)
Adds the given event to this report. |
boolean |
addLimitWarningEvents()
This method will check to see if any maximum limits were exceeded and if so adds warning events to indicate that the limits were breached. |
Map<EventSource,Integer> |
getDroppedEvents()
|
Map<EventSource,Set<Event>> |
getEvents()
Returns the Events contained in this report; the Events are in a map keyed off Event sources. |
int |
getMaxEventsPerReport()
|
int |
getMaxEventsPerSource()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EventReport(int maxEventsPerSource, int maxEventsPerReport)
Method Detail |
---|
public void addEvent(@NotNull Event event, @NotNull EventSource eventSource)
event
to this report. If this report is too full,
the event will be silently rejected (i.e. an exception will not be thrown, but the
event will not be sent to the server).
event
- the Event
to be addedeventSource
- the source of the Event to be added@NotNull public Map<EventSource,Set<Event>> getEvents()
public boolean addLimitWarningEvents()
public Map<EventSource,Integer> getDroppedEvents()
public int getMaxEventsPerSource()
public int getMaxEventsPerReport()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |