Package jadex.bridge
Class BulkMonitoringEvent
- java.lang.Object
-
- jadex.bridge.BulkMonitoringEvent
-
- All Implemented Interfaces:
IMonitoringEvent
public class BulkMonitoringEvent extends java.lang.Object implements IMonitoringEvent
-
-
Field Summary
Fields Modifier and Type Field Description protected IMonitoringEvent[]
events
The bulk events.-
Fields inherited from interface jadex.bridge.service.types.monitoring.IMonitoringEvent
EVENT_TYPE_BULK, EVENT_TYPE_CREATION, EVENT_TYPE_DISPOSAL, EVENT_TYPE_MODIFICATION, EVENT_TYPE_OCCURRENCE, SOURCE_CATEGORY_ACTIVITY, SOURCE_CATEGORY_COMPONENT, SOURCE_CATEGORY_EXECUTION, SOURCE_CATEGORY_FACT, SOURCE_CATEGORY_GOAL, SOURCE_CATEGORY_IEVENT, SOURCE_CATEGORY_MESSAGE, SOURCE_CATEGORY_PLAN, SOURCE_CATEGORY_PROPERTY, SOURCE_CATEGORY_SERVICE, TERMINATION_FILTER, TYPE_COMPONENT_CREATED, TYPE_COMPONENT_DISPOSED, TYPE_PROPERTY_ADDED, TYPE_PROPERTY_REMOVED, TYPE_SERVICECALL_END, TYPE_SERVICECALL_START, TYPE_SUBSCRIPTION_START
-
-
Constructor Summary
Constructors Constructor Description BulkMonitoringEvent()
BulkMonitoringEvent(IMonitoringEvent[] events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMonitoringEvent[]
getBulkEvents()
Get the bulk events.IMonitoringService.PublishEventLevel
getLevel()
Get the event importance.java.util.Map<java.lang.String,java.lang.Object>
getProperties()
Get a property.java.lang.Object
getProperty(java.lang.String name)
Get a property.long
getSourceCreationTime()
Get the source creation time, i.e. the time when the component was created.java.lang.String
getSourceDescription()
Get the source description, e.g. if it is a service.IComponentIdentifier
getSourceIdentifier()
Get the caller.long
getTime()
Get the time.java.lang.String
getType()
Get the type.void
setBulkEvents(IMonitoringEvent[] events)
Set the events.
-
-
-
Field Detail
-
events
protected IMonitoringEvent[] events
The bulk events.
-
-
Constructor Detail
-
BulkMonitoringEvent
public BulkMonitoringEvent()
-
BulkMonitoringEvent
public BulkMonitoringEvent(IMonitoringEvent[] events)
-
-
Method Detail
-
getSourceIdentifier
public IComponentIdentifier getSourceIdentifier()
Get the caller.- Specified by:
getSourceIdentifier
in interfaceIMonitoringEvent
- Returns:
- The caller.
-
getSourceDescription
public java.lang.String getSourceDescription()
Get the source description, e.g. if it is a service.- Specified by:
getSourceDescription
in interfaceIMonitoringEvent
- Returns:
- The source description.
-
getSourceCreationTime
public long getSourceCreationTime()
Get the source creation time, i.e. the time when the component was created.- Specified by:
getSourceCreationTime
in interfaceIMonitoringEvent
- Returns:
- The creation time.
-
getType
public java.lang.String getType()
Get the type.- Specified by:
getType
in interfaceIMonitoringEvent
- Returns:
- The type.
-
getTime
public long getTime()
Get the time.- Specified by:
getTime
in interfaceIMonitoringEvent
- Returns:
- The time.
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
Get a property.- Specified by:
getProperty
in interfaceIMonitoringEvent
- Parameters:
name
- The property name.- Returns:
- The property.
-
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
Get a property.- Specified by:
getProperties
in interfaceIMonitoringEvent
- Parameters:
name
- The property name.- Returns:
- The property.
-
getLevel
public IMonitoringService.PublishEventLevel getLevel()
Get the event importance.- Specified by:
getLevel
in interfaceIMonitoringEvent
-
getBulkEvents
public IMonitoringEvent[] getBulkEvents()
Get the bulk events.- Returns:
- The bulk events.
-
setBulkEvents
public void setBulkEvents(IMonitoringEvent[] events)
Set the events.- Parameters:
events
- The events to set.
-
-