# -*- coding: utf-8 -*-

from .executor_pools  import ExecutorPools
from .circuit_beaker import CircuitBeaker

class Component(object):

    def __init__(self):
        self.pools = ExecutorPools()
        self.circuit_beaker = CircuitBeaker()

@@ -237,8 +237,652 @@
 eaker()%0A
+        self.configurations = %7B%7D%0A%0A    def set(self, key, value):%0A        self.configurations%5Bkey%5D = value%0A%0A    def add(self, key, value):%0A        self.configurations.setdefault(key, %5B%5D)%0A        if key in self.configurations:%0A            assert isinstance(self.configurations%5Bkey%5D, list)%0A        self.configurations%5Bkey%5D.append(value)%0A%0A    def delete(self, key):%0A        del self.configurations%5Bkey%5D%0A%0A    def install(self):%0A        if 'executor_pool' in self.configurations:%0A            for executor_pool in self.configurations%5B'executor_pool'%5D:%0A                self.pools.register_pool(executor_pool%5B'group_key'%5D, executor_pool%5B'max_workers'%5D)%0A

Add configure component API.