Class Measure.MeasureLong

    • Constructor Detail

      • MeasureLong

        MeasureLong()
    • Method Detail

      • create

        public static Measure.MeasureLong create​(java.lang.String name,
                                                 java.lang.String description,
                                                 java.lang.String unit)
        Constructs a new Measure.MeasureLong.
        Parameters:
        name - name of Measure. Suggested format: <web_host>/<path>.
        description - description of Measure.
        unit - unit of Measure.
        Returns:
        a MeasureLong.
        Since:
        0.8
      • getName

        public abstract java.lang.String getName()
        Description copied from class: Measure
        Name of measure, as a String. Should be a ASCII string with a length no greater than 255 characters.

        Suggested format for name: <web_host>/<path>.

        Specified by:
        getName in class Measure
      • getDescription

        public abstract java.lang.String getDescription()
        Description copied from class: Measure
        Detailed description of the measure, used in documentation.
        Specified by:
        getDescription in class Measure
      • getUnit

        public abstract java.lang.String getUnit()
        Description copied from class: Measure
        The units in which Measure values are measured.

        The suggested grammar for a unit is as follows:

        • Expression = Component { "." Component } {"/" Component };
        • Component = [ PREFIX ] UNIT [ Annotation ] | Annotation | "1";
        • Annotation = "{" NAME "}" ;

        For example, string “MBy{transmitted}/ms” stands for megabytes per milliseconds, and the annotation transmitted inside {} is just a comment of the unit.

        Specified by:
        getUnit in class Measure