com.sun.jdmk.comm
Interface SnmpAdaptorServerMBean

All Superinterfaces:
CommunicatorServerMBean
All Known Subinterfaces:
SnmpV3AdaptorServerMBean
All Known Implementing Classes:
SnmpAdaptorServer, SnmpV3AdaptorServer

Deprecated. Use package com.sun.management.comm in preference to classes in this package. This class may be removed in a future version of Java DMK.

public interface SnmpAdaptorServerMBean
extends CommunicatorServerMBean

Exposes the remote management interface of the SnmpAdaptorServer MBean.


Method Summary
 SnmpMibHandler addMib(SnmpMibAgent mib)
          Deprecated. Adds a new MIB in the SNMP MIB handler.
 SnmpMibHandler addMib(SnmpMibAgent mib, SnmpOid[] oids)
          Deprecated. Adds a new MIB in the SNMP MIB handler.
 SnmpMibHandler addMib(SnmpMibAgent mib, String contextName)
          Deprecated. Adds a new contextualized MIB in the SNMP MIB handler.
 int getActiveClientCount()
          Deprecated. Gets the number of managers currently being processed by this SNMP protocol adaptor.
 boolean getAuthRespEnabled()
          Deprecated. Returns true if this SNMP protocol adaptor sends a response in case of authentication failure.
 boolean getAuthTrapEnabled()
          Deprecated. Returns true if authentication traps are enabled.
 Integer getBufferSize()
          Deprecated. Returns the buffer size of this SNMP protocol adaptor.
 String getEnterpriseOid()
          Deprecated. Returns the enterprise OID.
 InetAddressAcl getInetAddressAcl()
          Deprecated. Returns the Ip address based ACL used by this SNMP protocol adaptor.
 int getInformPort()
          Deprecated. Returns the port used by this SNMP protocol adaptor for sending inform requests.
 IPAcl getIPAcl()
          Deprecated. As of Java Dynamic Management Kit 5.0, replaced by getInetAddressAcl()
 int getMaxActiveClientCount()
          Deprecated. Gets the maximum number of managers that this SNMP protocol adaptor can process concurrently.
 int getMaxTries()
          Deprecated. Gets the number of times to try sending an inform request before giving up.
 String[] getMibs()
          Deprecated. Returns the names of the MIBs available in this SNMP protocol adaptor.
 SnmpPduFactory getPduFactory()
          Deprecated. Returns the message factory of this SNMP protocol adaptor.
 String getProtocol()
          Deprecated. Returns the protocol of this SNMP protocol adaptor.
 int getServedClientCount()
          Deprecated. Gets the number of managers that have been processed by this SNMP protocol adaptor since its creation.
 Long getSnmpInASNParseErrs()
          Deprecated. Returns the snmpInASNParseErrs value defined in MIB-II.
 Long getSnmpInBadCommunityNames()
          Deprecated. Returns the snmpInBadCommunityNames value defined in MIB-II.
 Long getSnmpInBadCommunityUses()
          Deprecated. Returns the snmpInBadCommunityUses value defined in MIB-II.
 Long getSnmpInBadVersions()
          Deprecated. Returns the snmpInBadVersions value defined in MIB-II.
 Long getSnmpInGetNexts()
          Deprecated. Returns the snmpInGetNexts value defined in MIB-II.
 Long getSnmpInGetRequests()
          Deprecated. Returns the snmpInGetRequests value defined in MIB-II.
 Long getSnmpInPkts()
          Deprecated. Returns the snmpInPkts value defined in MIB-II.
 Long getSnmpInSetRequests()
          Deprecated. Returns the snmpInSetRequests value defined in MIB-II.
 Long getSnmpInTotalReqVars()
          Deprecated. Returns the snmpInTotalReqVars value defined in MIB-II.
 Long getSnmpInTotalSetVars()
          Deprecated. Returns the snmpInTotalSetVars value defined in MIB-II.
 Long getSnmpOutBadValues()
          Deprecated. Returns the snmpOutBadValues value defined in MIB-II.
 Long getSnmpOutGenErrs()
          Deprecated. Returns the snmpOutGenErrs value defined in MIB-II.
 Long getSnmpOutGetResponses()
          Deprecated. Returns the snmpOutGetResponses value defined in MIB-II.
 Long getSnmpOutNoSuchNames()
          Deprecated. Returns the snmpOutNoSuchNames value defined in MIB-II.
 Long getSnmpOutPkts()
          Deprecated. Returns the snmpOutPkts value defined in MIB-II.
 Long getSnmpOutTooBigs()
          Deprecated. Returns the snmpOutTooBigs value defined in MIB-II.
 Long getSnmpOutTraps()
          Deprecated. Returns the snmpOutTraps value defined in MIB-II.
 Long getSnmpProxyDrops()
          Deprecated. Returns the snmpProxyDrops value defined in rfc 1907 NMPv2-MIB .
 Long getSnmpSilentDrops()
          Deprecated. Returns the snmpSilentDrops value defined in rfc 1907 NMPv2-MIB .
 int getTimeout()
          Deprecated. Gets the timeout to wait for an inform response from the manager.
 Integer getTrapPort()
          Deprecated. Returns the port used by this SNMP protocol adaptor for sending traps.
 SnmpUserDataFactory getUserDataFactory()
          Deprecated. Get the user-data factory associated with this SNMP protocol adaptor.
 boolean removeMib(SnmpMibAgent mib)
          Deprecated. Removes the specified MIB from the SNMP protocol adaptor.
 void setAuthRespEnabled(boolean enabled)
          Deprecated. Sets the flag indicating if responses need to be sent in case of authentication failure.
 void setAuthTrapEnabled(boolean enabled)
          Deprecated. Sets the flag indicating if traps need to be sent in case of authentication failure.
 void setBufferSize(Integer s)
          Deprecated. Sets the buffer size of this SNMP protocol adaptor.
 void setEnterpriseOid(String oid)
          Deprecated. Sets the enterprise OID.
 void setInformPort(int port)
          Deprecated. Sets the port used by this SNMP protocol adaptor for sending inform requests.
 void setMaxActiveClientCount(int c)
          Deprecated. Sets the maximum number of managers this SNMP protocol adaptor can process concurrently.
 void setMaxTries(int newMaxTries)
          Deprecated. Changes the maximum number of times to try sending an inform request before giving up.
 void setPduFactory(SnmpPduFactory factory)
          Deprecated. Sets the message factory of this SNMP protocol adaptor.
 void setTimeout(int newTimeout)
          Deprecated. Changes the timeout to wait for an inform response from the manager.
 void setTrapPort(Integer port)
          Deprecated. Sets the port used by this SNMP protocol adaptor for sending traps.
 void setUserDataFactory(SnmpUserDataFactory factory)
          Deprecated. Set the user-data factory of this SNMP protocol adaptor.
 SnmpInformRequest snmpInformRequest(InetAddress address, String cs, SnmpInformHandler cb, SnmpOid trapOid, SnmpVarBindList varBindList)
          Deprecated. Sends an inform using SNMP V2 inform request format.
 Vector snmpInformRequest(SnmpInformHandler cb, SnmpOid trapOid, SnmpVarBindList varBindList)
          Deprecated. Sends an inform using SNMP V2 inform request format.
 SnmpInformRequest snmpInformRequest(SnmpPeer peer, SnmpInformHandler cb, SnmpOid trapOid, SnmpVarBindList varBindList)
          Deprecated. Sends an inform using SNMP V2 inform request format.
 void snmpPduTrap(InetAddress address, SnmpPduPacket pdu)
          Deprecated. Send the specified trap PDU to the passed InetAddress.
 void snmpPduTrap(SnmpPeer peer, SnmpPduPacket pdu)
          Deprecated. Send the specified trap PDU to the passed SnmpPeer.
 void snmpV1Trap(InetAddress address, String cs, int generic, int specific, SnmpVarBindList varBindList)
          Deprecated. Sends a trap using SNMP V1 trap format.
 void snmpV1Trap(int generic, int specific, SnmpVarBindList varBindList)
          Deprecated. Sends a trap using SNMP V1 trap format.
 void snmpV1Trap(SnmpPeer peer, SnmpIpAddress agentAddr, SnmpOid enterpOid, int generic, int specific, SnmpVarBindList varBindList, SnmpTimeticks time)
          Deprecated. Sends a trap using SNMP V1 trap format.
 void snmpV2Trap(InetAddress address, String cs, SnmpOid trapOid, SnmpVarBindList varBindList)
          Deprecated. Sends a trap using SNMP V2 trap format.
 void snmpV2Trap(SnmpOid trapOid, SnmpVarBindList varBindList)
          Deprecated. Sends a trap using SNMP V2 trap format.
 void snmpV2Trap(SnmpPeer peer, SnmpOid trapOid, SnmpVarBindList varBindList, SnmpTimeticks time)
          Deprecated. Sends a trap using SNMP V2 trap format.
 
