public class MonitoringEvent extends Object implements 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 and Description |
|---|
MonitoringEvent()
Create a new monitoring event.
|
MonitoringEvent(IComponentIdentifier source,
long crtime,
String type,
Cause cause,
long time,
IMonitoringService.PublishEventLevel importance)
Create a new monitoring event.
|
MonitoringEvent(IComponentIdentifier source,
long crtime,
String type,
long time,
IMonitoringService.PublishEventLevel importance)
Create a new monitoring event.
|
MonitoringEvent(IComponentIdentifier source,
long crtime,
String sourcedesc,
String type,
Cause cause,
long time,
IMonitoringService.PublishEventLevel importance)
Create a new monitoring event.
|
MonitoringEvent(IComponentIdentifier source,
long crtime,
String sourcdesc,
String type,
Cause cause,
long time,
IMonitoringService.PublishEventLevel level,
Map<String,Object> props)
Create a new monitoring event.
|
| Modifier and Type | Method and Description |
|---|---|
Cause |
getCause()
Get the cause.
|
IMonitoringService.PublishEventLevel |
getLevel()
Get the event importance level.
|
Map<String,Object> |
getProperties()
Get a property.
|
Object |
getProperty(String name)
Get a property.
|
long |
getSourceCreationTime()
Get the source creation time, i.e.
|
String |
getSourceDescription()
Get the source description, e.g.
|
IComponentIdentifier |
getSourceIdentifier()
Get the caller.
|
long |
getTime()
Get the time.
|
String |
getType()
Get the type.
|
void |
setCause(Cause cause)
Set the cause.
|
void |
setCreationTime(long creationtime)
Set the creation time.
|
void |
setLevel(IMonitoringService.PublishEventLevel importance)
Set the importance.
|
void |
setProperties(Map<String,Object> properties)
Set the properties.
|
void |
setProperty(String name,
Object val)
Set a property.
|
void |
setSourceDescription(String sourcedesc)
Set the source description.
|
void |
setSourceIdentifier(IComponentIdentifier source)
Set the source.
|
void |
setTime(long time)
Set the time.
|
void |
setType(String type)
Set the type.
|
String |
toString()
Get the string representation.
|
public MonitoringEvent()
public MonitoringEvent(IComponentIdentifier source, long crtime, String type, long time, IMonitoringService.PublishEventLevel importance)
public MonitoringEvent(IComponentIdentifier source, long crtime, String type, Cause cause, long time, IMonitoringService.PublishEventLevel importance)
public MonitoringEvent(IComponentIdentifier source, long crtime, String sourcedesc, String type, Cause cause, long time, IMonitoringService.PublishEventLevel importance)
public MonitoringEvent(IComponentIdentifier source, long crtime, String sourcdesc, String type, Cause cause, long time, IMonitoringService.PublishEventLevel level, Map<String,Object> props)
public IComponentIdentifier getSourceIdentifier()
getSourceIdentifier in interface IMonitoringEventpublic void setSourceIdentifier(IComponentIdentifier source)
source - The source to set.public String getSourceDescription()
getSourceDescription in interface IMonitoringEventpublic void setSourceDescription(String sourcedesc)
public long getSourceCreationTime()
getSourceCreationTime in interface IMonitoringEventpublic void setCreationTime(long creationtime)
creation - time The creation time to set.public String getType()
getType in interface IMonitoringEventpublic void setType(String type)
type - The type to set.public long getTime()
getTime in interface IMonitoringEventpublic void setTime(long time)
time - The time to set.public Cause getCause()
getCause in interface IMonitoringEventpublic void setCause(Cause cause)
setCause in interface IMonitoringEventcause - The cause to set.public Object getProperty(String name)
getProperty in interface IMonitoringEventname - The property name.public void setProperty(String name, Object val)
name - The property name.val - The property value.public Map<String,Object> getProperties()
getProperties in interface IMonitoringEventname - The property name.public void setProperties(Map<String,Object> properties)
properties - The properties to set.public IMonitoringService.PublishEventLevel getLevel()
getLevel in interface IMonitoringEventpublic void setLevel(IMonitoringService.PublishEventLevel importance)
Copyright © 2015. All Rights Reserved.