FC-40 Clean up SQS message handling

This is preparatory work for adding start/shutdown control later.
Removed RejectedExecutionHandler by controlling when messages are received from the queue. A semaphore is used to manage the number of messages being handled by the thread pool. Also corrected behaviour to receive up to 10 messages per SQS request, rather than 1.

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
Merge pull request #4 from clicktravel-steffan/master

FC-40 Clean up SQS message handling
FC-34 FC-40 WIP Centralised MessageListener start/shutdown control in LifecycleController

The lifecycle of all MessageListeners need to be managed according to the blue-green deployment procedure for applications. This commit establishes a new component LifecycleController for management of MessageListeners and other request handlers.

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
Merge pull request #5 from clicktravel-steffan/master

FC-34 FC-40 WIP Centralised MessageListener start/shutdown control in LifecycleController
Remove @author tags

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
Merge pull request #6 from clicktravel-steffan/master

Remove @author tags
Fix temporary solution for handling foreign SQS messages

To allow handling of foreign SQS messages (not produced by Cheddar) add a single handler for messages of type "" (empty string). This is a temporary solution; the message listener will be generalised at a later time better decouple message listening and handling.

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
Merge pull request #7 from clicktravel-steffan/master

Fix temporary solution for handling foreign SQS messages
INV-338 When attempting to get URLs for S3 documents i found a bug in the naming convention

Although a period is supported in the bucket name it means that ssl links to the file do not work because of multi level sub domains no longer working in modern browsers.

Signed-off-by: Robin Smith <robin.smith@clicktravel.com>
Had accidentally marked a value as protected whilst refactoring

Signed-off-by: Robin Smith <robin.smith@clicktravel.com>
Change to structure to make InternetFileStore a separate interface

Signed-off-by: Robin Smith <robin.smith@clicktravel.com>
Merge pull request #8 from clicktravel-robin/master
FC-39 FC-34 FC-42 FC-40 FC-41 FC-32 Added app instance lifecycle handling for blue-green deployment

Added system message handlers to manage application instance lifecycle, for application participating in blue-green deployment. Also added some preliminary changes for configuring number of worker threads independently for each message listener thread pool.

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
FC-39 FC-34 FC-42 FC-40 FC-41 FC-32 Refactored RemoteCall build logic.

Also added some Javadoc

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
FC-39 FC-34 FC-42 FC-40 FC-41 FC-32 Allow application to run without blue-green procedure

Signed-off-by: Steffan Westcott <steffan.westcott@clicktravel.com>
Merge pull request #9 from clicktravel-steffan/master

FC-39 FC-34 FC-42 FC-40 FC-41 FC-32 Added blue-green deployment support
Updated Cheddar to allow for PersistenceException handling when initialising database write actions.
Improved testing of correct Exception re-throwing when a transactional commit throws an Exception.
Fixed bug with DatabaseAction not propagating Exceptions when there are no PersistenceException handlers
Merge pull request #10 from clicktravel-basharat/master

Updated Cheddar to allow for PersistenceException handling when initialising database write actions