Methods inherited from interface com.sun.jdmk.comm.CommunicatorServerMBean
getHost, getPort, getState, getStateString, isActive, setPort, start, stop, waitState
 

Method Detail

getIPAcl

public IPAcl getIPAcl()
Deprecated. As of Java Dynamic Management Kit 5.0, replaced by getInetAddressAcl()

Returns the IP address based ACL used by this SNMP protocol adaptor.

Returns:
The IPAcl implementation.

getInetAddressAcl

public InetAddressAcl getInetAddressAcl()
Deprecated. 
Returns the Ip address based ACL used by this SNMP protocol adaptor.

Returns:
The InetAddressAcl implementation.
Since:
Java DMK 5.0

getTrapPort

public Integer getTrapPort()
Deprecated. 
Returns the port used by this SNMP protocol adaptor for sending traps. By default, port 162 is used.

Returns:
The port number for sending SNMP traps.

setTrapPort

public void setTrapPort(Integer port)
Deprecated. 
Sets the port used by this SNMP protocol adaptor for sending traps.

Parameters:
port - The port number for sending SNMP traps.

getInformPort

public int getInformPort()
Deprecated. 
Returns the port used by this SNMP protocol adaptor for sending inform requests. By default, port 162 is used.

Returns:
The port number for sending SNMP inform requests.

