Ejemplo n.º 1
0
 def __init__(self):
     StorageBase.__init__(self)
     define("storage_object_depth",
            default=0,
            help="object distribution inside of bucket",
            type=int)
     #Read Command line with new definitions
     tornado.options.parse_config_file(options.conf)
     self._OBJECT_DEPTH = options.storage_object_depth
Ejemplo n.º 2
0
 def __init__(self ):
     StorageBase.__init__(self)     
     if not os.path.exists(self._BUCKET_PATH):
         logging.debug('Create root direcoty %s' % self._BUCKET_PATH)
         os.makedirs(self._BUCKET_PATH)         
Ejemplo n.º 3
0
 def __init__(self):
     StorageBase.__init__(self)
     define("storage_object_depth", default=0  , help="object distribution inside of bucket", type=int)
     #Read Command line with new definitions
     tornado.options.parse_config_file(options.conf) 
     self._OBJECT_DEPTH = options.storage_object_depth