Class MetricIntervalEntity

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String name  
      protected java.lang.String reporter  
      protected java.util.Date timestamp  
      protected long value  
    • Constructor Summary

      Constructors 
      Constructor Description
      MetricIntervalEntity​(java.lang.Long timestamp, java.lang.String name, java.lang.String reporter)
      Ctor will be used by Mybatis
      MetricIntervalEntity​(java.util.Date timestamp, java.lang.String name, java.lang.String reporter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getId()  
      java.lang.String getName()
      Returns the name of the metric.
      java.lang.Object getPersistentState()
      Returns a representation of the object, as would be stored in the database.
      java.lang.String getReporter()
      Returns the reporter name of the metric, identifies the node which generates this metric.
      java.util.Date getTimestamp()
      Returns the timestamp as date object, on which the metric was created.
      long getValue()
      Returns the value of the metric.
      int hashCode()  
      void setId​(java.lang.String id)  
      void setName​(java.lang.String name)  
      void setReporter​(java.lang.String reporter)  
      void setTimestamp​(long timestamp)  
      void setTimestamp​(java.util.Date timestamp)  
      void setValue​(long value)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • timestamp

        protected java.util.Date timestamp
      • name

        protected java.lang.String name
      • reporter

        protected java.lang.String reporter
      • value

        protected long value
    • Constructor Detail

      • MetricIntervalEntity

        public MetricIntervalEntity​(java.util.Date timestamp,
                                    java.lang.String name,
                                    java.lang.String reporter)
      • MetricIntervalEntity

        public MetricIntervalEntity​(java.lang.Long timestamp,
                                    java.lang.String name,
                                    java.lang.String reporter)
        Ctor will be used by Mybatis
        Parameters:
        timestamp -
        name -
        reporter -
    • Method Detail

      • getTimestamp

        public java.util.Date getTimestamp()
        Description copied from interface: MetricIntervalValue
        Returns the timestamp as date object, on which the metric was created.
        Specified by:
        getTimestamp in interface MetricIntervalValue
        Returns:
        the timestamp
      • setTimestamp

        public void setTimestamp​(java.util.Date timestamp)
      • setTimestamp

        public void setTimestamp​(long timestamp)
      • getName

        public java.lang.String getName()
        Description copied from interface: MetricIntervalValue
        Returns the name of the metric.
        Specified by:
        getName in interface MetricIntervalValue
        Returns:
        the name of the metric
        See Also:
        in for a list of names which can be returned here
      • setName

        public void setName​(java.lang.String name)
      • getReporter

        public java.lang.String getReporter()
        Description copied from interface: MetricIntervalValue
        Returns the reporter name of the metric, identifies the node which generates this metric. 'null' when the metrics are aggregated by reporter.
        Specified by:
        getReporter in interface MetricIntervalValue
        Returns:
        the reporter name
      • setReporter

        public void setReporter​(java.lang.String reporter)
      • setValue

        public void setValue​(long value)
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface DbEntity
      • setId

        public void setId​(java.lang.String id)
        Specified by:
        setId in interface DbEntity
      • getPersistentState

        public java.lang.Object getPersistentState()
        Description copied from interface: DbEntity
        Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.
        Specified by:
        getPersistentState in interface DbEntity
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object