setInformPort

public void setInformPort(int port)
Deprecated. 
Sets the port used by this SNMP protocol adaptor for sending inform requests.

Parameters:
port - The port number for sending SNMP inform requests.

getServedClientCount

public int getServedClientCount()
Deprecated. 
Gets the number of managers that have been processed by this SNMP protocol adaptor since its creation.

Returns:
The number of managers handled by this SNMP protocol adaptor since its creation. This counter is not reset by the stop method.

getActiveClientCount

public int getActiveClientCount()
Deprecated. 
Gets the number of managers currently being processed by this SNMP protocol adaptor.

Returns:
The number of managers currently being processed by this SNMP protocol adaptor.

getMaxActiveClientCount

public int getMaxActiveClientCount()
Deprecated. 
Gets the maximum number of managers that this SNMP protocol adaptor can process concurrently.

Returns:
The maximum number of managers that this SNMP protocol adaptor can process concurrently.

setMaxActiveClientCount

public void setMaxActiveClientCount(int c)
                             throws IllegalStateException
Deprecated. 
Sets the maximum number of managers this SNMP protocol adaptor can process concurrently.

Parameters:
c - The number of managers.
Throws:
IllegalStateException - This method has been invoked while the communicator was ONLINE or STARTING.

getProtocol

public String getProtocol()
Deprecated. 
Returns the protocol of this SNMP protocol adaptor.

Specified by:
getProtocol in interface CommunicatorServerMBean
Returns:
The string "snmp".

