Class JMXDataSource

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class JMXDataSource
    extends java.lang.Object
    implements java.lang.Cloneable
    This class encapsulates an RRDTool data source. Data source information parsed from the DataCollection.xml file is stored in RRDDataSource objects. For additional information on RRD and RRDTool see: http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool/
    Version:
    1.1.1.1
    Author:
    Mike , OpenNMS , Mike , OpenNMS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      Used to get a duplicate of self.
      int getHeartbeat()
      getHeartbeat
      java.lang.String getInstance()
      Returns the object's instance id.
      java.lang.String getMax()
      getMax
      java.lang.String getMin()
      getMin
      java.lang.String getName()
      Returns the object's name.
      java.lang.String getOid()
      Returns the object's identifier.
      AttributeType getType()
      Returns the object's data type.
      void setHeartbeat​(int heartbeat)
      setHeartbeat
      void setInstance​(java.lang.String instance)
      This method is used to assign the object's instance id.
      void setMax​(java.lang.String maximum)
      setMax
      void setMin​(java.lang.String minimum)
      setMin
      void setName​(java.lang.String name)
      This method is used to assign the data source name.
      void setOid​(java.lang.String oid)
      This method is used to assign the object's identifier.
      void setType​(AttributeType type)
      This method is used to assign the object's expected data type.
      java.lang.String toString()
      This method is responsible for returning a String object which represents the content of this RRDDataSource object.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JMXDataSource

        public JMXDataSource()
        Constructor
      • JMXDataSource

        public JMXDataSource​(JMXDataSource second)
        Class copy constructor. Constructs a new object that is an identical to the passed object, however no data is shared between the two objects. Any changes to one will not affect the other.
        Parameters:
        second - The object to make a duplicate of.
    • Method Detail

      • setOid

        public void setOid​(java.lang.String oid)
        This method is used to assign the object's identifier.
        Parameters:
        oid - - object identifier in dotted decimal notation (e.g., ".1.3.6.1.2.1.1.1")
      • setInstance

        public void setInstance​(java.lang.String instance)
        This method is used to assign the object's instance id.
        Parameters:
        instance - - instance identifier (to be appended to oid)
      • setName

        public void setName​(java.lang.String name)
        This method is used to assign the data source name.
        Parameters:
        name - a String object.
      • getOid

        public java.lang.String getOid()
        Returns the object's identifier.
        Returns:
        The object's identifier string.
      • getInstance

        public java.lang.String getInstance()
        Returns the object's instance id.
        Returns:
        The object's instance id string.
      • getName

        public java.lang.String getName()
        Returns the object's name.
        Returns:
        The object's name.
      • setType

        public void setType​(AttributeType type)
        This method is used to assign the object's expected data type.
        Parameters:
        type - - object's data type
      • setHeartbeat

        public void setHeartbeat​(int heartbeat)

        setHeartbeat

        Parameters:
        heartbeat - a int.
      • setMin

        public void setMin​(java.lang.String minimum)

        setMin

        Parameters:
        minimum - a String object.
      • setMax

        public void setMax​(java.lang.String maximum)

        setMax

        Parameters:
        maximum - a String object.
      • getType

        public AttributeType getType()
        Returns the object's data type.
        Returns:
        The object's data type
      • getHeartbeat

        public int getHeartbeat()

        getHeartbeat

        Returns:
        a int.
      • getMin

        public java.lang.String getMin()

        getMin

        Returns:
        a String object.
      • getMax

        public java.lang.String getMax()

        getMax

        Returns:
        a String object.
      • clone

        public java.lang.Object clone()
        Used to get a duplicate of self. The duplicate is identical to self but shares no common data.
        Overrides:
        clone in class java.lang.Object
      • toString

        public java.lang.String toString()
        This method is responsible for returning a String object which represents the content of this RRDDataSource object. Primarily used for debugging purposes.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String which represents the content of this RRDDataSource object