org.rhq.core.domain.event.transfer
Class EventReport

java.lang.Object
  extended by org.rhq.core.domain.event.transfer.EventReport
All Implemented Interfaces:
Serializable

public class EventReport
extends Object
implements Serializable

A report of resource Events 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.

See Also:
Serialized Form

Constructor Summary
EventReport()
           
 
Method Summary
 void addEvent(Event event, EventSource eventSource)
          Adds the given Event to this report.
 Map<EventSource,Set<Event>> getEvents()
          Returns the Events contained in this report; the Events are in a map keyed off Event sources.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventReport

public EventReport()
Method Detail

addEvent

public void addEvent(@NotNull
                     Event event,
                     @NotNull
                     EventSource eventSource)
Adds the given Event to this report.

Parameters:
event - the Event to be added
eventSource - the source of the Event to be added

getEvents

@NotNull
public Map<EventSource,Set<Event>> getEvents()
Returns the Events contained in this report; the Events are in a map keyed off Event sources.

Returns:
the Events contained in this report

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 RHQ Project Advisory Board (Red Hat, Inc. and Hyperic, Inc.). All Rights Reserved.