getBufferSize

public Integer getBufferSize()
Deprecated. 
Returns the buffer size of this SNMP protocol adaptor. By default, buffer size 1024 is used.

Returns:
The buffer size.

setBufferSize

public void setBufferSize(Integer s)
                   throws IllegalStateException
Deprecated. 
Sets the buffer size of this SNMP protocol adaptor.

Parameters:
s - The buffer size.
Throws:
IllegalStateException - This method has been invoked while the communicator was ONLINE or STARTING.

getMaxTries

public int getMaxTries()
Deprecated. 
Gets the number of times to try sending an inform request before giving up.

Returns:
The maximum number of tries.

setMaxTries

public void setMaxTries(int newMaxTries)
Deprecated. 
Changes the maximum number of times to try sending an inform request before giving up.

Parameters:
newMaxTries - The maximum number of tries.

getTimeout

public int getTimeout()
Deprecated. 
Gets the timeout to wait for an inform response from the manager.

Returns:
The value of the timeout property.

setTimeout

public void setTimeout(int newTimeout)
Deprecated. 
Changes the timeout to wait for an inform response from the manager.

Parameters:
newTimeout - The timeout (in milliseconds).

getPduFactory

public SnmpPduFactory getPduFactory()
Deprecated. 
Returns the message factory of this SNMP protocol adaptor.

Returns:
The factory object.

setPduFactory

public void setPduFactory(SnmpPduFactory factory)
Deprecated. 
Sets the message factory of this SNMP protocol adaptor.

Parameters:
factory - The factory object (null means the default factory).

setUserDataFactory

public void setUserDataFactory(SnmpUserDataFactory factory)
Deprecated. 
Set the user-data factory of this SNMP protocol adaptor.

Parameters:
factory - The factory object (null means no factory).
See Also:
SnmpUserDataFactory

getUserDataFactory

public SnmpUserDataFactory getUserDataFactory()
Deprecated. 
Get the user-data factory associated with this SNMP protocol adaptor.

Returns:
The factory object (null means no factory).
See Also:
SnmpUserDataFactory

getAuthTrapEnabled

public boolean getAuthTrapEnabled()
Deprecated. 
Returns true if authentication traps are enabled.

When this feature is enabled, the SNMP protocol adaptor sends an authenticationFailure trap each time an authentication fails.

The default behavior is to send authentication traps.

Returns:
true if authentication traps are enabled, false otherwise.

setAuthTrapEnabled

public void setAuthTrapEnabled(boolean enabled)
Deprecated. 
Sets the flag indicating if traps need to be sent in case of authentication failure.

Parameters:
enabled - Flag indicating if traps need to be sent.

getAuthRespEnabled

public boolean getAuthRespEnabled()
Deprecated. 
Returns true if this SNMP protocol adaptor sends a response in case of authentication failure.

When this feature is enabled, the SNMP protocol adaptor sends a response with noSuchName or readOnly when the authentication failed. If the flag is disabled, the SNMP protocol adaptor trashes the PDU silently.

The default behavior is to send responses.

Returns:
true if responses are sent.

setAuthRespEnabled

public void setAuthRespEnabled(boolean enabled)
Deprecated. 
Sets the flag indicating if responses need to be sent in case of authentication failure.

Parameters:
enabled - Flag indicating if responses need to be sent.

getEnterpriseOid

public String getEnterpriseOid()
Deprecated. 
Returns the enterprise OID. It is used by snmpV1Trap to fill the 'enterprise' field of the trap request.

Returns:
The OID in string format "x.x.x.x".

setEnterpriseOid

public void setEnterpriseOid(String oid)
                      throws IllegalArgumentException
Deprecated. 
Sets the enterprise OID.

Parameters:
oid - The OID in string format "x.x.x.x".
Throws:
IllegalArgumentException - The string format is incorrect

getMibs

public String[] getMibs()
Deprecated. 
Returns the names of the MIBs available in this SNMP protocol adaptor.

