|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.snmp.SnmpConfig
public class SnmpConfig
Top-level element for the snmp-config.xml configuration file.
| Constructor Summary | |
|---|---|
SnmpConfig()
|
|
| Method Summary | |
|---|---|
void |
addDefinition(Definition vDefinition)
Method addDefinition |
void |
addDefinition(int index,
Definition vDefinition)
Method addDefinition |
void |
clearDefinition()
Method clearDefinition |
void |
deleteMaxRepetitions()
Method deleteMaxRepetitions |
void |
deleteMaxRequestSize()
Method deleteMaxRequestSize |
void |
deleteMaxVarsPerPdu()
Method deleteMaxVarsPerPdu |
void |
deletePort()
Method deletePort |
void |
deleteRetry()
Method deleteRetry |
void |
deleteTimeout()
Method deleteTimeout |
java.util.Enumeration |
enumerateDefinition()
Method enumerateDefinition |
java.lang.String |
getAuthPassphrase()
Returns the value of field 'authPassphrase'. |
java.lang.String |
getAuthProtocol()
Returns the value of field 'authProtocol'. |
java.lang.String |
getContextEngineId()
Returns the value of field 'contextEngineId'. |
java.lang.String |
getContextName()
Returns the value of field 'contextName'. |
Definition[] |
getDefinition()
Method getDefinition |
Definition |
getDefinition(int index)
Method getDefinition |
java.util.ArrayList |
getDefinitionCollection()
Method getDefinitionCollection Returns a reference to 'definition'. |
int |
getDefinitionCount()
Method getDefinitionCount |
java.lang.String |
getEngineId()
Returns the value of field 'engineId'. |
java.lang.String |
getEnterpriseId()
Returns the value of field 'enterpriseId'. |
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'. |
java.lang.String |
getPrivacyPassphrase()
Returns the value of field 'privacyPassphrase'. |
java.lang.String |
getPrivacyProtocol()
Returns the value of field 'privacyProtocol'. |
java.lang.String |
getProxyHost()
Returns the value of field 'proxyHost'. |
java.lang.String |
getReadCommunity()
Returns the value of field 'readCommunity'. |
int |
getRetry()
Returns the value of field 'retry'. |
java.lang.String |
getSecurityName()
Returns the value of field 'securityName'. |
int |
getTimeout()
Returns the value of field 'timeout'. |
java.lang.String |
getVersion()
Returns the value of field 'version'. |
java.lang.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 |
void |
marshal(org.xml.sax.ContentHandler handler)
Method marshal |
void |
marshal(java.io.Writer out)
Method marshal |
boolean |
removeDefinition(Definition vDefinition)
Method removeDefinition |
void |
setAuthPassphrase(java.lang.String authPassphrase)
Sets the value of field 'authPassphrase'. |
void |
setAuthProtocol(java.lang.String authProtocol)
Sets the value of field 'authProtocol'. |
void |
setContextEngineId(java.lang.String contextEngineId)
Sets the value of field 'contextEngineId'. |
void |
setContextName(java.lang.String contextName)
Sets the value of field 'contextName'. |
void |
setDefinition(java.util.ArrayList definitionCollection)
Method setDefinition Sets the value of 'definition' by copying the given ArrayList. |
void |
setDefinition(Definition[] definitionArray)
Method setDefinition |
void |
setDefinition(int index,
Definition vDefinition)
Method setDefinition |
void |
setDefinitionCollection(java.util.ArrayList definitionCollection)
Method setDefinitionCollection Sets the value of 'definition' by setting it to the given ArrayList. |
void |
setEngineId(java.lang.String engineId)
Sets the value of field 'engineId'. |
void |
setEnterpriseId(java.lang.String enterpriseId)
Sets the value of field 'enterpriseId'. |
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(java.lang.String privacyPassphrase)
Sets the value of field 'privacyPassphrase'. |
void |
setPrivacyProtocol(java.lang.String privacyProtocol)
Sets the value of field 'privacyProtocol'. |
void |
setProxyHost(java.lang.String proxyHost)
Sets the value of field 'proxyHost'. |
void |
setReadCommunity(java.lang.String readCommunity)
Sets the value of field 'readCommunity'. |
void |
setRetry(int retry)
Sets the value of field 'retry'. |
void |
setSecurityName(java.lang.String securityName)
Sets the value of field 'securityName'. |
void |
setTimeout(int timeout)
Sets the value of field 'timeout'. |
void |
setVersion(java.lang.String version)
Sets the value of field 'version'. |
void |
setWriteCommunity(java.lang.String writeCommunity)
Sets the value of field 'writeCommunity'. |
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 |
|---|
public SnmpConfig()
| Method Detail |
|---|
public void addDefinition(Definition vDefinition)
throws java.lang.IndexOutOfBoundsException
vDefinition -
java.lang.IndexOutOfBoundsException
public void addDefinition(int index,
Definition vDefinition)
throws java.lang.IndexOutOfBoundsException
index - vDefinition -
java.lang.IndexOutOfBoundsExceptionpublic void clearDefinition()
public void deleteMaxRepetitions()
public void deleteMaxRequestSize()
public void deleteMaxVarsPerPdu()
public void deletePort()
public void deleteRetry()
public void deleteTimeout()
public java.util.Enumeration enumerateDefinition()
public java.lang.String getAuthPassphrase()
public java.lang.String getAuthProtocol()
public java.lang.String getContextEngineId()
public java.lang.String getContextName()
public Definition getDefinition(int index)
throws java.lang.IndexOutOfBoundsException
index -
java.lang.IndexOutOfBoundsExceptionpublic Definition[] getDefinition()
public java.util.ArrayList getDefinitionCollection()
public int getDefinitionCount()
public java.lang.String getEngineId()
public java.lang.String getEnterpriseId()
public int getMaxRepetitions()
public int getMaxRequestSize()
public int getMaxVarsPerPdu()
public int getPort()
public java.lang.String getPrivacyPassphrase()
public java.lang.String getPrivacyProtocol()
public java.lang.String getProxyHost()
public java.lang.String getReadCommunity()
public int getRetry()
public java.lang.String getSecurityName()
public int getTimeout()
public java.lang.String getVersion()
public java.lang.String getWriteCommunity()
public boolean hasMaxRepetitions()
public boolean hasMaxRequestSize()
public boolean hasMaxVarsPerPdu()
public boolean hasPort()
public boolean hasRetry()
public boolean hasTimeout()
public boolean isValid()
public void marshal(java.io.Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void marshal(org.xml.sax.ContentHandler handler)
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic boolean removeDefinition(Definition vDefinition)
vDefinition -
public void setAuthPassphrase(java.lang.String authPassphrase)
authPassphrase - the value of field 'authPassphrase'.public void setAuthProtocol(java.lang.String authProtocol)
authProtocol - the value of field 'authProtocol'.public void setContextEngineId(java.lang.String contextEngineId)
contextEngineId - the value of field 'contextEngineId'.public void setContextName(java.lang.String contextName)
contextName - the value of field 'contextName'.
public void setDefinition(int index,
Definition vDefinition)
throws java.lang.IndexOutOfBoundsException
index - vDefinition -
java.lang.IndexOutOfBoundsExceptionpublic void setDefinition(Definition[] definitionArray)
definitionArray - public void setDefinition(java.util.ArrayList definitionCollection)
definitionCollection - the Vector to copy.public void setDefinitionCollection(java.util.ArrayList definitionCollection)
definitionCollection - the ArrayList to copy.public void setEngineId(java.lang.String engineId)
engineId - the value of field 'engineId'.public void setEnterpriseId(java.lang.String enterpriseId)
enterpriseId - the value of field 'enterpriseId'.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(java.lang.String privacyPassphrase)
privacyPassphrase - the value of field
'privacyPassphrase'.public void setPrivacyProtocol(java.lang.String privacyProtocol)
privacyProtocol - the value of field 'privacyProtocol'.public void setProxyHost(java.lang.String proxyHost)
proxyHost - the value of field 'proxyHost'.public void setReadCommunity(java.lang.String readCommunity)
readCommunity - the value of field 'readCommunity'.public void setRetry(int retry)
retry - the value of field 'retry'.public void setSecurityName(java.lang.String securityName)
securityName - the value of field 'securityName'.public void setTimeout(int timeout)
timeout - the value of field 'timeout'.public void setVersion(java.lang.String version)
version - the value of field 'version'.public void setWriteCommunity(java.lang.String writeCommunity)
writeCommunity - the value of field 'writeCommunity'.
public static java.lang.Object unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||