org.opennms.netmgt.config.modelimport
Class Interface

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

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

A network interface.

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

Constructor Summary
Interface()
           
 
Method Summary
 void addCategory(Category vCategory)
          Method addCategory
 void addCategory(int index, Category vCategory)
          Method addCategory
 void addMonitoredService(int index, MonitoredService vMonitoredService)
          Method addMonitoredService
 void addMonitoredService(MonitoredService vMonitoredService)
          Method addMonitoredService
 void clearCategory()
          Method clearCategory
 void clearMonitoredService()
          Method clearMonitoredService
 void deleteManaged()
          Method deleteManaged
 void deleteStatus()
          Method deleteStatus
 java.util.Enumeration enumerateCategory()
          Method enumerateCategory
 java.util.Enumeration enumerateMonitoredService()
          Method enumerateMonitoredService
 Category[] getCategory()
          Method getCategory
 Category getCategory(int index)
          Method getCategory
 java.util.ArrayList getCategoryCollection()
          Method getCategoryCollection Returns a reference to 'category'.
 int getCategoryCount()
          Method getCategoryCount
 java.lang.Object getDescr()
          Returns the value of field 'descr'.
 java.lang.String getIpAddr()
          Returns the value of field 'ipAddr'.
 boolean getManaged()
          Returns the value of field 'managed'.
 MonitoredService[] getMonitoredService()
          Method getMonitoredService
 MonitoredService getMonitoredService(int index)
          Method getMonitoredService
 java.util.ArrayList getMonitoredServiceCollection()
          Method getMonitoredServiceCollection Returns a reference to 'monitoredService'.
 int getMonitoredServiceCount()
          Method getMonitoredServiceCount
 java.lang.String getSnmpPrimary()
          Returns the value of field 'snmpPrimary'.
 int getStatus()
          Returns the value of field 'status'.
 boolean hasManaged()
          Method hasManaged
 boolean hasStatus()
          Method hasStatus
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeCategory(Category vCategory)
          Method removeCategory
 boolean removeMonitoredService(MonitoredService vMonitoredService)
          Method removeMonitoredService
 void setCategory(java.util.ArrayList categoryCollection)
          Method setCategory Sets the value of 'category' by copying the given ArrayList.
 void setCategory(Category[] categoryArray)
          Method setCategory
 void setCategory(int index, Category vCategory)
          Method setCategory
 void setCategoryCollection(java.util.ArrayList categoryCollection)
          Method setCategoryCollection Sets the value of 'category' by setting it to the given ArrayList.
 void setDescr(java.lang.Object descr)
          Sets the value of field 'descr'.
 void setIpAddr(java.lang.String ipAddr)
          Sets the value of field 'ipAddr'.
 void setManaged(boolean managed)
          Sets the value of field 'managed'.
 void setMonitoredService(java.util.ArrayList monitoredServiceCollection)
          Method setMonitoredService Sets the value of 'monitoredService' by copying the given ArrayList.
 void setMonitoredService(int index, MonitoredService vMonitoredService)
          Method setMonitoredService
 void setMonitoredService(MonitoredService[] monitoredServiceArray)
          Method setMonitoredService
 void setMonitoredServiceCollection(java.util.ArrayList monitoredServiceCollection)
          Method setMonitoredServiceCollection Sets the value of 'monitoredService' by setting it to the given ArrayList.
 void setSnmpPrimary(java.lang.String snmpPrimary)
          Sets the value of field 'snmpPrimary'.
 void setStatus(int status)
          Sets the value of field 'status'.
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

Interface

public Interface()
Method Detail

addCategory

public void addCategory(Category vCategory)
                 throws java.lang.IndexOutOfBoundsException
Method addCategory

Parameters:
vCategory -
Throws:
java.lang.IndexOutOfBoundsException

addCategory

public void addCategory(int index,
                        Category vCategory)
                 throws java.lang.IndexOutOfBoundsException
Method addCategory

Parameters:
index -
vCategory -
Throws:
java.lang.IndexOutOfBoundsException

addMonitoredService

public void addMonitoredService(MonitoredService vMonitoredService)
                         throws java.lang.IndexOutOfBoundsException
Method addMonitoredService

Parameters:
vMonitoredService -
Throws:
java.lang.IndexOutOfBoundsException

addMonitoredService

public void addMonitoredService(int index,
                                MonitoredService vMonitoredService)
                         throws java.lang.IndexOutOfBoundsException
Method addMonitoredService

Parameters:
index -
vMonitoredService -
Throws:
java.lang.IndexOutOfBoundsException

clearCategory

public void clearCategory()
Method clearCategory


clearMonitoredService

public void clearMonitoredService()
Method clearMonitoredService


deleteManaged

public void deleteManaged()
Method deleteManaged


deleteStatus

public void deleteStatus()
Method deleteStatus


enumerateCategory

public java.util.Enumeration enumerateCategory()
Method enumerateCategory

Returns:
Enumeration

enumerateMonitoredService

public java.util.Enumeration enumerateMonitoredService()
Method enumerateMonitoredService

Returns:
Enumeration

getCategory

