|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.beans.SnmpServer | +--com.adventnet.snmp.beans.SnmpRequestServer
This class is an SNMP Server bean for performing asynchronous SNMP requests on a list of variables. It supports event generation per the JDK 1.1 event model. It allows sending request events to it or invoking its asynchronous request methods and receiving response events, i.e. ResultEvent objects, from it when responses arrive or timeout.
See the requestServerDemo.java applet example in the applications directory.
To use in an application, instantiate the server, and register to receive results. For example, the following is a trivial listener that prints the return value.
SnmpRequestServer server = new SnmpRequestServer(); ResultListener listener = new ResultListener() { public void setResult(ResultEvent evt) { System.err.println("Response: "+evt.getValue()); } };Then use the asynchronous methods to make requests, or you can generate events, e.g.
server.addResultListener(listener);
RequestEvent evt = new RequestEvent(b1, getParameter("OID"), RequestEvent.GET); server.addRequest(evt);The above is a somewhat simplified example for event generation.
To receive timeout events,use setSendTimeoutEvents(true). Otherwise if the request times out,then the timeout events will not be sent to the listener.
Normally, you would allow registration of RequestListener objects, and send events to all registered listeners. The advantage of generating events really lies in being able to write components that do not know at build time the request server they will send events to.
Major difference between this and SnmpRequestServer is the ability to use the RequestEvent objects to send requests to the SnmpRequestServer. The benefit of this feature is that event connections between sources of request events, and SnmpRequestServer instances can be more readily be defined, in bean builders for example. So a button that generates a request event can be flexibly connected to the appropriate SnmpRequestServer instance in a bean builder. The SnmpRequestServer provides a convenience object for many of the common operations you do with an SNMP agent.
For garbagecollection of the resources used, releaseResources() method should be invoked. Different SnmpRequestServer instances on the same JVM, will reuse the SnmpAPI, SnmpSession and MibOperations instance. So, for releasing these resources, releaseResources() method should be called on every SnmpRequestServer instance created and when this method is called on the final instance of SnmpRequestServer, these will be garbage collected.
Supply the applet in the constructor if using applets and may need to use SAS.
RequestEvent
,
ResultEvent
,
Serialized FormField Summary | |
boolean |
serialize
![]() |
Fields inherited from class com.adventnet.snmp.beans.SnmpServer |
AUTH_NO_PRIV, AUTH_PRIV, CBC_3DES, CBC_DES, CFB_AES_128, CFB_AES_192, CFB_AES_256, MD5_AUTH, NO_AUTH, NO_AUTH_NO_PRIV, NO_PRIV, oidList, SHA_AUTH, SNMPGET, SNMPGETBULK, SNMPGETNEXT, SNMPINFORM, SNMPREPORT, SNMPRESPONSE, SNMPSET, SNMPTRAP, SNMPV2TRAP, VERSION1, VERSION2C, VERSION3 |
Constructor Summary | |
SnmpRequestServer()
Use this constructor for applications. |
|
SnmpRequestServer(java.applet.Applet applet)
Use this constructor for applets. |
|
SnmpRequestServer(java.applet.Applet applet,
int localPort,
java.lang.String sessionName)
Use this constructor for appletswhich will create a session with name and in specific localport.. |
|
SnmpRequestServer(int protocol,
ProtocolOptions options)
Use this constructor for applications which uses protocols other than UDP/IP. |
|
SnmpRequestServer(int localPort,
java.lang.String sessionName)
Use this constructor for applications which will create a session with name and in specific localport. |
|
SnmpRequestServer(SnmpSession ses,
MibOperations mib)
Use this constructor for applications which uses given Session and MibOperations instance and not to use the default session and mibOps instance. |
|
SnmpRequestServer(java.lang.String[] localAddrs,
java.lang.String sessionName)
Use this constructor for applications in which the session needs to be bound to some local address. |
Method Summary | |
void |
addLogClient(LoggerProperties loggerProps)
Adds the Log client for which the target has to redirect the log messages. |
void |
addLogClient(LogInterface client)
Add the Log client for which the SnmpRequestServer has to redirect the log messages |
int |
addObjectID(java.lang.String s)
Adds an ObjectID specified by string to the existing OID list. |
int |
addRequest(RequestEvent e)
To add a request to the already existing requests. |
void |
addResultListener(ResultListener l)
Adds a Listener to the list that is notified each time when a response arrives. |
int |
addSnmpOID(SnmpOID oid)
Adds an SnmpOID to the existing list of OIDs. |
void |
addSnmpPropertyListener(SnmpPropertyListener l)
Adds SnmpPropertyListener to the Listeners list. |
void |
addUserError(int errorCode,
java.lang.String errorString)
This method is used to add user defined error codes and the corresponding error string. |
void |
addV3HandShakeResultListener(V3HandShakeResultListener l)
![]() |
boolean |
authenticate(SnmpPDU pdu,
java.lang.String community)
This is the SnmpClient method implementation used to authenticate a PDU. |
boolean |
callback(SnmpSession session,
SnmpPDU pdu,
int requestID)
This is the SnmpClient method implementation method that processes and forwards the result.The response returned by the RequestServer will be received by this method. |
void |
debugPrint(java.lang.String debugOutput)
This is the SnmpClient method implementation that prints the standard error. |
void |
deSerializeUSM()
![]() |
protected void |
genEvent(SnmpPDU pdu)
Generate the response event to the listeners |
protected void |
genTimeoutEvent(SnmpPDU pdu)
Generate the timeout events to the listeners |
boolean |
getAttemptPartial()
Deprecated. SnmpRequestServer cannot get the partial data. It is specifically for SnmpTarget bean which does synchronous comm.. |
java.lang.String |
getAuthPassword()
![]() |
int |
getAuthProtocol()
![]() |
java.lang.String |
getCommunity()
To get the SNMP target Community |
java.lang.String |
getContextID()
![]() |
java.lang.String |
getContextName()
![]() |
boolean |
getDebug()
To check if Debug mode is enabled or not |
byte[] |
getEngineID()
![]() |
int |
getErrorCode()
To get the error code from the last request. |
java.lang.String |
getErrorResultString(SnmpPDU pdu)
To get the error string associated with the response PDU |
java.lang.String |
getErrorString()
To get the error string from the last request. |
int |
getMaxRepetitions()
![]() |
java.lang.String |
getMibModules()
To get the MIBs (/white-space separated list of mib files)that is(/are) loaded in this applet/application |
MibOperations |
getMibOperations()
To get the MibOperations object reference. |
int |
getNonRepeaters()
![]() |
java.lang.String |
getObjectID()
To get the first object ID from a list of ObjectIDs. |
java.lang.String |
getObjectID(int index)
To get the object ID at the specified index |
java.lang.String[] |
getObjectIDList()
To get the list of object IDs. |
java.lang.String |
getPrincipal()
![]() |
java.lang.String |
getPrivPassword()
![]() |
int |
getPrivProtocol()
![]() |
int |
getRetries()
To get the SNMP target retries value. |
java.lang.String |
getSecurityLevel()
![]() |
int |
getSecurityModel()
![]() |
boolean |
getSendTimeoutEvents()
To check if the target will send timeout events to registered listeners. |
SnmpOID |
getSnmpOID()
To get the first SnmpOID from the list of object IDs. |
SnmpOID[] |
getSnmpOIDList()
To get the list of object IDs as an array of SnmpOID instances |
int |
getSnmpVersion()
![]() |
java.lang.String |
getTargetHost()
To get the SNMP target hostname |
int |
getTargetPort()
To get the SNMP target port number |
int |
getTimeout()
To get the SNMP target timeout value in Seconds. |
int |
getUserErrorCode()
Gets the user defined error code for the last request. |
java.lang.String |
getUserErrorString()
This method is used to get the user defined error string to a specific error code. |
java.lang.String |
getWriteCommunity()
To get the SNMP target write Community to be used for set requests |
boolean |
isBroadCastEnabled()
Returns the current status as to whether broadcasting is enabled/disabled. |
boolean |
isSerialize()
![]() |
void |
loadMibs(java.lang.String mibs)
Loads the specified mib. |
void |
readFromDatabase()
![]() |
void |
releaseResources()
Though the resources will be cleaned up by the garbage collector, if the application is no more using the SnmpRequestServer bean instance, this method can be used to immediately release the resources. |
void |
removeLogClient()
Removes the Log client that has been registered to redirect the log Messages for this instance. |
void |
removeResultListener(ResultListener l)
Removes a listener for response events from the list of listeners. |
void |
removeSnmpPropertyListener(SnmpPropertyListener l)
Removes the SnmpPropertyListener from the list. |
void |
removeV3HandShakeListener(V3HandShakeResultListener l)
![]() |
int |
sendGetBulkRequestList()
![]() |
int |
sendGetNextRequest()
To send a getnext request for the SNMP variable identified by the first Object Identifier set in this SnmpRequestServer instance. |
int |
sendGetNextRequest(SnmpOID oid)
To send a getnext request for the SNMP variable identified by specified Object Identifier. |
int |
sendGetNextRequestList()
To send a getnext request for a list of SNMP variable bindings identified by the Object Identifier list previously set in this SnmpRequestServer instance. |
int |
sendGetNextRequestList(SnmpOID[] oids)
To send a getnext request for a list of SNMP variables identified by the Object Identifier list stored in this SnmpRequestServer instance. |
int |
sendGetRequest()
To send a get request for the the SNMP variable identified by the first Object Identifier stored in the SnmpRequestServer instance. |
int |
sendGetRequest(SnmpOID oid)
To send a get request for the the SNMP variable identified by specified Object Identifier. |
int |
sendGetRequestList()
To send a get request for the list of SNMP variable bindings identified by the Object Identifier list previously set in this SnmpRequestServer instance. |
int |
sendGetRequestList(SnmpOID[] oids)
To send a get request for a list of SNMP variables identified by the Object Identifier list. |
int |
sendSetRequest(java.lang.String value)
To send a set request with the value to be set for the ObjectID This method will fail if MIB with this variable is not loaded or this is not a leaf node in the MIB. |
int |
sendSetRequest(java.lang.String value,
byte type)
To send a set request with the value to be set and the type of the variable Throws DataException if no OID specified earlier or in case of errors. |
int |
sendSetRequestList(java.lang.String[] values)
To set the list of SNMP variable bindings on the agent using the Object Identifier list previously set in this SnmpRequestServer instance. |
int |
sendSetRequestList(java.lang.String[] values,
java.lang.String[] oidLists)
To set the list of SNMP variable bindings on the agent using the Object Identifier list previously set in this SnmpRequestServer instance. |
int |
sendSetRequestVariable(SnmpVar var)
To send a set request to set the specified SnmpVar value for the OID that is set in the SnmpRequestServer instance. |
int |
sendSetRequestVariables(SnmpVar[] values)
To send a set request to set the list of SNMP variable bindings on the agent, using the Object Identifier list previously set in this SnmpRequestServer instance. |
int |
sendSetRequestVariables(SnmpVar[] values,
java.lang.String[] oidsList)
To send a set request to set the list of SNMP variable bindings on the agent, using the Object Identifier list previously set in this SnmpRequestServer instance. |
void |
sendTrap(SnmpOID enterprise,
java.lang.String agenthost,
int genericType,
int specificType,
long uptime,
SnmpVar[] values)
To send a SNMP trap, with parameters specified and variable bindings using object ids from the Object Identifier list previously set in this SnmpRequestServer instance, and the values specified. |
void |
sendTrap(java.lang.String enterprise,
java.lang.String agenthost,
int genericType,
int specificType,
long uptime,
java.lang.String[] values)
To send a SNMP trap, with parameters specified and variable bindings using object ids from the Object Identifier list previously set in this SnmpRequestServer instance, and the values specified. |
void |
setAttemptPartial(boolean b)
Deprecated. SnmpRequestServer cannot get partial data by enabling the flag. It is specific for SnmpTarget bean which does synchronous comm.. |
void |
setAuthPassword(java.lang.String password)
![]() |
void |
setAuthProtocol(int protocol)
![]() |
void |
setBroadCastEnable(boolean broadcast)
Calling this method with a "true" value will indicate that the request is to be sent as a broadcast request. |
void |
setCommunity(java.lang.String s)
To set the SNMP target Community |
void |
setContextID(java.lang.String ctxtID)
![]() |
void |
setContextName(java.lang.String cName)
![]() |
void |
setDebug(boolean debug)
To enable or disable the Debug mode. |
void |
setEngineID(byte[] engID)
![]() |
void |
setMaxRepetitions(int i)
![]() |
void |
setMibModules(java.lang.String mibs)
To load the MIB in this applet/application. |
void |
setNonRepeaters(int i)
![]() |
void |
setObjectID(int index,
java.lang.String s)
Sets the object ID value specified the string at the given index |
void |
setObjectID(java.lang.String s)
Sets the object ID value specified by the string |
void |
setObjectIDList(java.lang.String[] s)
Sets the list of object IDs specified by the string array |
void |
setParams(java.lang.String host,
java.lang.String port,
java.lang.String community,
java.lang.String mib,
java.lang.String oid)
To set Multiple parameters like TargetHost,Port,Community,MibModule and OID. |
void |
setParams(java.lang.String host,
java.lang.String port,
java.lang.String community,
java.lang.String mib,
java.lang.String[] oidlist)
To set Multiple parameters like TargetHost,Port,Community,MibModule and OIDList. |
void |
setPrincipal(java.lang.String uName)
![]() |
void |
setPrivPassword(java.lang.String password)
![]() |
void |
setPrivProtocol(int privprotocol)
![]() |
void |
setRetries(int i)
To Set the SNMP target retries value. |
void |
setSecurityLevel(byte sLevel)
![]() |
void |
setSecurityModel(int securityModel)
![]() |
void |
setSendTimeoutEvents(boolean b)
To set the boolean state of whether this target will send timeout events to registered listeners or not |
void |
setSnmpOID(SnmpOID oid)
Sets the SnmpOID. |
void |
setSnmpOIDList(SnmpOID[] list)
To set the list of object IDs given as an array of SnmpOIDs |
void |
setSnmpVersion(int i)
![]() |
void |
setTargetHost(java.lang.String s)
To set the SNMP target hostname |
void |
setTargetPort(int i)
To set the SNMP target port number |
void |
setTimeout(int i)
To Set the SNMP target timeout value in Seconds. |
void |
setWriteCommunity(java.lang.String s)
To set the SNMP target write Community to be used for set requests |
void |
vetoableChange(java.beans.PropertyChangeEvent e)
This method is called when a vetoableChange event is fired from the propertySetting bean. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.adventnet.snmp.beans.CustomizerTemplate |
create_v3_tables, getSnmpEngineTable, getUSMTable, initSecurityProvider, isSupportedSecurityModel, manage_v3_tables |
Field Detail |
public boolean serialize
Constructor Detail |
public SnmpRequestServer()
public SnmpRequestServer(int localPort, java.lang.String sessionName)
public SnmpRequestServer(int protocol, ProtocolOptions options)
public SnmpRequestServer(java.applet.Applet applet, int localPort, java.lang.String sessionName)
public SnmpRequestServer(SnmpSession ses, MibOperations mib)
public SnmpRequestServer(java.applet.Applet applet)
public SnmpRequestServer(java.lang.String[] localAddrs, java.lang.String sessionName)
localAddrs
- The local addresses to which the session needs
to be bound.sessionName
- Specify unique sessionNames for the instances
which need to use different SnmpSession instances to send data.Method Detail |
public void loadMibs(java.lang.String mibs) throws MibException, java.io.IOException, java.io.FileNotFoundException
In case of loading the files from space seperated directories, the whole
String should be given within the double quotes.
for example, if the
MIB file is present in the directory 'Program Files',
server.loadMibs("\"../../mibs/Program Files/RFC1213-MIB\"")
loadMibs
in class SnmpServer
MibException
- is thrown while parser error ocurs.
java.io.IOException
- is thrown while upon IO error occurs.
java.io.FileNotFoundException
- is thrown if the file is not found.public void addResultListener(ResultListener l)
l
- an instance of ResultListener.ResultEvent
,
ResultListener
public void removeResultListener(ResultListener l)
l
- ResultListener to be removed.ResultListener
public void addSnmpPropertyListener(SnmpPropertyListener l)
l
- an instance of SnmpPropertyListener to be added.SnmpPropertyChangeEvent
,
SnmpPropertyListener
public void removeSnmpPropertyListener(SnmpPropertyListener l)
l
- SnmpPropertyListener to be removed.SnmpPropertyListener
public void addV3HandShakeResultListener(V3HandShakeResultListener l)
l
- the V3HandShakeResultListener to be registered for
getting events.V3HandShakeResultListener
,
V3HandShakeResultEvent
public void removeV3HandShakeListener(V3HandShakeResultListener l)
l
- the V3HandShakeResultListener to be removed.V3HandShakeResultListener
public void readFromDatabase() throws java.sql.SQLException
java.sql.SQLException
- incase of any error during reading from database.public void deSerializeUSM()
public boolean authenticate(SnmpPDU pdu, java.lang.String community)
authenticate
in interface SnmpClient
public boolean callback(SnmpSession session, SnmpPDU pdu, int requestID)
callback
in interface SnmpClient
ErrorMessages
,
getErrorCode()
,
getErrorString()
public void debugPrint(java.lang.String debugOutput)
debugPrint
in interface SnmpClient
protected void genTimeoutEvent(SnmpPDU pdu)
genTimeoutEvent
in class SnmpServer
protected void genEvent(SnmpPDU pdu)
genEvent
in class SnmpServer
public int addObjectID(java.lang.String s)
s
- the OID to be added
public int addSnmpOID(SnmpOID oid)
oid
- SnmpOID to be added.
public java.lang.String getObjectID(int index)
index
- the index of the oid in the oidlist array
public java.lang.String getObjectID()
public void setObjectID(java.lang.String s)
s
- the oid to be setpublic void setObjectID(int index, java.lang.String s)
index
- index in the oidlist where the oid has to be set.s
- the oid that has to be set.public java.lang.String[] getObjectIDList()
public void setObjectIDList(java.lang.String[] s)
public SnmpOID getSnmpOID()
public void setSnmpOID(SnmpOID oid)
oid
- SnmpOID to be set.public SnmpOID[] getSnmpOIDList()
public void setSnmpOIDList(SnmpOID[] list)
public java.lang.String getTargetHost()
getTargetHost
in interface CustomizerTemplate
public void setTargetHost(java.lang.String s)
setTargetHost
in interface CustomizerTemplate
s
- target hostname as a Stringpublic int getTargetPort()
getTargetPort
in interface CustomizerTemplate
public void setTargetPort(int i)
setTargetPort
in interface CustomizerTemplate
i
- the target port numberpublic java.lang.String getCommunity()
public void setCommunity(java.lang.String s)
s
- community namepublic java.lang.String getWriteCommunity()
public void setWriteCommunity(java.lang.String s)
s
- write community to be set.public int getTimeout()
public void setTimeout(int i)
public int getRetries()
public void setRetries(int i)
i
- retries valuepublic int getMaxRepetitions()
public void setMaxRepetitions(int i)
i
- max repetitionspublic int getNonRepeaters()
public void setNonRepeaters(int i)
i
- non-repeaters value.public int getSnmpVersion()
public void setSnmpVersion(int i)
setSnmpVersion
in interface CustomizerTemplate
i
- version numberpublic java.lang.String getContextName()
public void setContextName(java.lang.String cName)
cName
- context name to be setpublic java.lang.String getContextID()
public void setContextID(java.lang.String ctxtID)
ctxtID
- ContextID to be setpublic int getSecurityModel()
public void setSecurityModel(int securityModel)
securityModel
- SecurityModel in integerpublic java.lang.String getPrincipal()
public void setPrincipal(java.lang.String uName)
setPrincipal
in interface CustomizerTemplate
uName
- UserName to be setpublic int getAuthProtocol()
public void setAuthProtocol(int protocol)
setAuthProtocol
in interface CustomizerTemplate
protocol
- the Authentication Protocol to be setpublic java.lang.String getAuthPassword()
public void setAuthPassword(java.lang.String password)
setAuthPassword
in interface CustomizerTemplate
password
- Authentication Passwordpublic int getPrivProtocol()
public void setPrivProtocol(int privprotocol)
public java.lang.String getPrivPassword()
public void setPrivPassword(java.lang.String password)
setPrivPassword
in interface CustomizerTemplate
password
- Privacy Passwordpublic byte[] getEngineID()
public void setEngineID(byte[] engID)
public java.lang.String getSecurityLevel()
public void setSecurityLevel(byte sLevel)
setSecurityLevel
in interface CustomizerTemplate
sLevel
- the SecurityLevel as a byte valuepublic java.lang.String getErrorString()
public int getErrorCode()
public int getUserErrorCode()
public void addUserError(int errorCode, java.lang.String errorString)
public java.lang.String getUserErrorString()
public boolean getAttemptPartial()
public void setAttemptPartial(boolean b)
public boolean getSendTimeoutEvents()
public void setSendTimeoutEvents(boolean b)
b
- true to send timeout events to listeners and false otherwisepublic boolean getDebug()
public void setDebug(boolean debug)
debug
- true to enable and false to disable.public java.lang.String getMibModules()
public void setMibModules(java.lang.String mibs)
mibs
- Mib to be loadedpublic MibOperations getMibOperations()
public int addRequest(RequestEvent e)
addRequest
in interface RequestListener
e
- an instance of RequestEvent.
RequestEvent
public int sendGetRequest()
ErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendGetRequest(SnmpOID oid)
ErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendGetRequestList()
ErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendGetRequestList(SnmpOID[] oids)
ErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendGetNextRequest()
ErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendGetNextRequest(SnmpOID oid)
ErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendGetNextRequestList()
ErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendGetNextRequestList(SnmpOID[] oids)
ErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendSetRequest(java.lang.String value) throws DataException
DataException
- is thrown if data is invalidErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendSetRequest(java.lang.String value, byte type) throws DataException
DataException
- is thrown if data is invalidErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendSetRequestVariable(SnmpVar var) throws DataException
DataException
- is thrown if data is invalidErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendSetRequestList(java.lang.String[] values) throws DataException
DataException
- is thrown if data is invalidErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendSetRequestList(java.lang.String[] values, java.lang.String[] oidLists) throws DataException
DataException
- is thrown if data is invalidErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendSetRequestVariables(SnmpVar[] values) throws DataException
DataException
- is thrown if data is invalidErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendSetRequestVariables(SnmpVar[] values, java.lang.String[] oidsList) throws DataException
DataException
- is thrown if data is invalidErrorMessages
,
getErrorCode()
,
getErrorString()
public int sendGetBulkRequestList()
ErrorMessages
,
getErrorCode()
,
getErrorString()
public void sendTrap(java.lang.String enterprise, java.lang.String agenthost, int genericType, int specificType, long uptime, java.lang.String[] values) throws DataException
DataException
- is thrown if data is invalidErrorMessages
,
getErrorCode()
,
getErrorString()
public void sendTrap(SnmpOID enterprise, java.lang.String agenthost, int genericType, int specificType, long uptime, SnmpVar[] values) throws DataException
DataException
- is thrown if data is invalidErrorMessages
,
getErrorCode()
,
getErrorString()
public boolean isSerialize()
isSerialize
in interface CustomizerTemplate
public java.lang.String getErrorResultString(SnmpPDU pdu)
pdu
- SnmpPDU
public void vetoableChange(java.beans.PropertyChangeEvent e)
vetoableChange
in interface java.beans.VetoableChangeListener
e
- an instance of PropertyChangeEventpublic void setParams(java.lang.String host, java.lang.String port, java.lang.String community, java.lang.String mib, java.lang.String oid)
host
- target hostport
- target portcommunity
- community namemib
- mib fileoid
- OIDpublic void setParams(java.lang.String host, java.lang.String port, java.lang.String community, java.lang.String mib, java.lang.String[] oidlist)
host
- target hostport
- target portcommunity
- community namemib
- mib fileoidlist
- a String array of OIDspublic void addLogClient(LogInterface client)
public void addLogClient(LoggerProperties loggerProps) throws LogException
loggerProps
- - A LoggerProperties instance having the properties
of the Logger such as loggingLevel.
LogException
public void removeLogClient()
public void setBroadCastEnable(boolean broadcast)
broadcast
- the boolean value which says, whether the
request is broadcast.public boolean isBroadCastEnabled()
public void releaseResources()
releaseResources
in class SnmpServer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |