org.opennms.netmgt.config.datacollection
Class MibObj

java.lang.Object
  extended by org.opennms.netmgt.config.datacollection.MibObj
All Implemented Interfaces:
java.io.Serializable

public class MibObj
extends java.lang.Object
implements java.io.Serializable

a MIB object

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
MibObj()
           
 
Method Summary
 java.lang.String getAlias()
          Returns the value of field 'alias'.
 java.lang.String getInstance()
          Returns the value of field 'instance'.
 java.lang.String getMaxval()
          Returns the value of field 'maxval'.
 java.lang.String getMinval()
          Returns the value of field 'minval'.
 java.lang.String getOid()
          Returns the value of field 'oid'.
 java.lang.String getType()
          Returns the value of field 'type'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setAlias(java.lang.String alias)
          Sets the value of field 'alias'.
 void setInstance(java.lang.String instance)
          Sets the value of field 'instance'.
 void setMaxval(java.lang.String maxval)
          Sets the value of field 'maxval'.
 void setMinval(java.lang.String minval)
          Sets the value of field 'minval'.
 void setOid(java.lang.String oid)
          Sets the value of field 'oid'.
 void setType(java.lang.String type)
          Sets the value of field 'type'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MibObj

public MibObj()
Method Detail

getAlias

public java.lang.String getAlias()
Returns the value of field 'alias'. The field 'alias' has the following description: a human readable name for the object (such as "ifOctetsIn"). NOTE: This value is used as the RRD file name and data source name. RRD only supports data source names up to 19 chars in length. If the SNMP data collector encounters an alias which exceeds 19 characters it will be truncated.

Returns:
String

getInstance

public java.lang.String getInstance()
Returns the value of field 'instance'. The field 'instance' has the following description: instance identifier. Only valid instance identifier values are a positive integer value or the keyword "ifIndex" which indicates that the ifIndex of the interface is to be substituted for the instance value for each interface the oid is retrieved for.

Returns:
String

getMaxval

public java.lang.String getMaxval()
Returns the value of field 'maxval'. The field 'maxval' has the following description: Maximum Value. In order to correctly manage counter wraps, it is possible to add a maximum value for a collection. For example, a 32-bit counter would have a max value of 4294967295.

Returns:
String

getMinval

public java.lang.String getMinval()
Returns the value of field 'minval'. The field 'minval' has the following description: Minimum Value. For completeness, adding the ability to use a minimum value.

Returns:
String

getOid

public java.lang.String getOid()
Returns the value of field 'oid'. The field 'oid' has the following description: object identifier

Returns:
String

getType

public java.lang.String getType()
Returns the value of field 'type'. The field 'type' has the following description: SNMP data type SNMP supported types: counter, gauge, timeticks, integer, octetstring, string. The SNMP type is mapped to one of two RRD supported data types COUNTER or GAUGE, or the string.properties file. The mapping is as follows: SNMP counter -> RRD COUNTER; SNMP gauge, timeticks, integer, octetstring -> RRD GAUGE; SNMP string -> String properties file

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setAlias

public void setAlias(java.lang.String alias)
Sets the value of field 'alias'. The field 'alias' has the following description: a human readable name for the object (such as "ifOctetsIn"). NOTE: This value is used as the RRD file name and data source name. RRD only supports data source names up to 19 chars in length. If the SNMP data collector encounters an alias which exceeds 19 characters it will be truncated.

Parameters:
alias - the value of field 'alias'.

setInstance

public void setInstance(java.lang.String instance)
Sets the value of field 'instance'. The field 'instance' has the following description: instance identifier. Only valid instance identifier values are a positive integer value or the keyword "ifIndex" which indicates that the ifIndex of the interface is to be substituted for the instance value for each interface the oid is retrieved for.

Parameters:
instance - the value of field 'instance'.

setMaxval

public void setMaxval(java.lang.String maxval)
Sets the value of field 'maxval'. The field 'maxval' has the following description: Maximum Value. In order to correctly manage counter wraps, it is possible to add a maximum value for a collection. For example, a 32-bit counter would have a max value of 4294967295.

Parameters:
maxval - the value of field 'maxval'.

setMinval

public void setMinval(java.lang.String minval)
Sets the value of field 'minval'. The field 'minval' has the following description: Minimum Value. For completeness, adding the ability to use a minimum value.

Parameters:
minval - the value of field 'minval'.

setOid

public void setOid(java.lang.String oid)
Sets the value of field 'oid'. The field 'oid' has the following description: object identifier

Parameters:
oid - the value of field 'oid'.

setType

public void setType(java.lang.String type)
Sets the value of field 'type'. The field 'type' has the following description: SNMP data type SNMP supported types: counter, gauge, timeticks, integer, octetstring, string. The SNMP type is mapped to one of two RRD supported data types COUNTER or GAUGE, or the string.properties file. The mapping is as follows: SNMP counter -> RRD COUNTER; SNMP gauge, timeticks, integer, octetstring -> RRD GAUGE; SNMP string -> String properties file

Parameters:
type - the value of field 'type'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.