the obsolete and unpublished MibInstrumController.readVarsFast() method

removed for API clarity
pull/45/head
elie 2012-07-16 16:53:07 +00:00
parent fa2231d237
commit 4efd787948
2 changed files with 4 additions and 11 deletions

View File

@ -33,11 +33,14 @@ Revision 4.2.3
operational again.
- Use sysUpTime value whenever it is included in Notification PDU, otheriwese
resort to SNMP engine uptime reading.
- SNMPv2c Message is now defined in rfc1901.py what matches standard definition.
- SNMPv2c Message is now defined in rfc1901.py what matches standard
definition.
- Types defined within SNMPv1/v2c data structures (rfc1157.py/rfc1905.py)
moved to module scope to become accessible by wrapper routines
(v1.py/v2c.py). This is used for setting strictly typed default values
to corresponding SNMP data structures.
- The obsolete and unpublished MibInstrumController.readVarsFast() method
removed for API clarity.
- LCD configuration caching is implemented at pysnmp.entity.rfc3413.config
that improves performance of repetitive calls by 10% and might hugely
improve NotificationOriginator's performance when working on a large

View File

@ -13,12 +13,6 @@ class MibInstrumController:
('readGet', 'ok'): 'stop',
('*', 'err'): 'stop'
}
fsmReadVarFast = {
# ( state, status ) -> newState
('start', 'ok'): 'readGet',
('readGet', 'ok'): 'stop',
('*', 'err'): 'stop'
}
fsmReadNextVar = {
# ( state, status ) -> newState
('start', 'ok'): 'readTestNext',
@ -237,7 +231,3 @@ class MibInstrumController:
return self.flipFlopFsm(self.fsmReadNextVar, vars, acInfo)
def writeVars(self, vars, acInfo=(None, None)):
return self.flipFlopFsm(self.fsmWriteVar, vars, acInfo)
# This version of the above method skips "test" phase for performance
def readVarsFast(self, vars, acInfo=(None, None)):
return self.flipFlopFsm(self.fsmReadVarFast, vars, acInfo)