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