コード例 #1
0
ファイル: CacheService2.py プロジェクト: fege/Thesis-Project
 def __init__(self):
     # Read What kind of cache ... 
     self.conn_meta    =  ConnectionManger('metadata')
     self.conn_data    =  ConnectionManger('data')
     self.conn_service =  ConnectionManger('service')
     self.cacheMng     = CacheManager()
     
     #STATS
     self.srv_num_get        = 0
     self.srv_num_get_failed = 0
     self.srv_num_set       = 0
コード例 #2
0
    def __init__(self):
        # Read What kind of cache ... 
        self.conn_meta    =  ConnectionManager(ConnectionManager.CONNECTION_TYPE_METADATA)
        self.conn_data    =  ConnectionManager(ConnectionManager.CONNECTION_TYPE_DATA)

        self.cacheMng     = CacheManager()
        self.storeMng     = StorageManager()
        #STATS
        self.COUNTER = dict()
        self.COUNTER['srv_num_get_failed'] = 0
        self.COUNTER['srv_num_get']        = 0
        self.COUNTER['srv_num_set']        = 0 
コード例 #3
0
ファイル: rsdebug.py プロジェクト: fege/Thesis-Project

def _configure_logging():
    """
        Configure logging.
        When no logfile argument is given we log to stdout.
        """
    logging.config.fileConfig('loggingClient.conf')
    logging.info('Logging started')


if __name__ == "__main__":

    _configure_logging()
    cache = CacheService()
    cacheMng = CacheManager()
    tornado.options.parse_command_line()
    # Read File
    tornado.options.parse_config_file(options.conf)

    if not options.rpc and not options.param:
        int_exec = True

    if options.help == '':
        myhelp()
        sys.exit()

    if int_exec:
        print 'Welcome to RestFS Debug Command Line\n'
        print 'Version %s \n' % restfs_version