BIND 10 #2225: Implement counters into Xfrout (3/3)
BIND 10 Development
do-not-reply at isc.org
Fri Nov 30 07:13:00 UTC 2012
#2225: Implement counters into Xfrout (3/3)
-------------------------------------+-------------------------------------
Reporter: naokikambe | Owner:
Type: enhancement | UnAssigned
Priority: medium | Status:
Component: xfrout | reviewing
Keywords: | Milestone:
Sensitive: 0 | Sprint-20121204
Sub-Project: DNS | Resolution:
Estimated Difficulty: 7 | CVSS Scoring:
Total Hours: 0 | Defect Severity: N/A
| Feature Depending on Ticket:
| Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
Comment (by jinmei):
Replying to [comment:23 naokikambe]:
> Replying to [comment:22 jinmei]:
> OK, I understand your opinion. So do you have another idea? For example,
can xfrout directly update a map-type counter as the following? Is this
reasonable for you?
> {{{#!python
> Counter.statistics['zones'][zone_name]['xfrreqdone'] += 1
> }}}
The `Counter` part still seems to indicate singleton. Conceptually,
what I'd envision is this:
{{{#!python
xfrout_counter = some_factory_method_or_something()
xfrout_counter.inc('zones', zone_name, 'xfrreqdone')
}}}
(Note that this is conceptual example. We can consider syntax sugar
to improve readability as long as the essential property is preserved)
--
Ticket URL: <http://bind10.isc.org/ticket/2225#comment:24>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list