2 # -*- coding: utf-8 -*-
3 # vim:ts=4:sw=4:et:ai:sts=4
8 class Controller(object):
10 self._testbeds = dict()
12 def create_testbed(self, guid, testbed_id, config, access_config = None):
14 # guid: guid of the associated backend
15 self._testbeds[guid] = testbed
17 def destroy_testbed(self, guid):
18 tesbed = self._testbeds[guid]
20 del self._testbeds[guid]
22 def forward(self, guid, instruction):
26 def forward_batch(self, guid, batch):
27 raise NotImplementedError
30 raise NotImplementedError
33 raise NotImplementedError
36 raise NotImplementedError
39 raise NotImplementedError