This repository was archived by the owner on Sep 27, 2019. It is now read-only.
This repository was archived by the owner on Sep 27, 2019. It is now read-only.
Create "PelotonMain" object #404
Open
Description
There is no single object that encapsulates the different objects in the system. Both @malin1993ml and @sid1607 have the problem that they need to maintain stateful objects that are used in different parts of the system but there is no single location to put them. The TrafficCop object is really just a bunch of static methods, so it's not really the right place.
I propose that create a new class called PelotonMain
that is responsible for instantiating the different parts of the system and connecting them together (e.g., thread pools, optimizer, traffic cop, executors). We can make this a singleton object that can be retrieved by any part of the system that needs it (need to think about this, it might be a bad idea).