|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.snmp.Definition
public class Definition
Provides a mechanism for associating one or more specific IP addresses and/or IP address ranges with a set of SNMP parms which will be used in place of the default values during SNMP data collection.
| Constructor Summary | |
|---|---|
Definition()
|
|
| Method Summary | |
|---|---|
void |
addIpMatch(int index,
String vIpMatch)
|
void |
addIpMatch(String vIpMatch)
|
void |
addRange(int index,
Range vRange)
|
void |
addRange(Range vRange)
|
void |
addSpecific(int index,
String vSpecific)
|
void |
addSpecific(String vSpecific)
|
void |
deleteMaxRepetitions()
|
void |
deleteMaxRequestSize()
|
void |
deleteMaxVarsPerPdu()
|
void |
deletePort()
|
void |
deleteRetry()
|
void |
deleteTimeout()
|
Enumeration<String> |
enumerateIpMatch()
Method enumerateIpMatch. |
Enumeration<Range> |
enumerateRange()
Method enumerateRange. |
Enumeration<String> |
enumerateSpecific()
Method enumerateSpecific. |
String |
getAuthPassphrase()
Returns the value of field 'authPassphrase'. |
String |
getAuthProtocol()
Returns the value of field 'authProtocol'. |
String |
getContextEngineId()
Returns the value of field 'contextEngineId'. |
String |
getContextName()
Returns the value of field 'contextName'. |
String |
getEngineId()
Returns the value of field 'engineId'. |
String |
getEnterpriseId()
Returns the value of field 'enterpriseId'. |
String[] |
getIpMatch()
Method getIpMatch.Returns the contents of the collection in an Array. |
String |
getIpMatch(int index)
Method getIpMatch. |
List<String> |
getIpMatchCollection()
Method getIpMatchCollection.Returns a reference to '_ipMatchList'. |
int |
getIpMatchCount()
Method getIpMatchCount. |
int |
getMaxRepetitions()
Returns the value of field 'maxRepetitions'. |
int |
getMaxRequestSize()
Returns the value of field 'maxRequestSize'. |
int |
getMaxVarsPerPdu()
Returns the value of field 'maxVarsPerPdu'. |
int |
getPort()
Returns the value of field 'port'. |
String |
getPrivacyPassphrase()
Returns the value of field 'privacyPassphrase'. |
String |
getPrivacyProtocol()
Returns the value of field 'privacyProtocol'. |
String |
getProxyHost()
Returns the value of field 'proxyHost'. |
Range[] |
getRange()
Method getRange.Returns the contents of the collection in an Array. |
Range |
getRange(int index)
Method getRange. |
List<Range> |
getRangeCollection()
Method getRangeCollection.Returns a reference to '_rangeList'. |
int |
getRangeCount()
Method getRangeCount. |
String |
getReadCommunity()
Returns the value of field 'readCommunity'. |
int |
getRetry()
Returns the value of field 'retry'. |
String |
getSecurityName()
Returns the value of field 'securityName'. |
String[] |
getSpecific()
Method getSpecific.Returns the contents of the collection in an Array. |
String |
getSpecific(int index)
Method getSpecific. |
List<String> |
getSpecificCollection()
Method getSpecificCollection.Returns a reference to '_specificList'. |
int |
getSpecificCount()
Method getSpecificCount. |
int |
getTimeout()
Returns the value of field 'timeout'. |
String |
getVersion()
Returns the value of field 'version'. |
String |
getWriteCommunity()
Returns the value of field 'writeCommunity'. |
boolean |
hasMaxRepetitions()
Method hasMaxRepetitions. |
boolean |
hasMaxRequestSize()
Method hasMaxRequestSize. |
boolean |
hasMaxVarsPerPdu()
Method hasMaxVarsPerPdu. |
boolean |
hasPort()
Method hasPort. |
boolean |
hasRetry()
Method hasRetry. |
boolean |
hasTimeout()
Method hasTimeout. |
boolean |
isValid()
Method isValid. |
Iterator<String> |
iterateIpMatch()
Method iterateIpMatch. |
Iterator<Range> |
iterateRange()
Method iterateRange. |
Iterator<String> |
iterateSpecific()
Method iterateSpecific. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllIpMatch()
|
void |
removeAllRange()
|
void |
removeAllSpecific()
|
boolean |
removeIpMatch(String vIpMatch)
Method removeIpMatch. |
String |
removeIpMatchAt(int index)
Method removeIpMatchAt. |
boolean |
removeRange(Range vRange)
Method removeRange. |
Range |
removeRangeAt(int index)
Method removeRangeAt. |
boolean |
removeSpecific(String vSpecific)
Method removeSpecific. |
String |
removeSpecificAt(int index)
Method removeSpecificAt. |
void |
setAuthPassphrase(String authPassphrase)
Sets the value of field 'authPassphrase'. |
void |
setAuthProtocol(String authProtocol)
Sets the value of field 'authProtocol'. |
void |
setContextEngineId(String contextEngineId)
Sets the value of field 'contextEngineId'. |
void |
setContextName(String contextName)
Sets the value of field 'contextName'. |
void |
setEngineId(String engineId)
Sets the value of field 'engineId'. |
void |
setEnterpriseId(String enterpriseId)
Sets the value of field 'enterpriseId'. |
void |
setIpMatch(int index,
String vIpMatch)
|
void |
setIpMatch(List<String> vIpMatchList)
Sets the value of '_ipMatchList' by copying the given Vector. |
void |
setIpMatch(String[] vIpMatchArray)
|
void |
setIpMatchCollection(List<String> ipMatchList)
Deprecated. |
void |
setMaxRepetitions(int maxRepetitions)
Sets the value of field 'maxRepetitions'. |
void |
setMaxRequestSize(int maxRequestSize)
Sets the value of field 'maxRequestSize'. |
void |
setMaxVarsPerPdu(int maxVarsPerPdu)
Sets the value of field 'maxVarsPerPdu'. |
void |
setPort(int port)
Sets the value of field 'port'. |
void |
setPrivacyPassphrase(String privacyPassphrase)
Sets the value of field 'privacyPassphrase'. |
void |
setPrivacyProtocol(String privacyProtocol)
Sets the value of field 'privacyProtocol'. |
void |
setProxyHost(String proxyHost)
Sets the value of field 'proxyHost'. |
void |
setRange(int index,
Range vRange)
|
void |
setRange(List<Range> vRangeList)
Sets the value of '_rangeList' by copying the given Vector. |
void |
setRange(Range[] vRangeArray)
|
void |
setRangeCollection(List<Range> rangeList)
Deprecated. |
void |
setReadCommunity(String readCommunity)
Sets the value of field 'readCommunity'. |
void |
setRetry(int retry)
Sets the value of field 'retry'. |
void |
setSecurityName(String securityName)
Sets the value of field 'securityName'. |
void |
setSpecific(int index,
String vSpecific)
|
void |
setSpecific(List<String> vSpecificList)
Sets the value of '_specificList' by copying the given Vector. |
void |
setSpecific(String[] vSpecificArray)
|
void |
setSpecificCollection(List<String> specificList)
Deprecated. |
void |
setTimeout(int timeout)
Sets the value of field 'timeout'. |
void |
setVersion(String version)
Sets the value of field 'version'. |
void |
setWriteCommunity(String writeCommunity)
Sets the value of field 'writeCommunity'. |
static Definition |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Definition()
| Method Detail |
|---|
public void addIpMatch(String vIpMatch)
throws IndexOutOfBoundsException
vIpMatch -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addIpMatch(int index,
String vIpMatch)
throws IndexOutOfBoundsException
index - vIpMatch -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addRange(Range vRange)
throws IndexOutOfBoundsException
vRange -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addRange(int index,
Range vRange)
throws IndexOutOfBoundsException
index - vRange -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addSpecific(String vSpecific)
throws IndexOutOfBoundsException
vSpecific -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addSpecific(int index,
String vSpecific)
throws IndexOutOfBoundsException
index - vSpecific -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void deleteMaxRepetitions()
public void deleteMaxRequestSize()
public void deleteMaxVarsPerPdu()
public void deletePort()
public void deleteRetry()
public void deleteTimeout()
public Enumeration<String> enumerateIpMatch()
public Enumeration<Range> enumerateRange()
public Enumeration<String> enumerateSpecific()
public String getAuthPassphrase()
public String getAuthProtocol()
public String getContextEngineId()
public String getContextName()
public String getEngineId()
public String getEnterpriseId()
public String getIpMatch(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getIpMatch()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<String> getIpMatchCollection()
public int getIpMatchCount()
public int getMaxRepetitions()
public int getMaxRequestSize()
public int getMaxVarsPerPdu()
public int getPort()
public String getPrivacyPassphrase()
public String getPrivacyProtocol()
public String getProxyHost()
public Range getRange(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Range[] getRange()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Range> getRangeCollection()
public int getRangeCount()
public String getReadCommunity()
public int getRetry()
public String getSecurityName()
public String getSpecific(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getSpecific()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<String> getSpecificCollection()
public int getSpecificCount()
public int getTimeout()
public String getVersion()
public String getWriteCommunity()
public boolean hasMaxRepetitions()
public boolean hasMaxRequestSize()
public boolean hasMaxVarsPerPdu()
public boolean hasPort()
public boolean hasRetry()
public boolean hasTimeout()
public boolean isValid()
public Iterator<String> iterateIpMatch()
public Iterator<Range> iterateRange()
public Iterator<String> iterateSpecific()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllIpMatch()
public void removeAllRange()
public void removeAllSpecific()
public boolean removeIpMatch(String vIpMatch)
vIpMatch -
public String removeIpMatchAt(int index)
index -
public boolean removeRange(Range vRange)
vRange -
public Range removeRangeAt(int index)
index -
public boolean removeSpecific(String vSpecific)
vSpecific -
public String removeSpecificAt(int index)
index -
public void setAuthPassphrase(String authPassphrase)
authPassphrase - the value of field 'authPassphrase'.public void setAuthProtocol(String authProtocol)
authProtocol - the value of field 'authProtocol'.public void setContextEngineId(String contextEngineId)
contextEngineId - the value of field 'contextEngineId'.public void setContextName(String contextName)
contextName - the value of field 'contextName'.public void setEngineId(String engineId)
engineId - the value of field 'engineId'.public void setEnterpriseId(String enterpriseId)
enterpriseId - the value of field 'enterpriseId'.
public void setIpMatch(int index,
String vIpMatch)
throws IndexOutOfBoundsException
index - vIpMatch -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setIpMatch(String[] vIpMatchArray)
vIpMatchArray - public void setIpMatch(List<String> vIpMatchList)
vIpMatchList - the Vector to copy.public void setIpMatchCollection(List<String> ipMatchList)
ipMatchList - the Vector to set.public void setMaxRepetitions(int maxRepetitions)
maxRepetitions - the value of field 'maxRepetitions'.public void setMaxRequestSize(int maxRequestSize)
maxRequestSize - the value of field 'maxRequestSize'.public void setMaxVarsPerPdu(int maxVarsPerPdu)
maxVarsPerPdu - the value of field 'maxVarsPerPdu'.public void setPort(int port)
port - the value of field 'port'.public void setPrivacyPassphrase(String privacyPassphrase)
privacyPassphrase - the value of field
'privacyPassphrase'.public void setPrivacyProtocol(String privacyProtocol)
privacyProtocol - the value of field 'privacyProtocol'.public void setProxyHost(String proxyHost)
proxyHost - the value of field 'proxyHost'.
public void setRange(int index,
Range vRange)
throws IndexOutOfBoundsException
index - vRange -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setRange(Range[] vRangeArray)
vRangeArray - public void setRange(List<Range> vRangeList)
vRangeList - the Vector to copy.public void setRangeCollection(List<Range> rangeList)
rangeList - the Vector to set.public void setReadCommunity(String readCommunity)
readCommunity - the value of field 'readCommunity'.public void setRetry(int retry)
retry - the value of field 'retry'.public void setSecurityName(String securityName)
securityName - the value of field 'securityName'.
public void setSpecific(int index,
String vSpecific)
throws IndexOutOfBoundsException
index - vSpecific -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setSpecific(String[] vSpecificArray)
vSpecificArray - public void setSpecific(List<String> vSpecificList)
vSpecificList - the Vector to copy.public void setSpecificCollection(List<String> specificList)
specificList - the Vector to set.public void setTimeout(int timeout)
timeout - the value of field 'timeout'.public void setVersion(String version)
version - the value of field 'version'.public void setWriteCommunity(String writeCommunity)
writeCommunity - the value of field 'writeCommunity'.
public static Definition unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||