Returns:
An array of MIB names.

getSnmpOutTraps

public Long getSnmpOutTraps()
Deprecated. 
Returns the snmpOutTraps value defined in MIB-II.

Returns:
The snmpOutTraps value.

getSnmpOutGetResponses

public Long getSnmpOutGetResponses()
Deprecated. 
Returns the snmpOutGetResponses value defined in MIB-II.

Returns:
The snmpOutGetResponses value.

getSnmpOutGenErrs

public Long getSnmpOutGenErrs()
Deprecated. 
Returns the snmpOutGenErrs value defined in MIB-II.

Returns:
The snmpOutGenErrs value.

getSnmpOutBadValues

public Long getSnmpOutBadValues()
Deprecated. 
Returns the snmpOutBadValues value defined in MIB-II.

Returns:
The snmpOutBadValues value.

getSnmpOutNoSuchNames

public Long getSnmpOutNoSuchNames()
Deprecated. 
Returns the snmpOutNoSuchNames value defined in MIB-II.

Returns:
The snmpOutNoSuchNames value.

getSnmpOutTooBigs

public Long getSnmpOutTooBigs()
Deprecated. 
Returns the snmpOutTooBigs value defined in MIB-II.

Returns:
The snmpOutTooBigs value.

getSnmpInASNParseErrs

public Long getSnmpInASNParseErrs()
Deprecated. 
Returns the snmpInASNParseErrs value defined in MIB-II.

Returns:
The snmpInASNParseErrs value.

getSnmpInBadCommunityUses

public Long getSnmpInBadCommunityUses()
Deprecated. 
Returns the snmpInBadCommunityUses value defined in MIB-II.

Returns:
The snmpInBadCommunityUses value.

getSnmpInBadCommunityNames

public Long getSnmpInBadCommunityNames()
Deprecated. 
Returns the snmpInBadCommunityNames value defined in MIB-II.

Returns:
The snmpInBadCommunityNames value.

getSnmpInBadVersions

public Long getSnmpInBadVersions()
Deprecated. 
Returns the snmpInBadVersions value defined in MIB-II.

Returns:
The snmpInBadVersions value.

getSnmpOutPkts

public Long getSnmpOutPkts()
Deprecated. 
Returns the snmpOutPkts value defined in MIB-II.

Returns:
The snmpOutPkts value.

getSnmpInPkts

public Long getSnmpInPkts()
Deprecated. 
Returns the snmpInPkts value defined in MIB-II.

Returns:
The snmpInPkts value.

getSnmpInGetRequests

public Long getSnmpInGetRequests()
Deprecated. 
Returns the snmpInGetRequests value defined in MIB-II.

Returns:
The snmpInGetRequests value.

getSnmpInGetNexts

public Long getSnmpInGetNexts()
Deprecated. 
Returns the snmpInGetNexts value defined in MIB-II.

Returns:
The snmpInGetNexts value.

getSnmpInSetRequests

public Long getSnmpInSetRequests()
Deprecated. 
Returns the snmpInSetRequests value defined in MIB-II.

Returns:
The snmpInSetRequests value.

getSnmpInTotalSetVars

public Long getSnmpInTotalSetVars()
Deprecated. 
Returns the snmpInTotalSetVars value defined in MIB-II.

Returns:
The snmpInTotalSetVars value.

getSnmpInTotalReqVars

public Long getSnmpInTotalReqVars()
Deprecated. 
Returns the snmpInTotalReqVars value defined in MIB-II.

Returns:
The snmpInTotalReqVars value.

getSnmpSilentDrops

public Long getSnmpSilentDrops()
Deprecated. 
Returns the snmpSilentDrops value defined in rfc 1907 NMPv2-MIB .

Returns:
The snmpSilentDrops value.
Since:
Java DMK 5.0

getSnmpProxyDrops

public Long getSnmpProxyDrops()
Deprecated. 
Returns the snmpProxyDrops value defined in rfc 1907 NMPv2-MIB .

