Class MetricIntervalEntity

    • Field Detail

      • timestamp

        protected Date timestamp
      • reporter

        protected String reporter
      • value

        protected long value
    • Constructor Detail

      • MetricIntervalEntity

        public MetricIntervalEntity​(Date timestamp,
                                    String name,
                                    String reporter)
      • MetricIntervalEntity

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

      • setTimestamp

        public void setTimestamp​(Date timestamp)
      • setTimestamp

        public void setTimestamp​(long timestamp)
      • getName

        public 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​(String name)
      • getReporter

        public 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​(String reporter)
      • setValue

        public void setValue​(long value)
      • getPersistentState

        public 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 Object