title: Are there a design pattern to controlling slave jobs or management of slaves from master?
body: <p>Management or Controller design patern. I have one class doing two different job in structure. Are there a design pattern to refactor it in more maintable way? Or, how should I divide this class in more maintable way?</p>
  
  <pre><code>                     Management Class does
  
  Task launching                            recovery management
  - create Callable Task                   - if thread failed to start, re-assign 
  - submit tasks to ExecutorService              the same task to other thread 
  - start ExecutorService                  - if task is not halted unexpectedly,
  - get result of each task                      re-assign the task to new thread
                                           - if thread halted, get already done 
                                                 job and restart the thread for
                                                 not done jobs
                                           - other task and thread related recovery
                                                 scenarios
  
  Settings
  - set requirements of management class in system level
  - determine optimal number of threads should be run
  - determine optimal number of task to be created
  - create and manage system configuration file - store system settings, get system
    settings-
  </code></pre>
  
  <p>Before down-voting or trying to close, if you are constructive, write comment so that I will fix it.</p>