示例#1
0
 def configure(self, config):
     set_attribute(self, 'object_alias', REQUIRED, config)
     set_attribute(self,'object_name','UNKNOWN',config)        
     set_attribute(self,'can_query','1',config)
     set_attribute(self,'is_enabled','1',config)
     set_attribute(self, 'object_lifetime','Per Request', config)
     
     SubServiceNode.configure(self, config)
示例#2
0
    def configure(self, config):
        set_attribute(self, 'object_alias', REQUIRED, config)
        set_attribute(self, 'object_name', 'UNKNOWN', config)
        set_attribute(self, 'can_query', '1', config)
        set_attribute(self, 'is_enabled', '1', config)
        set_attribute(self, 'object_lifetime', 'Per Request', config)

        SubServiceNode.configure(self, config)
示例#3
0
文件: column.py 项目: mcruse/monotone
 def configure(self,config):
     set_attribute(self,'position', REQUIRED, config, int)
     set_attribute(self, 'sort_order', 'none', config)
     set_attribute(self, 'type', 'column', config)
     #
     # error_value and error_type are used by logs that invoke functions to
     # there value and may throw an exception.  They are on the fallback
     # column Node primarily out of laziness.
     #
     set_attribute(self, 'column_error_value', 'log_error_value', config)
     set_attribute(self, 'column_error_type', 'log_error_type', config)
     SubServiceNode.configure(self,config)
     return
示例#4
0
 def configure(self, config):
     set_attribute(self, 'position', REQUIRED, config, int)
     set_attribute(self, 'sort_order', 'none', config)
     set_attribute(self, 'type', 'column', config)
     #
     # error_value and error_type are used by logs that invoke functions to
     # there value and may throw an exception.  They are on the fallback
     # column Node primarily out of laziness.
     #
     set_attribute(self, 'column_error_value', 'log_error_value', config)
     set_attribute(self, 'column_error_type', 'log_error_type', config)
     SubServiceNode.configure(self, config)
     return
示例#5
0
文件: column.py 项目: mcruse/monotone
 def configuration(self):
     config = SubServiceNode.configuration(self)
     get_attribute(self, 'sort_order', config)
     get_attribute(self, 'position', config, str)
     get_attribute(self, 'type', config)
     get_attribute(self, 'column_error_value', config)
     get_attribute(self, 'column_error_type', config)
     return config
示例#6
0
 def configuration(self):
     config = SubServiceNode.configuration(self)
     get_attribute(self, 'sort_order', config)
     get_attribute(self, 'position', config, str)
     get_attribute(self, 'type', config)
     get_attribute(self, 'column_error_value', config)
     get_attribute(self, 'column_error_type', config)
     return config
示例#7
0
    def configuration(self):
        config = SubServiceNode.configuration(self)
        get_attribute(self, 'object_alias', config)
        get_attribute(self, 'object_name', config)
        get_attribute(self, 'can_query', config)
        get_attribute(self, 'is_enabled', config)
        get_attribute(self, 'object_lifetime', config)

        return config
示例#8
0
 def configuration(self):
     config = SubServiceNode.configuration(self)
     get_attribute(self, 'object_alias', config)
     get_attribute(self,'object_name',config)
     get_attribute(self,'can_query',config)
     get_attribute(self,'is_enabled',config)        
     get_attribute(self, 'object_lifetime', config)
     
     return config    
示例#9
0
 def __init__(self):
     # Overrideable flag to tell Servers to leave authenticating to you.
     self.requires_authentication = 0
     SubServiceNode.__init__(self)
示例#10
0
 def __init__(self):
     # Overrideable flag to tell Servers to leave authenticating to you.
     self.requires_authentication = 0
     SubServiceNode.__init__(self)
示例#11
0
 def configuration(self):
     config = SubServiceNode.configuration(self)
     config['log'] = self.parent
     get_attribute(self, 'upload_interval', config, str)
     return config
示例#12
0
 def configure(self, config):
     set_attribute(self, 'upload_interval', 900, config, int)
     set_attribute(self, 'type', 'exporter', config)
     SubServiceNode.configure(self, config)
     set_attribute(self, 'log', self.parent, config, as_node)
示例#13
0
 def __init__(self):
     SubServiceNode.__init__(self)
     self.running = 0
     self.last_time = 0
     self.success_count = 0
示例#14
0
 def configuration(self):
     config = SubServiceNode.configuration(self)
     config["log"] = self.parent
     get_attribute(self, "upload_interval", config, str)
     return config
示例#15
0
 def configure(self, config):
     set_attribute(self, "upload_interval", 900, config, int)
     set_attribute(self, "type", "exporter", config)
     SubServiceNode.configure(self, config)
     set_attribute(self, "log", self.parent, config, as_node)
示例#16
0
 def __init__(self):
     SubServiceNode.__init__(self)
     self.running = 0
     self.last_time = 0
     self.success_count = 0