public class AggregatedCloudPlatformConfiguration extends CloudPlatformConfiguration
Constructor and Description |
---|
AggregatedCloudPlatformConfiguration(AggregatedMessageQueueConfiguration messageQueueConfiguration,
CloudPlatformConfiguration... cloudPlatforms)
Creates the new instance of the aggregated cloud platform configuration for the multiple message queue scenario.
|
AggregatedCloudPlatformConfiguration(CloudPlatformConfiguration... cloudPlatforms)
Creates new instance of aggregated cloud platform configuration for the single message queue scenario.
|
Modifier and Type | Method and Description |
---|---|
AutoCloseable |
ensureCommunicationServerRunning()
Ensures that Message Queue is running on this cloud platform
|
CloudPlatformConfiguration[] |
getCloudPlatforms() |
IVirtualHost |
getVirtualHost(IdManager idManager)
Gets the new host within the declared platform.
|
IVirtualHostPool |
getVirtualHostPool() |
protected AutoCloseable |
startMessageQueueServer(MessageQueueConfiguration communicationConfiguration)
Starts Message Queue Server with specified configuration and returns closeable object that allows to shut it down.
|
getMessageQueueConfiguration, setMessageQueueConfiguration
public AggregatedCloudPlatformConfiguration(CloudPlatformConfiguration... cloudPlatforms)
cloudPlatforms
- The set of cloud platforms that will communicate through the single message queue.public AggregatedCloudPlatformConfiguration(AggregatedMessageQueueConfiguration messageQueueConfiguration, CloudPlatformConfiguration... cloudPlatforms)
messageQueueConfiguration
- An instance of the aggregated message queue configuration that contains
a list of message queue configurations for each cloud platform.cloudPlatforms
- The list of cloud platforms that should be aggregated within this aggregated message queue configuration.public CloudPlatformConfiguration[] getCloudPlatforms()
public IVirtualHost getVirtualHost(IdManager idManager)
CloudPlatformConfiguration
getVirtualHost
in class CloudPlatformConfiguration
public IVirtualHostPool getVirtualHostPool()
getVirtualHostPool
in class CloudPlatformConfiguration
public AutoCloseable ensureCommunicationServerRunning() throws Exception
CloudPlatformConfiguration
ensureCommunicationServerRunning
in class CloudPlatformConfiguration
Exception
protected AutoCloseable startMessageQueueServer(MessageQueueConfiguration communicationConfiguration) throws Exception
CloudPlatformConfiguration
startMessageQueueServer
in class CloudPlatformConfiguration
communicationConfiguration
- The message queue configuration of the server that should be started.Exception
Copyright © 2014. All Rights Reserved.