Returns:
The snmpProxyDrops value.
Since:
Java DMK 5.0

addMib

public SnmpMibHandler addMib(SnmpMibAgent mib)
                      throws IllegalArgumentException
Deprecated. 
Adds a new MIB in the SNMP MIB handler. This method is called automatically by SnmpMibAgent.setSnmpAdaptor(SnmpMibHandler) and SnmpMibAgent.setSnmpAdaptorName(ObjectName) and should not be called directly from remote.

Parameters:
mib - The MIB to add.
Returns:
A reference to the SNMP MIB handler.
Throws:
IllegalArgumentException - If the parameter is null.

addMib

public SnmpMibHandler addMib(SnmpMibAgent mib,
                             SnmpOid[] oids)
                      throws IllegalArgumentException
Deprecated. 
Adds a new MIB in the SNMP MIB handler. This method is called automatically by SnmpMibAgent.setSnmpAdaptor(SnmpMibHandler, SnmpOid[]) and SnmpMibAgent.setSnmpAdaptorName(ObjectName, SnmpOid[]) and should not be called directly from remote.

Parameters:
mib - The MIB to add.
oids - The set of OIDs this agent implements. If null or oids.length == 0, this is equivalent to calling addMib(SnmpMibAgent mib)
Returns:
A reference to the SNMP MIB handler.
Throws:
IllegalArgumentException - If the parameter is null.
Since:
Java DMK 5.0

addMib

public SnmpMibHandler addMib(SnmpMibAgent mib,
                             String contextName)
                      throws IllegalArgumentException
Deprecated. 
Adds a new contextualized MIB in the SNMP MIB handler. This method is called automatically by SnmpMibAgent.setSnmpAdaptor(SnmpMibHandler, String) and SnmpMibAgent.setSnmpAdaptorName(ObjectName, String) and should not be called directly from remote. When the underlying implementation does not support MIB scoping, calling this method is equivalent to calling addMib(SnmpMibAgent mib).

Note that MIB scoping is only supported by the SnmpV3AdaptorServer.

Parameters:
mib - The MIB to add.
contextName - The MIB context name. If null or contextName.length == 0, will be registered in the default context.
Returns:
A reference on the SNMP MIB handler.
Throws:
IllegalArgumentException - If the parameter is null.
Since:
Java DMK 5.1

removeMib

public boolean removeMib(SnmpMibAgent mib)
Deprecated. 
Removes the specified MIB from the SNMP protocol adaptor. This method is called automatically by SnmpMibAgent.setSnmpAdaptor(SnmpMibHandler) and SnmpMibAgent.setSnmpAdaptorName(ObjectName) and should not be called directly from remote.

Parameters:
mib - The MIB to be removed.
Returns:
true if the specified mib was a MIB included in the SNMP MIB handler, false otherwise.

snmpV1Trap

public void snmpV1Trap(int generic,
                       int specific,
                       SnmpVarBindList varBindList)
                throws IOException,
                       SnmpStatusException
Deprecated. 
Sends a trap using SNMP V1 trap format.
The trap is sent to each destination defined in the ACL file (if available). If no ACL file or no destinations are available, the trap is sent to the local host.

Parameters:
generic - The generic number of the trap.
specific - The specific number of the trap.
varBindList - A list of SnmpVarBind instances or null.
Throws:
IOException - An I/O error occurred while sending the trap.
SnmpStatusException - If the trap exceeds the limit defined by bufferSize.

snmpV1Trap

public void snmpV1Trap(InetAddress address,
                       String cs,
                       int generic,
                       int specific,
                       SnmpVarBindList varBindList)
                throws IOException,
                       SnmpStatusException
Deprecated. 
Sends a trap using SNMP V1 trap format.
The trap is sent to the specified InetAddress destination using the specified community string (and the ACL file is not used).

