normalocity/keyspace — Issue #87: The Service class isn't using its requestQueue at all
Author: normalocity
Created: 2011-10-18 13:01:41+00:00
State: open
Labels: Bug, Feature

There's a problem with the Service class, in that, it has a requestQueue LinkedList that is supposed to queue up requests, and then have the ServiceController class close down the service gracefully. Problem is, nothing ever gets added to the requestQueue, and so (such as in issue #85), we had to resort to System.exit commands, instead of the more graceful and kind requestStop()

If we:
1. Started using the requestQueue and
2. Made the list of Jobs and Services accessible via some accessor methods on a base Server class, and added a 'requestServerStop() method, which would then dispatch a 'requestStop' call to all services

Then we should have a more graceful shutdown process available to us.