|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
|
+--com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler
|
+--com.adventnet.snmp.snmp2.agent.BaseAclTableRequestHandler
This is required if you want to give Remote Configuration Access for the aclTable. Handles all requests for aclTable(in AGENT-SNMP-CONFIG-MIB).
This class allows us to configure the aclTable at run-time by snmp-sets.
Both AclTableRequestHandler and MicroAclTableRequestHandler
extend this class and make use of the methods available in this class.
AclTableRequestHandler,
MicroAclTableRequestHandler| Field Summary | |
(package private) static int |
ACLACCESS
|
(package private) static int |
ACLCOMMUNITY
|
(package private) static int |
ACLMANAGERS
|
(package private) static int |
ACLSTATUS
|
BaseAclTable |
aclTable
The BaseAclTable associated with this Handler. |
(package private) static int |
COLUMNCOUNT
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler |
agentName,
listenerList,
tModelComplete |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
instrumentHandler,
listener,
tableListener,
writeEachTime |
| Constructor Summary | |
BaseAclTableRequestHandler()
|
|
BaseAclTableRequestHandler(BaseSnmpAgent agentRef,
BaseAclTable table)
The primary constructor to BaseAclTableRequestHandler This constructor gets the agent reference to which this community table should associate with and the BaseAclTable which needs remote configuration. |
|
| Method Summary | |
(package private) boolean |
checkForRowStatus(AclEntryInterface entry)
|
static AclEntry |
createAclEntry(java.lang.String community,
java.lang.Integer access,
java.lang.String managers)
Creates an AclEntry object for the Access Control values in the aclTable This method creates and makes the Row Active immediately |
static AclEntry |
createAclEntry(java.lang.String community,
java.lang.Integer access,
java.lang.String managers,
java.lang.Integer status)
Creates an AclEntry object for the Access Control values in the aclTable |
static AclEntry |
createAclEntry(java.lang.String community,
int access,
java.lang.String managers)
Creates an AclEntry object for the Access Control values in the aclTable This method creates and makes the Row Active immediately |
AclEntryInterface |
getAclEntryInstance()
Deprecated. this has been moved to the AclTable class. API users can override this method to have their own AclEntryInterface. This method will be called for all AclEntry instance creation. |
static int[] |
getAclTableOidRep()
Gets the AclTable entry OID by default {1,3,6,1,4,1,2162,10,3,1,2,1,1,1} |
int[] |
getOidRep()
Gets the AclTable entry OID by default {1,3,6,1,4,1,2162,10,3,1,2,1,1,1} |
java.lang.String |
getRegisteredOid()
Getter for the Registered OID. |
protected int[] |
getSubidList()
Getter of the subIdList registered to the aclTable |
protected void |
processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Processes the GetNextRequest message from the manager for the aclTable. |
protected void |
processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Processes the GetRequest message from the manager for the aclTable. |
protected void |
processGetRequest(SnmpVarBind varb,
int req,
VarBindRequestEvent pe,
AclEntryInterface entry)
Processes the GetRequest message from the manager for the aclTable. |
protected void |
processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Processes the SetRequest message from the manager for the aclTable. |
void |
setOidRep(int[] aclTableOidRep)
This method will be useful for the api users for setting their own acl table entry OID instead of AdventNet aclTable entry oid in AGENT-SNMP-CONFIG-MIB. |
void |
setRegisteredOid(java.lang.String oid)
Setter to set the userBased Table's Entry OID as the registered OID instead of the AdventNet aclTable entry oid in AGENT-SNMP-CONFIG-MIB. |
void |
setTableVector(java.util.Vector tableVector)
Setter for the Table Vector. |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler |
addChangeListener,
createChangeEvent,
fireChangeEvent,
getTableVector,
removeChangeListener |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
addInstrumentHandler,
addRegistrationListener,
addTableListener,
addUpdateListener,
getInstrument,
getMibVarHash,
getNextRequest,
getObjectHash,
getObjectTypeHash,
getRequest,
getTableListener,
isWriteEachTime,
processGetNextRequest,
processGetRequest,
processSetRequest,
removeRegistrationListener,
removeUpdateListener,
setRequest,
setWriteEachTime,
writeIntoFile |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
static final int ACLCOMMUNITY
static final int ACLACCESS
static final int ACLMANAGERS
static final int ACLSTATUS
static final int COLUMNCOUNT
public BaseAclTable aclTable
| Constructor Detail |
public BaseAclTableRequestHandler(BaseSnmpAgent agentRef,
BaseAclTable table)
agentRef - The BaseSnmpAgent Reference.table - The BaseAclTable instance associated with the Agent.public BaseAclTableRequestHandler()
| Method Detail |
public static int[] getAclTableOidRep()
public int[] getOidRep()
public void setOidRep(int[] aclTableOidRep)
aclTableOidRep - intArray specifying the OID representation of
the user's aclTable Entry OIDpublic void setRegisteredOid(java.lang.String oid)
oid - The String OID representation of the user's Table Entry OIDgetRegisteredOid()public java.lang.String getRegisteredOid()
setRegisteredOid(String oid)protected int[] getSubidList()
protected void processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
varb - specifies the SnmpVarBind to be processed.node - The node for which the Get Request is given.pe - The VarBindRequestEvent created for the Get Request.
protected void processGetRequest(SnmpVarBind varb,
int req,
VarBindRequestEvent pe,
AclEntryInterface entry)
throws AgentSnmpException
varb - specifies the SnmpVarBind.req - The column for which the Get Request is processed.pe - The VarBindRequestEvent created for the Get Request.entry - The row entry for which the Get Request is processed.
protected void processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
varb - specifies the SnmpVarBind to be processed.node - The node for which the Set Request is given.pe - The VarBindRequestEvent created for the Set Request.
protected void processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
varb - specifies the SnmpVarBind.node - The node for which the Get Next Request is given.pe - The VarBindRequestEvent created for the Get Next Request.
boolean checkForRowStatus(AclEntryInterface entry)
throws AgentException
public AclEntryInterface getAclEntryInstance()
public void setTableVector(java.util.Vector tableVector)
tableVector - The TableVector of Entry objects
public static AclEntry createAclEntry(java.lang.String community,
int access,
java.lang.String managers)
community - specifies the name of the community with access controlaccess - specifies the access allowed for this communitymanagers - specifies the managers list such as
"hostName1;202.202.202.202;hostName2"
public static AclEntry createAclEntry(java.lang.String community,
java.lang.Integer access,
java.lang.String managers)
community - specifies the name of the community with access controlaccess - specifies the access allowed for this communitymanagers - specifies the managers list such as
"hostName1;202.202.202.202;hostName2"
public static AclEntry createAclEntry(java.lang.String community,
java.lang.Integer access,
java.lang.String managers,
java.lang.Integer status)
community - specifies the name of the community with access controlaccess - specifies the access allowed for this communitymanagers - specifies the managers list such as
"hostName1;202.202.202.202;hostName2"status - the RowStatus value (1 - 5)with which this Row has to be created
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||