This class handles console input and output for a node in a distributed system. It implements the Runnable interface to allow it to be run in a separate thread.
The main loop of the ConsoleHandler. It reads command line inputs and parses them until an error occurs or the reading flag is set to false.