예제 #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