|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Factory interface which creates SnmpAuthoritativeSessions and retrieves information from SnmpAuthoritativeSessions.
Usage: The following code snippet provides an example of its use:
SnmpOrderInfo cSnmpOrderInfo = new SnmpOrderInfo(2, 3, 0); CSMSecurityInfo cCSMSecurityInfo = new CSMSecurityInfo(szReadCommunity, szWriteCommunity); SnmpAuthoritativeSessionFactory cSnmpAuthoritativeSessionFactory = SnmpLocalInterfaces.getAuthoritativeSessionFactory(); SnmpAuthoritativeSession cRemoteSnmpAuthoritativeSession = cSnmpAuthoritativeSessionFactory.createRemoteAuthoritativeSession(szManagedHost, 161, SnmpConstants.SNMP_VERSION_1, cCSMSecurityInfo); SnmpService cSnmpService = SnmpLocalInterfaces.getService(); SnmpServiceConfiguration cSnmpServiceConfiguration = SnmpLocalInterfaces.getServiceConfiguration(cSnmpService); cSnmpServiceConfiguration.setBufferDelay(0); int iVal = cSnmpService.placeGetOrder(cRemoteSnmpAuthoritativeSession, cSnmpOrderInfo, szOIDs, this, iOrderNumStart);
Method Summary | |
SnmpAuthoritativeSession |
createLocalAuthoritativeSession(java.lang.String szAgentAddress,
int iAgentPort,
byte[] bContextEngineID,
byte[] bContextName,
SnmpSecurityInfo cSnmpSecurityInfo)
Constructs a SNMPV3 local authoritative session with an agent through an SNMP entity with a known context. |
SnmpAuthoritativeSession |
createLocalAuthoritativeSession(java.lang.String szAgentAddress,
int iAgentPort,
int iSnmpVersion,
SnmpSecurityInfo cSnmpSecurityInfo)
Constructs a local authoritative session with an agent. |
SnmpAuthoritativeSession |
createLocalAuthoritativeSession(java.lang.String szAgentAddress,
int iAgentPort,
java.lang.String szContextEngineID,
java.lang.String szContextName,
SnmpSecurityInfo cSnmpSecurityInfo)
Deprecated. as of jSNMP v3.1.1 by createLocalAuthoritativeSession(String szAgentAddress, int iAgentPort, byte[] bContextEngineID, byte[] bContextName, SnmpSecurityInfo cSnmpSecurityInfo) |
SnmpAuthoritativeSession |
createRemoteAuthoritativeSession(java.lang.String szAgentAddress,
int iAgentPort,
byte[] bContextEngineID,
byte[] bContextName,
SnmpSecurityInfo cSnmpSecurityInfo)
Constructs a remote authoritative session with an agent through an SNMP entity with a known context. |
SnmpAuthoritativeSession |
createRemoteAuthoritativeSession(java.lang.String szAgentAddress,
int iAgentPort,
int iSnmpVersion,
SnmpSecurityInfo cSnmpSecurityInfo)
Constructs a remote authoritative session with an agent. |
SnmpAuthoritativeSession |
createRemoteAuthoritativeSession(java.lang.String szAgentAddress,
int iAgentPort,
java.lang.String szContextEngineID,
java.lang.String szContextName,
SnmpSecurityInfo cSnmpSecurityInfo)
Deprecated. as of jSNMP v3.1.1 by createRemoteAuthoritativeSession(String szAgentAddress, int iAgentPort, byte[] bContextEngineID, byte[] bContextName, SnmpSecurityInfo cSnmpSecurityInfo) |
java.net.InetAddress |
getAgentAddress(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Get the SNMP agent's address used in 'cSnmpAuthoritativeSession'. |
java.lang.String |
getAgentHostIPAddress(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Get the SNMP agent's IP address used in 'cSnmpAuthoritativeSession'. |
java.lang.String |
getAgentHostName(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Get the SNMP agent's host name used in 'cSnmpAuthoritativeSession'. |
int |
getAgentHostPort(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Get the SNMP agent's port used in 'cSnmpAuthoritativeSession'. |
java.lang.String |
getContextEngineID(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Deprecated. as of jSNMP v3.1.1 by getContextEngineIDBytes(SnmpAuthoritativeSession cSnmpAuthoritativeSession) |
byte[] |
getContextEngineIDBytes(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Get the context engine ID used in 'cSnmpAuthoritativeSession'. |
java.lang.String |
getContextName(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Deprecated. as of jSNMP v3.1.1 by getContextNameBytes(SnmpAuthoritativeSession cSnmpAuthoritativeSession) |
byte[] |
getContextNameBytes(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Get the context name used in 'cSnmpAuthoritativeSession'. |
SnmpSecurityInfo |
getSnmpSecurityInfo(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Get the security information used in 'cSnmpAuthoritativeSession'. |
SnmpSecurityToken |
getSnmpSecurityToken(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Get the security token for 'cSnmpAuthoritativeSession'; the class type of the returned object is SecurityModel dependent, and the session object needs to know nothing about it. |
int |
getSnmpVersion(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Get the SNMP version used in 'cSnmpAuthoritativeSession'. |
boolean |
isRemote(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Determine if 'SnmpAuthoritativeSession cSnmpAuthoritativeSession' is 'remote' or 'local'. |
Method Detail |
public SnmpAuthoritativeSession createRemoteAuthoritativeSession(java.lang.String szAgentAddress, int iAgentPort, byte[] bContextEngineID, byte[] bContextName, SnmpSecurityInfo cSnmpSecurityInfo) throws java.net.UnknownHostException, SnmpSecurityException
szAgentAddress
- address of the proxy serviceiAgentPort
- port of the proxy serviceiSnmpVersion
- SNMP version (SnmpConstants.SNMP_VERSION_1, SnmpConstants.SNMP_VERSION_2, or SnmpConstants.SNMP_VERSION_3 only)bContextEngineID
- engine ID of the entity that will process and respond to our requests, and/or send traps (SNMPv3).bContextName
- name of the context within the entity to handle messages (SNMPv3).cSnmpSecurityInfo
- security informationjava.net.UnknownHostException
- if the szAgentAddress is not found through DNSSnmpSecurityException
- if fail to assign security tokenpublic SnmpAuthoritativeSession createRemoteAuthoritativeSession(java.lang.String szAgentAddress, int iAgentPort, java.lang.String szContextEngineID, java.lang.String szContextName, SnmpSecurityInfo cSnmpSecurityInfo) throws java.net.UnknownHostException, SnmpSecurityException
szAgentAddress
- address of the proxy serviceiAgentPort
- port of the proxy serviceiSnmpVersion
- SNMP version (SnmpConstants.SNMP_VERSION_1, SnmpConstants.SNMP_VERSION_2, or SnmpConstants.SNMP_VERSION_3 only)szContextEngineID
- engine ID of the entity that will process and respond to our requests, and/or send traps (SNMPv3).szContextName
- name of the context within the entity to handle messages (SNMPv3).cSnmpSecurityInfo
- security informationjava.net.UnknownHostException
- if the szAgentAddress is not found through DNSSnmpSecurityException
- if fail to assign security tokenpublic SnmpAuthoritativeSession createRemoteAuthoritativeSession(java.lang.String szAgentAddress, int iAgentPort, int iSnmpVersion, SnmpSecurityInfo cSnmpSecurityInfo) throws java.net.UnknownHostException, SnmpSecurityException
szAgentAddress
- address of the serviceiAgentPort
- port of the serviceiSnmpVersion
- SNMP version (SnmpConstants.SNMP_VERSION_1, SnmpConstants.SNMP_VERSION_2, or SnmpConstants.SNMP_VERSION_3 only)cSnmpSecurityInfo
- security informationjava.net.UnknownHostException
- if the szAgentAddress is not found through DNSSnmpSecurityException
- if fail to assign security tokenpublic SnmpAuthoritativeSession createLocalAuthoritativeSession(java.lang.String szAgentAddress, int iAgentPort, byte[] bContextEngineID, byte[] bContextName, SnmpSecurityInfo cSnmpSecurityInfo) throws java.net.UnknownHostException, SnmpSecurityException
szAgentAddress
- address of the serviceiAgentPort
- port of the servicebContextEngineID
- engine ID of the entity that will process and respond to our requests, and/or send traps (SNMPv3).bContextName
- name of the context within the entity to handle messages (SNMPv3).cSnmpSecurityInfo
- security informationjava.net.UnknownHostException
- if the szAgentAddress is not found through DNSSnmpSecurityException
- if fail to assign security tokenpublic SnmpAuthoritativeSession createLocalAuthoritativeSession(java.lang.String szAgentAddress, int iAgentPort, java.lang.String szContextEngineID, java.lang.String szContextName, SnmpSecurityInfo cSnmpSecurityInfo) throws java.net.UnknownHostException, SnmpSecurityException
szAgentAddress
- address of the serviceiAgentPort
- port of the serviceszContextEngineID
- engine ID of the entity that will process and respond to our requests, and/or send traps (SNMPv3).szContextName
- name of the context within the entity to handle messages (SNMPv3).cSnmpSecurityInfo
- security informationjava.net.UnknownHostException
- if the szAgentAddress is not found through DNSSnmpSecurityException
- if fail to assign security tokenpublic SnmpAuthoritativeSession createLocalAuthoritativeSession(java.lang.String szAgentAddress, int iAgentPort, int iSnmpVersion, SnmpSecurityInfo cSnmpSecurityInfo) throws java.net.UnknownHostException, SnmpSecurityException
szAgentAddress
- address of the serviceiAgentPort
- port of the serviceiSnmpVersion
- SNMP version (SnmpConstants.SNMP_VERSION_1, SnmpConstants.SNMP_VERSION_2, or SnmpConstants.SNMP_VERSION_3 only)cSnmpSecurityInfo
- security informationjava.net.UnknownHostException
- if the szAgentAddress is not found through DNSjava.lang.IllegalArgumentException
- if either invalid iAgentPort or iSnmpVersionSnmpSecurityException
- if fail to assign security tokenpublic java.lang.String getAgentHostIPAddress(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic java.lang.String getAgentHostName(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic java.net.InetAddress getAgentAddress(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic int getAgentHostPort(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic int getSnmpVersion(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic SnmpSecurityInfo getSnmpSecurityInfo(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic byte[] getContextEngineIDBytes(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic byte[] getContextNameBytes(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic java.lang.String getContextEngineID(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic java.lang.String getContextName(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic SnmpSecurityToken getSnmpSecurityToken(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative sessionpublic boolean isRemote(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
cSnmpAuthoritativeSession
- local or remote authoritative session
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Home Services Products Purchase Contact Us About Us Legal Ceramics
Copyright © 2003-2008 jSNMP Enterprises All rights reserved.