Framework for controlling various relay controllers