hub-cap/sneaky-pete — pull request #46 by TimSimpsonR (2012-01-26 18:02:25+00:00)
Title: Added a "restart" method.

* Renamed MySqlPreparer to MySqlApp, since it seems to be a class centered around managing the MySQL application (versus the database) and has more responsibilities than just preparing it.
* Renamed MySqlNovaUpdater to MySqlAppStatus, since its main responsibility was to be the source of truth on the status of the MySQL app (the fact it talked to Nova about this was incidental).
* Added a "restart" method to MySqlApp.
* Took the "prepare" call out of MySqlMessageHandler since the one call forced that class to own a Config object with three private fields, and made a new class called MySqlAppMessageHandler which takes the config values in its constructor and forwards GuestInput to MySqlApp methods.
* Fixed a strange issue with the Amqp code that causes Sneaky Pete to die. Not sure what is causing this issue but the fix does the trick and should be harmless at worst.
* Added 'paused' to MySqlAppStatus codes. This is because Reddwarf may set the status to this before it reboots the container. I'm not sure if the agent will ever read this value but wanted to be consistent.