From: Naoki Kambe Date: Wed, 7 Aug 2013 09:58:34 +0000 (+0900) Subject: [2883] spec_file_name argument of Counters class is reqiured X-Git-Tag: bind10-1.2.0beta1-release~236^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0271260016349e40ec8d366b82077d93aac3ff47;p=thirdparty%2Fkea.git [2883] spec_file_name argument of Counters class is reqiured --- diff --git a/src/lib/python/isc/statistics/counters.py b/src/lib/python/isc/statistics/counters.py index 4476442260..d1922ee315 100644 --- a/src/lib/python/isc/statistics/counters.py +++ b/src/lib/python/isc/statistics/counters.py @@ -165,14 +165,13 @@ class Counters(): timers can be temporarily disabled. If disabled, counter values are not changed even if methods to update them are invoked.""" - def __init__(self, spec_file_name=None): + def __init__(self, spec_file_name): """A constructor for the Counters class. A path to the spec file - can be specified in spec_file_name. Statistics data based on - statistics spec can be accumulated if spec_file_name is + can be specified in spec_file_name, which is required. Statistics data + based on statistics spec can be accumulated if spec_file_name is specified. If omitted, a default statistics spec is used. The default statistics spec is defined in a hidden class named - _Statistics(). But the hidden class won't be used and - spec_file_name will be required in the future release. + _Statistics(). """ self._zones_item_list = [] self._start_time = {} diff --git a/src/lib/python/isc/statistics/dns.py b/src/lib/python/isc/statistics/dns.py index e563d9937e..2cd5fb6fe3 100644 --- a/src/lib/python/isc/statistics/dns.py +++ b/src/lib/python/isc/statistics/dns.py @@ -120,7 +120,7 @@ class Counters(counters.Counters): # zone names are contained under this dirname in the spec file. _perzone_prefix = 'zones' - def __init__(self, spec_file_name=None): + def __init__(self, spec_file_name): """If the item `zones` is defined in the spec file, it obtains a list of counter names under it when initiating. For behaviors other than this, see documentation for