public Category getCategory(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getCategory

Parameters:
index -
Returns:
Category
Throws:
java.lang.IndexOutOfBoundsException

getCategory

public Category[] getCategory()
Method getCategory

Returns:
Category

getCategoryCollection

public java.util.ArrayList getCategoryCollection()
Method getCategoryCollection Returns a reference to 'category'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getCategoryCount

public int getCategoryCount()
Method getCategoryCount

Returns:
int

getDescr

public java.lang.Object getDescr()
Returns the value of field 'descr'. The field 'descr' has the following description: This will be used to set a description field. Currently a calculation of (ifDescr | ifName | ifAlias)

Returns:
Object

getIpAddr

public java.lang.String getIpAddr()
Returns the value of field 'ipAddr'.

Returns:
String

getManaged

public boolean getManaged()
Returns the value of field 'managed'.

Returns:
boolean

getMonitoredService

public MonitoredService getMonitoredService(int index)
                                     throws java.lang.IndexOutOfBoundsException
Method getMonitoredService

Parameters:
index -
Returns:
MonitoredService
Throws:
java.lang.IndexOutOfBoundsException

getMonitoredService

public MonitoredService[] getMonitoredService()
Method getMonitoredService

Returns:
MonitoredService

getMonitoredServiceCollection

public java.util.ArrayList getMonitoredServiceCollection()
Method getMonitoredServiceCollection Returns a reference to 'monitoredService'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getMonitoredServiceCount

public int getMonitoredServiceCount()
Method getMonitoredServiceCount

Returns:
int

getSnmpPrimary

public java.lang.String getSnmpPrimary()
Returns the value of field 'snmpPrimary'. The field 'snmpPrimary' has the following description: This attribute is used by OpenNMS to control SNMP data collection. P - Primary interface. This is the "preferred interface used in data collection. S - Secondary interface. This interface meets all the qualifications to be a primary interface. C - Collectable interface. This is a manual setting controlled by the user. N - Not a collectable interface. This is a manual setting controlled by the user. If the snmpStorageFlag is set to "all", then all interfaces not set to 'N' will be collected. If the snmpStorageFlag is set to "select", then all interfaces with 'P|S|C' will be collected. If the snmpStorageFlag is set to "primary", then only the interfaces set to 'P' will be collected.

Returns:
String

getStatus

public int getStatus()
Returns the value of field 'status'. The field 'status' has the following description: Set this optional value to 3 to indicate "testing". Any other value is ignored.

Returns:
int

hasManaged

public boolean hasManaged()
Method hasManaged

Returns:
boolean

hasStatus

public boolean hasStatus()
Method hasStatus

Returns:
boolean

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

removeCategory

public boolean removeCategory(Category vCategory)
Method removeCategory

Parameters:
vCategory -
Returns:
boolean

removeMonitoredService

public boolean removeMonitoredService(MonitoredService vMonitoredService)
Method removeMonitoredService

Parameters:
vMonitoredService -
Returns:
boolean

setCategory

public void setCategory(int index,
                        Category vCategory)
                 throws java.lang.IndexOutOfBoundsException
Method setCategory

Parameters:
index -
vCategory -
Throws:
java.lang.IndexOutOfBoundsException

setCategory

public void setCategory(Category[] categoryArray)
Method setCategory

Parameters:
categoryArray -

setCategory

public void setCategory(java.util.ArrayList categoryCollection)
Method setCategory Sets the value of 'category' by copying the given ArrayList.

Parameters:
categoryCollection - the Vector to copy.

setCategoryCollection

public void setCategoryCollection(java.util.ArrayList categoryCollection)
Method setCategoryCollection Sets the value of 'category' by setting it to the given ArrayList. No type checking is performed.

Parameters:
categoryCollection - the ArrayList to copy.

setDescr

public void setDescr(java.lang.Object descr)
Sets the value of field 'descr'. The field 'descr' has the following description: This will be used to set a description field. Currently a calculation of (ifDescr | ifName | ifAlias)

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

setIpAddr

public void setIpAddr(java.lang.String ipAddr)
Sets the value of field 'ipAddr'.

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

setManaged

public void setManaged(boolean managed)
Sets the value of field 'managed'.

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

setMonitoredService

public void setMonitoredService(int index,
                                MonitoredService vMonitoredService)
                         throws java.lang.IndexOutOfBoundsException
Method setMonitoredService

Parameters:
index -
vMonitoredService -
Throws:
java.lang.IndexOutOfBoundsException

setMonitoredService

public void setMonitoredService(MonitoredService[] monitoredServiceArray)
Method setMonitoredService

Parameters:
monitoredServiceArray -

setMonitoredService

public void setMonitoredService(java.util.ArrayList monitoredServiceCollection)
Method setMonitoredService Sets the value of 'monitoredService' by copying the given ArrayList.

Parameters:
monitoredServiceCollection - the Vector to copy.

setMonitoredServiceCollection

public void setMonitoredServiceCollection(java.util.ArrayList monitoredServiceCollection)
Method setMonitoredServiceCollection Sets the value of 'monitoredService' by setting it to the given ArrayList. No type checking is performed.

Parameters:
monitoredServiceCollection - the ArrayList to copy.

setSnmpPrimary

public void setSnmpPrimary(java.lang.String snmpPrimary)
Sets the value of field 'snmpPrimary'. The field 'snmpPrimary' has the following description: This attribute is used by OpenNMS to control SNMP data collection. P - Primary interface. This is the "preferred interface used in data collection. S - Secondary interface. This interface meets all the qualifications to be a primary interface. C - Collectable interface. This is a manual setting controlled by the user. N - Not a collectable interface. This is a manual setting controlled by the user. If the snmpStorageFlag is set to "all", then all interfaces not set to 'N' will be collected. If the snmpStorageFlag is set to "select", then all interfaces with 'P|S|C' will be collected. If the snmpStorageFlag is set to "primary", then only the interfaces set to 'P' will be collected.

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

setStatus

public void setStatus(int status)
Sets the value of field 'status'. The field 'status' has the following description: Set this optional value to 3 to indicate "testing". Any other value is ignored.

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

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.