@staticmethod
    def add_allocator(allocator):
        ram = ResourceAllocationManager._get_instance()
        with ResourceAllocationManager._lock:
            name = allocator.name
            for alloc in ram._allocators:
                if alloc.name == name:
                    raise RuntimeError('allocator named %r already exists' % name)
            ram._allocators.append(allocator)
Add an allocator to the list of resource allocators.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/resource.py/ResourceAllocationManager.add_allocator