com.outbackinc.services.protocol.snmp.rmi
Class RMISnmpClient
java.lang.Object
|
+--com.outbackinc.services.protocol.snmp.rmi.RMISnmpClient
- public class RMISnmpClient
- extends java.lang.Object
The RMISnmpClient class is used to retrieve handles to remote services by RMI client
applications. The handles returned are standard non-RMI
interfaces, which can be used identically to the local ones.
Usage: The following code snippet provides an example
of its use:
SnmpOrderInfo cSnmpOrderInfo = new SnmpOrderInfo(2, 3, 0);
CSMSecurityInfo cCSMSecurityInfo = new CSMSecurityInfo(szReadCommunity, szWriteCommunity);
RMISnmpClient cRMISnmpClient = new RMISnmpClient(szRMIServerHostName);
SnmpAuthoritativeSessionFactory cSnmpAuthoritativeSessionFactory
= cRMISnmpClient.getAuthoritativeSessionFactory();
SnmpAuthoritativeSession cRemoteSnmpAuthoritativeSession
= cSnmpAuthoritativeSessionFactory.createRemoteAuthoritativeSession(szManagedHost,
161,
SnmpConstants.SNMP_VERSION_1,
cCSMSecurityInfo);
SnmpService cSnmpService = cRMISnmpClient.getService();
int iVal = cSnmpService.placeGetOrder(cRemoteSnmpAuthoritativeSession,
cSnmpOrderInfo,
szOIDs,
this,
iOrderNumStart);
Constructor Summary |
RMISnmpClient(java.lang.String host)
Constructor - Create an RMISnmpClient attached to a particular host. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMISnmpClient
public RMISnmpClient(java.lang.String host)
throws java.rmi.RemoteException,
java.rmi.NotBoundException,
java.net.MalformedURLException
- Constructor - Create an RMISnmpClient attached to a particular host.
- Parameters:
host
- host where the RMI-enabled jSNMP server is running- Throws:
java.rmi.RemoteException
- RMI communication-related remote method error during naming of SnmpServer, SnmpTrapProfileFactory, or SnmpAuthoritativeSessionFactory on "host"java.rmi.NotBoundException
- RMI error looking up associated binding in the registry on "host" for SnmpServer, SnmpTrapProfileFactory, or SnmpAuthoritativeSessionFactoryjava.net.MalformedURLException
- RMI malformed URL error on "host" during naming of SnmpServer, SnmpTrapProfileFactory, or SnmpAuthoritativeSessionFactory
getService
public SnmpService getService()
- Get the jSNMP interface of an SnmpService.
- Returns:
- jSNMP interface of an SnmpService
getTrapProfileFactory
public SnmpTrapProfileFactory getTrapProfileFactory()
- Get the jSNMP trap profile factory, used to create trap profiles.
- Returns:
- jSNMP trap profile factory
getAuthoritativeSessionFactory
public SnmpAuthoritativeSessionFactory getAuthoritativeSessionFactory()
- Get the jSNMP session factory, used to create authoritative sessions.
- Returns:
- jSNMP session factory
Home Services Products Purchase Contact Us About Us Legal Ceramics
Copyright © 2003-2008 jSNMP Enterprises All rights reserved.