Class MonitoringEvent

  • All Implemented Interfaces:
    IMonitoringEvent

    public class MonitoringEvent
    extends java.lang.Object
    implements IMonitoringEvent
    Default implementation for events.
    • Field Detail

      • sourcedesc

        protected java.lang.String sourcedesc
        The source description.
      • creationtime

        protected long creationtime
        The source creation time.
      • type

        protected java.lang.String type
        The type.
      • time

        protected long time
        The timepoint.
      • properties

        protected java.util.Map<java.lang.String,​java.lang.Object> properties
        The service call properties.
    • Method Detail

      • setSourceIdentifier

        public void setSourceIdentifier​(IComponentIdentifier source)
        Set the source.
        Parameters:
        source - The source to set.
      • getSourceDescription

        public java.lang.String getSourceDescription()
        Get the source description, e.g. if it is a service.
        Specified by:
        getSourceDescription in interface IMonitoringEvent
        Returns:
        The source description.
      • setSourceDescription

        public void setSourceDescription​(java.lang.String sourcedesc)
        Set 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 interface IMonitoringEvent
        Returns:
        The creation time.
      • setCreationTime

        public void setCreationTime​(long creationtime)
        Set the creation time.
        Parameters:
        creation - time The creation time to set.
      • getType

        public java.lang.String getType()
        Get the type.
        Specified by:
        getType in interface IMonitoringEvent
        Returns:
        The type.
      • setType

        public void setType​(java.lang.String type)
        Set the type.
        Parameters:
        type - The type to set.
      • getTime

        public long getTime()
        Get the time.
        Specified by:
        getTime in interface IMonitoringEvent
        Returns:
        The time.
      • setTime

        public void setTime​(long time)
        Set the time.
        Parameters:
        time - The time to set.
      • getProperty

        public java.lang.Object getProperty​(java.lang.String name)
        Get a property.
        Specified by:
        getProperty in interface IMonitoringEvent
        Parameters:
        name - The property name.
        Returns:
        The property.
      • setProperty

        public void setProperty​(java.lang.String name,
                                java.lang.Object val)
        Set a property.
        Parameters:
        name - The property name.
        val - The property value.
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Get a property.
        Specified by:
        getProperties in interface IMonitoringEvent
        Parameters:
        name - The property name.
        Returns:
        The property.
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
        Set the properties.
        Parameters:
        properties - The properties to set.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object