Class DS


  • public class DS
    extends AbstractDS
    The Class DS (Data Source).
    • ds.decl.normal: minimal_heartbeat, min, max
    • ds.decl.cdef: cdef
    • ds.decl: name, type, (ds.decl.normal | ds.decl.cdef), last_ds, value, unknown_sec
    Author:
    Alejandro Galue
    • Constructor Detail

      • DS

        public DS()
    • Method Detail

      • getType

        public DSType getType()
        Gets the type.
        Returns:
        the type
      • setType

        public void setType​(DSType type)
        Sets the type.
        Parameters:
        type - the new type
      • setType

        public void setType​(java.lang.String type)
        Sets the type.
        Parameters:
        type - the new type
      • getCdef

        public java.lang.String getCdef()
        Gets the CDEF.
        Returns:
        the CDEF
      • setCdef

        public void setCdef​(java.lang.String cdef)
        Sets the CDEF.

        The XML may contain spaces that must be removed.

        Parameters:
        cdef - the new CDEF
      • formatEquals

        public boolean formatEquals​(DS ds)
        Format equals.
        Parameters:
        ds - the DS object
        Returns:
        true, if successful
      • isCounter

        public boolean isCounter()
        Description copied from class: AbstractDS
        Checks if the data source is counter.
        Specified by:
        isCounter in class AbstractDS
        Returns:
        true, if the data source is a counter