com.adventnet.snmp.snmp2.agent
Interface TrapPolicy

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultTrapPolicy

Deprecated. The API no longer uses this class since the AccessControlSnmpAgent is deprecated.

public interface TrapPolicy
extends java.io.Serializable

The Trap Policy interface implementation of this interface can be added to SnmpACLTrapService

Since:
AdventNet Agent Toolkit (Java Edition) 4.2 release.
See Also:
SnmpTrapService

Method Summary
 boolean checkPolicy(int trapIndex, java.lang.String oid)
          Deprecated. Check policy method for the traps.
 java.lang.String getCommunity()
          Deprecated. Gets the trap community.
 java.util.Vector getManagers()
          Deprecated. Gets the set of manager list
 

Method Detail

checkPolicy

boolean checkPolicy(int trapIndex,
                    java.lang.String oid)
Deprecated. 
Check policy method for the traps.

Parameters:
trapIndex - the trapIndex (could be generic or enterprise specific)
String - enterpriseOID of the trap in dotted form .1.3.6.1.x.x.x
Returns:
true if the trap fits in the scope of this policy

getCommunity

java.lang.String getCommunity()
Deprecated. 
Gets the trap community.

Returns:
community of this trap Policy

getManagers

java.util.Vector getManagers()
Deprecated. 
Gets the set of manager list

Returns:
Vector of managers for this policy