Parameters:
address - The InetAddress destination of the trap.
cs - The community string to be used for the trap.
generic - The generic number of the trap.
specific - The specific number of the trap.
varBindList - A list of SnmpVarBind instances or null.
Throws:
IOException - An I/O error occurred while sending the trap.
SnmpStatusException - If the trap exceeds the limit defined by bufferSize.

snmpV1Trap

public void snmpV1Trap(SnmpPeer peer,
                       SnmpIpAddress agentAddr,
                       SnmpOid enterpOid,
                       int generic,
                       int specific,
                       SnmpVarBindList varBindList,
                       SnmpTimeticks time)
                throws IOException,
                       SnmpStatusException
Deprecated. 
Sends a trap using SNMP V1 trap format.
The trap is sent to the specified SnmpPeer destination. The community string used is the one located in the SnmpPeer parameters (SnmpParameters.getRdCommunity() ).

Parameters:
peer - The SnmpPeer destination of the trap.
agentAddr - The agent address to be used for the trap.
enterpOid - The enterprise OID to be used for the trap.
generic - The generic number of the trap.
specific - The specific number of the trap.
varBindList - A list of SnmpVarBind instances or null.
time - The time stamp (overwrite the current time).
Throws:
IOException - An I/O error occurred while sending the trap.
SnmpStatusException - If the trap exceeds the limit defined by bufferSize.
Since:
Java DMK 5.0

snmpV2Trap

public void snmpV2Trap(SnmpPeer peer,
                       SnmpOid trapOid,
                       SnmpVarBindList varBindList,
                       SnmpTimeticks time)
                throws IOException,
                       SnmpStatusException
Deprecated. 
Sends a trap using SNMP V2 trap format.
The trap is sent to the specified SnmpPeer destination.
The community string used is the one located in the SnmpPeer parameters (SnmpParameters.getRdCommunity() ).
The variable list included in the outgoing trap is composed of the following items:

Parameters:
peer - The SnmpPeer destination of the trap.
trapOid - The OID identifying the trap.
varBindList - A list of SnmpVarBind instances or null.
time - The time stamp (overwrite the current time).
Throws:
IOException - An I/O error occurred while sending the trap.
SnmpStatusException - If the trap exceeds the limit defined by bufferSize.
Since:
Java DMK 5.0

snmpV2Trap

public void snmpV2Trap(SnmpOid trapOid,
                       SnmpVarBindList varBindList)
                throws IOException,
                       SnmpStatusException
Deprecated. 
Sends a trap using SNMP V2 trap format.
The trap is sent to each destination defined in the ACL file (if available). If no ACL file or no destinations are available, the trap is sent to the local host.
The variable list included in the outgoing trap is composed of the following items:

Parameters:
trapOid - The OID identifying the trap.
varBindList - A list of SnmpVarBind instances or null.
Throws:
IOException - An I/O error occurred while sending the trap.
SnmpStatusException - If the trap exceeds the limit defined by bufferSize.

snmpV2Trap

public void snmpV2Trap(InetAddress address,
                       String cs,
                       SnmpOid trapOid,
                       SnmpVarBindList varBindList)
                throws IOException,
                       SnmpStatusException
Deprecated. 
Sends a trap using SNMP V2 trap format.
The trap is sent to the specified InetAddress destination using the specified community string (and the ACL file is not used).
The variable list included in the outgoing trap is composed of the following items:

Parameters:
address - The InetAddress destination of the trap.
cs - The community string to be used for the trap.
trapOid - The OID identifying the trap.
varBindList - A list of SnmpVarBind instances or null.
Throws:
IOException - An I/O error occurred while sending the trap.
SnmpStatusException - If the trap exceeds the limit defined by bufferSize.

snmpPduTrap

public void snmpPduTrap(InetAddress address,
                        SnmpPduPacket pdu)
                 throws IOException,
                        SnmpStatusException
Deprecated. 
Send the specified trap PDU to the passed InetAddress.

