Esempio n. 1
0
    def _start_container(self):
        """
        Starting and initialzing the container with a connection to a broker.
        @note Hardwired to connect to amoeba for broker.
        """
        mopt = {}
        mopt['broker_host'] = CONF['broker_host']
        mopt['broker_port'] = CONF['broker_port']
        mopt['broker_vhost'] = CONF['broker_vhost']
        mopt['boot_script'] = None
        mopt['script'] = None

        self.cont_conn = yield container.startContainer(mopt)
        bootstrap.init_container()
        self.procRegistry = base_process.procRegistry
        logging.info("============Magnet container started, "+repr(self.cont_conn))
Esempio n. 2
0
    def _start_container(self):
        """
        Starting and initialzing the container with a connection to a broker.
        @note Hardwired to connect to amoeba for broker.
        """
        mopt = {}
        mopt['broker_host'] = CONF['broker_host']
        mopt['broker_port'] = CONF['broker_port']
        mopt['broker_vhost'] = CONF['broker_vhost']
        mopt['broker_heartbeat'] = CONF['broker_heartbeat']
        mopt['boot_script'] = None
        mopt['script'] = None

        self.cont_conn = yield container.startContainer(mopt)
        bootstrap.init_container()
        self.procRegistry = base_process.procRegistry
        self.test_sup = yield bootstrap.create_supervisor()

        #Load All Resource Descriptions for future decoding
        description_utility.load_descriptions()

        logging.info("============Magnet container started, "+repr(self.cont_conn))
Esempio n. 3
0
    def _start_container(self):
        """
        Starting and initialzing the container with a connection to a broker.
        @note Hardwired to connect to amoeba for broker.
        """
        mopt = {}
        mopt['broker_host'] = CONF['broker_host']
        mopt['broker_port'] = CONF['broker_port']
        mopt['broker_vhost'] = CONF['broker_vhost']
        mopt['broker_heartbeat'] = CONF['broker_heartbeat']
        mopt['boot_script'] = None
        mopt['script'] = None

        self.cont_conn = yield container.startContainer(mopt)
        bootstrap.init_container()
        self.procRegistry = base_process.procRegistry
        self.test_sup = yield bootstrap.create_supervisor()

        #Load All Resource Descriptions for future decoding
        description_utility.load_descriptions()

        logging.info("============Magnet container started, " +
                     repr(self.cont_conn))