|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This RMI interface is an SNMP Trap Receiver for use with RMI clients. This RMI interface defines the set of services accessible remotely from an RMI client to the RMI server. By obtaining a remote reference to the object implementing this interface, the RMI client application can perform RMI calls.
Please see the RMI client examples for more information on getting started using the RMI APIs. You will find it very useful to get familiar with the com.adventnet.snmp.beans package before using the RMI APIs, since the RMI APIs mirror and are derived from the beans equivalents.
| Method Summary | |
void |
addTrapListener(TrapListener l)
Add a listener for events from this target. |
void |
cleanup()
This cleans up the common connection if no one using |
void |
createUserEntry(byte[] engineID,
byte secLevel)
to create a User entry in USMUser Table |
java.lang.String |
getAuthPassword()
get AuthPassword |
int |
getAuthProtocol()
get AuthProtocol |
java.lang.String |
getCommunity()
Get the SNMP Community |
java.lang.String |
getcontextID()
Deprecated. Replaced with getContextID() |
java.lang.String |
getContextName()
Get the SNMP V3 Context name |
java.lang.String[] |
getLocalAddresses()
Get the local addresses to listen on. |
java.lang.String |
getMibModules()
Get the MIBs loaded in this applet/application - a white-space separated list of mib files. |
MibOperations |
getMibOperations()
Get the MibOperations object reference. |
int |
getPort()
Get the local SNMP port number to listen on. |
java.lang.String |
getPrincipal()
get Principal ie userName |
java.lang.String |
getPrivPassword()
get AuthPassword |
int |
getReceiveBufferSize()
This method returns the buffer size of this SnmpTrapReceiver. |
int |
getSecurityModel()
get the SNMP V3 securityModel |
java.lang.Object |
getSecurityTable(int secModel)
|
int |
getSnmpVersion()
Get the SNMP Version |
void |
initSecurityProvider()
|
boolean |
isSupportedSecurityModel(int secModel)
|
void |
loadMibs(java.lang.String mibs)
Load the mibs specified by white-space separated list of mibs. |
void |
releaseResources()
Though the resources will be cleaned up by the garbage collector, if the application is no more using the SnmpTrapReceiver instances, this method can be used to immediately release the resources. |
void |
removeTrapListener(TrapListener l)
Remove a listener for events from this target. |
void |
setAuthPassword(java.lang.String passwd)
set the Authentication password |
void |
setAuthProtocol(int protocol)
set the Authentication protocol |
void |
setCommunity(java.lang.String s)
Set the SNMP Community |
void |
setcontextID(byte[] ctxtID)
Deprecated. Replaced with setContextID(byte[] ctxtID) |
void |
setContextID(byte[] ctxtID)
set the SNMP V3 contextID |
void |
setContextName(java.lang.String cName)
Set the SNMP V3 Context name |
void |
setDebug(boolean debug)
determine is debug output will be printed |
void |
setLocalAddresses(java.lang.String[] addresses)
Set the local SNMP port number to listen on. |
void |
setMibModules(java.lang.String mibs)
Set the MIBs loaded in this applet/application - a white-space separated list of mib files. |
void |
setPort(int i)
Set the local SNMP port number to listen on. |
void |
setPortWithExceptionMsg(int i)
set the local SNMP port number to listen on and throws SnmpException in case of BindException. |
void |
setPrincipal(java.lang.String principal)
Set the Username |
void |
setPrivPassword(java.lang.String passwd)
set the Privacy password |
void |
setReceiveBufferSize(int size)
This method sets the buffer size of this SnmpTrapReceiver. |
void |
setSecurityModel(int securityModel)
set the SNMP V3 SecurityModel |
void |
setSnmpVersion(int version)
Set the SNMP Version |
| Method Detail |
public void releaseResources()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void loadMibs(java.lang.String mibs)
throws java.rmi.RemoteException
MibException - is thrown upon parse errors.
java.io.IOException - is thrown upon IO errors.
java.io.FileNotFoundException - is thrown if the file is not found.
java.rmi.RemoteException
public void addTrapListener(TrapListener l)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void removeTrapListener(TrapListener l)
throws java.rmi.RemoteException
java.rmi.RemoteException
public MibOperations getMibOperations()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setDebug(boolean debug)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getMibModules()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setMibModules(java.lang.String mibs)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void cleanup()
throws java.rmi.RemoteException
java.lang.Throwable - in case of finalization errors
java.rmi.RemoteException
public java.lang.String[] getLocalAddresses()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setLocalAddresses(java.lang.String[] addresses)
throws java.rmi.RemoteException
java.rmi.RemoteException
public int getPort()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setPort(int i)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setPortWithExceptionMsg(int i)
throws java.rmi.RemoteException
SnmpException - if the socket could not be opened,
or the socket could not bind to the specified local port.
java.rmi.RemoteException
public java.lang.String getCommunity()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setCommunity(java.lang.String s)
throws java.rmi.RemoteException
java.rmi.RemoteException
public int getSnmpVersion()
throws java.rmi.RemoteException
Get the SNMP Version
java.rmi.RemoteException
public void setSnmpVersion(int version)
throws java.rmi.RemoteException
Set the SNMP Version
java.rmi.RemoteException
public void setPrincipal(java.lang.String principal)
throws java.rmi.RemoteException
Set the Username
java.rmi.RemoteException
public void setAuthProtocol(int protocol)
throws java.rmi.RemoteException
set the Authentication protocol
java.rmi.RemoteException
public void setAuthPassword(java.lang.String passwd)
throws java.rmi.RemoteException
set the Authentication password
java.rmi.RemoteException
public void setPrivPassword(java.lang.String passwd)
throws java.rmi.RemoteException
set the Privacy password
java.rmi.RemoteException
public void createUserEntry(byte[] engineID,
byte secLevel)
throws java.rmi.RemoteException
to create a User entry in USMUser Table
java.rmi.RemoteException
public java.lang.String getContextName()
throws java.rmi.RemoteException
Get the SNMP V3 Context name
java.rmi.RemoteException
public void setContextName(java.lang.String cName)
throws java.rmi.RemoteException
Set the SNMP V3 Context name
java.rmi.RemoteException
public java.lang.String getcontextID()
throws java.rmi.RemoteException
get the SNMP V3 contextID
java.rmi.RemoteException
public void setcontextID(byte[] ctxtID)
throws java.rmi.RemoteException
set the SNMP V3 contextID
java.rmi.RemoteException
public void setContextID(byte[] ctxtID)
throws java.rmi.RemoteException
set the SNMP V3 contextID
java.rmi.RemoteException
public int getSecurityModel()
throws java.rmi.RemoteException
get the SNMP V3 securityModel
java.rmi.RemoteException
public void setSecurityModel(int securityModel)
throws java.rmi.RemoteException
set the SNMP V3 SecurityModel
java.rmi.RemoteException
public java.lang.String getPrincipal()
throws java.rmi.RemoteException
get Principal ie userName
java.rmi.RemoteException
public int getAuthProtocol()
throws java.rmi.RemoteException
get AuthProtocol
java.rmi.RemoteException
public java.lang.String getAuthPassword()
throws java.rmi.RemoteException
get AuthPassword
java.rmi.RemoteException
public java.lang.String getPrivPassword()
throws java.rmi.RemoteException
get AuthPassword
java.rmi.RemoteException
public void initSecurityProvider()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.Object getSecurityTable(int secModel)
throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean isSupportedSecurityModel(int secModel)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setReceiveBufferSize(int size)
throws java.rmi.RemoteException
This method sets the buffer size of this SnmpTrapReceiver.
This method SHOULD be called only when jdk1.2
and higher version is used.
size - the size of the buffer.
java.rmi.RemoteException
public int getReceiveBufferSize()
throws java.rmi.RemoteException
This method returns the buffer size of this SnmpTrapReceiver.
This method SHOULD be called only when jdk1.2
and higher version is used.
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||