@Configuration @EnableConfigurationProperties(value={CassandraProperties.class,DevelopmentModeProperties.class,ServerProperties.class}) @EnableMBeanExport public class ArchiveServerApplicationConfiguration extends Object
ApplicationContext
created by the
ArchiveServerApplication
. The configuration has been separated into
this class in order to keep it simple and not clutter it with all the static
methods that the main application class needs for preparing the application
context.Constructor and Description |
---|
ArchiveServerApplicationConfiguration() |
Modifier and Type | Method and Description |
---|---|
ArchiveAccessService |
archiveAccessService()
Creates the archive access service.
|
ArchiveConfigurationService |
archiveConfigurationService()
Creates the archive configuration service.
|
ArchiveUserDetailsManager |
archiveUserDetailsManager()
Creates the archive user-details manager.
|
ArchivingService |
archivingService()
Creates the archiving service.
|
AsyncClientHttpRequestFactory |
asyncClientHttpRequestFactory()
Creates the async client HTTP request factory.
|
BCryptPasswordEncoder |
bCryptPasswordEncoder()
Creates the password encoder used for encoding password with the BCrypt
algorithm and to verify such password hashes.
|
CassandraProvider |
cassandraProvider()
Creates the Cassandra database provider.
|
ChannelInformationCache |
channelInformationCache()
Creates the channel information cache.
|
ChannelMetaDataDAO |
channelMetaDataDAO()
Creates the DAO for accessing channel meta-data.
|
ThrottlingCassandraProvider |
channelMetaDataDAOCassandraProvider()
Creates the Cassandra database provider used for the
channelMetaDataDAO() . |
ClusterManagementService |
clusterManagementService()
Creates the cluster management service.
|
ClusterServersDAO |
clusterServersDAO()
Creates the DAO for accessing information about the archiving servers
within the cluster.
|
ControlSystemSupportRegistry |
controlSystemSupportRegistry()
Creates the control-system support registry.
|
ThrottlingCassandraProvider |
controlSystemSupportRegistryCassandraProvider()
Creates the Cassandra database provider used for the
controlSystemSupportRegistry() . |
GenericDataStoreDAO |
genericDataStoreDAO()
Creates the DAO for accessing the generic data store.
|
InterNodeCommunicationAuthenticationService |
interNodeCommunicationAuthenticationService()
Creates the inter-node-communication authentication service.
|
InterNodeCommunicationService |
interNodeCommunicationService()
Creates the inter-node communication service.
|
ThrottlingProperties |
throttlingProperties()
Creates the throttling properties.
|
public ArchiveServerApplicationConfiguration()
@Bean public ArchiveAccessService archiveAccessService()
@Bean public ArchiveConfigurationService archiveConfigurationService()
@Bean public ArchiveUserDetailsManager archiveUserDetailsManager()
@Bean public ArchivingService archivingService()
@Bean public AsyncClientHttpRequestFactory asyncClientHttpRequestFactory()
interNodeCommunicationService()
).@Bean public BCryptPasswordEncoder bCryptPasswordEncoder()
archiveUserDetailsManager()
.@Bean @Primary public CassandraProvider cassandraProvider()
Cluster
and Session
objects through which the
Cassandra database can be accessed. This bean is annotated with
@Primary
so that this Cassandra provider is used for
autowiring.@Bean public ChannelInformationCache channelInformationCache()
@Bean public ClusterManagementService clusterManagementService()
@Bean public ThrottlingCassandraProvider channelMetaDataDAOCassandraProvider()
channelMetaDataDAO()
. This provider is a throttling Cassandra
provider that wraps the cassandraProvider()
. The throttling is
configured with the values specified by the
throttlingProperties()
.channelMetaDataDAO()
.@Bean public ChannelMetaDataDAO channelMetaDataDAO()
@Bean public ClusterServersDAO clusterServersDAO()
@Bean public ThrottlingCassandraProvider controlSystemSupportRegistryCassandraProvider()
controlSystemSupportRegistry()
. This provider is a throttling
Cassandra provider that wraps the cassandraProvider()
. The
throttling is configured with the values specified by the
throttlingProperties()
.controlSystemSupportRegistry()
.@Bean public ControlSystemSupportRegistry controlSystemSupportRegistry()
@Bean public GenericDataStoreDAO genericDataStoreDAO()
@Bean public InterNodeCommunicationAuthenticationService interNodeCommunicationAuthenticationService()
InterNodeCommunicationService
. It
provides methods for generating credentials that can then be checked by
another instance of the service on a different host.@Bean public InterNodeCommunicationService interNodeCommunicationService()
@Bean public ThrottlingProperties throttlingProperties()
channelMetaDataDAOCassandraProvider()
and
controlSystemSupportRegistryCassandraProvider()
. This method
only creates the object. The actual property values are injected by the
Spring container.Copyright © 2011–2017 aquenos GmbH. All rights reserved.