Parameters:
address - The destination address.
pdu - The pdu to send.
Throws:
IOException - An I/O error occurred while sending the trap.
SnmpStatusException - If the trap exceeds the limit defined by bufferSize.
Since:
Java DMK 5.0

snmpPduTrap

public void snmpPduTrap(SnmpPeer peer,
                        SnmpPduPacket pdu)
                 throws IOException,
                        SnmpStatusException
Deprecated. 
Send the specified trap PDU to the passed SnmpPeer.

Parameters:
peer - The destination peer. The Read community string is used of SnmpParameters is used as the trap community string.
pdu - The pdu to send.
Throws:
IOException - An I/O error occurred while sending the trap.
SnmpStatusException - If the trap exceeds the limit defined by bufferSize.
Since:
Java DMK 5.0

snmpInformRequest

public Vector snmpInformRequest(SnmpInformHandler cb,
                                SnmpOid trapOid,
                                SnmpVarBindList varBindList)
                         throws IllegalStateException,
                                IOException,
                                SnmpStatusException
Deprecated. 
Sends an inform using SNMP V2 inform request format.
The inform request is sent to each destination defined in the ACL file (if available). If no ACL file or no destinations are available, the inform request is sent to the local host.
The variable list included in the outgoing inform request is composed of the following items: To send an inform request, the SNMP adaptor server must be active.

Parameters:
cb - The callback that is invoked when a request is complete.
trapOid - The OID identifying the trap.
varBindList - A list of SnmpVarBind instances or null.
Returns:
A vector of SnmpInformRequest objects.

If there is no destination host for this inform request, the returned vector will be empty.

Throws:
IllegalStateException - This method has been invoked while the SNMP adaptor server was not active.
IOException - An I/O error occurred while sending the inform request.
SnmpStatusException - If the inform request exceeds the limit defined by bufferSize.

snmpInformRequest

public SnmpInformRequest snmpInformRequest(InetAddress address,
                                           String cs,
                                           SnmpInformHandler cb,
                                           SnmpOid trapOid,
                                           SnmpVarBindList varBindList)
                                    throws IllegalStateException,
                                           IOException,
                                           SnmpStatusException
Deprecated. 
Sends an inform using SNMP V2 inform request format.
The inform is sent to the specified InetAddress destination using the specified community string.
The variable list included in the outgoing inform request is composed of the following items: To send an inform request, the SNMP adaptor server must be active.

Parameters:
address - The InetAddress destination for this inform request.
cs - The community string to be used for the inform request.
cb - The callback that is invoked when a request is complete.
trapOid - The OID identifying the trap.
varBindList - A list of SnmpVarBind instances or null.
Returns:
The inform request object.
Throws:
IllegalStateException - This method has been invoked while the SNMP adaptor server was not active.
IOException - An I/O error occurred while sending the inform request.
SnmpStatusException - If the inform request exceeds the limit defined by bufferSize.

snmpInformRequest

public SnmpInformRequest snmpInformRequest(SnmpPeer peer,
                                           SnmpInformHandler cb,
                                           SnmpOid trapOid,
                                           SnmpVarBindList varBindList)
                                    throws IllegalStateException,
                                           IOException,
                                           SnmpStatusException
Deprecated. 
Sends an inform using SNMP V2 inform request format.
The inform is sent to the specified SnmpPeer destination.
The community string used is the one located in the SnmpPeer parameters (SnmpParameters.getInformCommunity() ).
The variable list included in the outgoing inform is composed of the following items: To send an inform request, the SNMP adaptor server must be active.

Parameters:
peer - The SnmpPeer destination for this inform request.
cb - The callback that is invoked when a request is complete.
trapOid - The OID identifying the trap.
varBindList - A list of SnmpVarBind instances or null.
Returns:
The inform request object.
Throws:
IllegalStateException - This method has been invoked while the SNMP adaptor server was not active.
IOException - An I/O error occurred while sending the inform request.
SnmpStatusException - If the inform request exceeds the limit defined by bufferSize.
Since:
Java DMK 5.0

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.