Module Expr Str Assign NameStore Str ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd UnaryOpNot NameLoad Call NameLoad NameLoad Str body Assign NameStore NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad BinOpMod Str TupleLoad Call NameLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call NameLoad NameLoad Str If CompareIn TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore BoolOpOr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list
N/A N/A Management of datastores in the container N/A __author__ Thomas R. Lennan, Michael Meisinger pyon.core.bootstrap get_sys_name CFG pyon.datastore.datastore_common DatastoreFactory DataStore pyon.util.log log pyon.util.arg_check validate_true DatastoreManager N/A object N/A N/A 
    Container manager for datastore instances.
    @TODO: Remove caching. This is harmful and no good
     __init__ N/A N/A self container N/A None N/A N/A N/A self _datastores N/A N/A N/A self container container N/A start N/A N/A self N/A N/A N/A N/A stop N/A N/A self N/A N/A N/A N/A N/A log debug DatastoreManager.stop() [%d datastores] N/A len N/A self _datastores N/A some_datastore None N/A ds N/A N/A N/A self _datastores itervalues N/A N/A N/A N/A some_datastore N/A hasattr ds close_all N/A N/A some_datastore ds N/A N/A N/A N/A N/A ds close N/A N/A N/A Exception N/A ex N/A N/A N/A N/A log exception Error closing datastore N/A N/A self _datastores N/A N/A some_datastore N/A N/A N/A N/A N/A N/A some_datastore close_all N/A N/A N/A Exception N/A ex N/A N/A N/A N/A log exception Error closing datastore N/A get_scoped_name N/A N/A cls ds_name N/A N/A N/A N/A N/A N/A %s_%s N/A N/A get_sys_name ds_name lower N/A classmethod get_datastore N/A N/A self ds_name profile config N/A None None N/A N/A 
        Factory method to get a datastore instance from given name, profile and config.
        @param ds_name  Logical name of datastore (will be scoped with sysname)
        @param profile  One of known constants determining the use of the store
        @param config  Override config to use
         N/A N/A validate_true ds_name ds_name must be provided N/A N/A N/A ds_name profile N/A self _datastores N/A N/A N/A N/A log debug N/A get_datastore(): Found instance of store '%s' (profile=%s) N/A ds_name profile N/A N/A N/A self _datastores N/A N/A ds_name profile N/A N/A N/A log info N/A get_datastore(): Create instance of store '%s' as database=%s (profile=%s) N/A ds_name ds_name profile N/A new_ds N/A N/A DatastoreManager get_datastore_instance ds_name profile N/A N/A N/A N/A new_ds datastore_exists ds_name N/A N/A N/A N/A new_ds create_datastore ds_name create_indexes True profile profile N/A N/A N/A N/A new_ds define_profile_views profile profile keepviews True N/A N/A new_ds local_name ds_name N/A N/A new_ds ds_profile profile N/A N/A N/A self _datastores N/A N/A ds_name profile new_ds N/A new_ds N/A get_datastore_instance N/A N/A cls ds_name profile N/A None N/A N/A profile N/A profile N/A N/A N/A DataStore DS_PROFILE_MAPPING get ds_name N/A N/A DataStore DS_PROFILE BASIC N/A new_ds N/A N/A DatastoreFactory get_datastore datastore_name ds_name profile profile scope N/A get_sys_name config CFG variant N/A DatastoreFactory DS_FULL N/A new_ds N/A classmethod exists N/A N/A cls ds_name scoped config N/A True None N/A N/A scoped N/A N/A ds_name N/A N/A DatastoreManager get_scoped_name ds_name N/A generic_ds N/A N/A cls get_datastore_instance N/A N/A N/A generic_ds datastore_exists ds_name N/A classmethod N/A