#NEWLINE# def __init__( self , params = None , blocking = False ) : #NEWLINE# #INDENT# "\n    Create a new InfrastructureManager instance. This constructor\n    accepts an optional boolean parameter which decides whether the\n    InfrastructureManager instance should operate in blocking mode\n    or not. A blocking InfrastructureManager does not return until\n    each requested run/terminate operation is complete. This mode\n    is useful for testing and verification purposes. In a real-world\n    deployment it's advisable to instantiate the InfrastructureManager\n    in the non-blocking mode as run/terminate operations could take\n    a rather long time to complete. By default InfrastructureManager\n    instances are created in the non-blocking mode.\n\n    Args\n      params    A dictionary of parameters. Optional parameter. If\n                specified it must at least include the 'store_type' parameter.\n      blocking  Whether to operate in blocking mode or not. Optional\n                and defaults to false.\n    " #NEWLINE# self . blocking = blocking #NEWLINE# self . secret = utils . get_secret ( ) #NEWLINE# self . agent_factory = InfrastructureAgentFactory ( ) #NEWLINE# if ( store_factory is not None ) : #NEWLINE# #INDENT# store_factory = PersistentStoreFactory ( ) #NEWLINE# store = store_factory . create_store ( params ) #NEWLINE# self . reservations = PersistentDictionary ( store ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . reservations = PersistentDictionary ( )