L
- The type (sub-type) of the Logger
to be created.T
- The type of the Record
instances managed by the
Logger
.public abstract class AbstractSimpleDbLoggerFactory<L extends org.refcodes.logger.Logger<T>,T> extends Object implements org.refcodes.logger.factories.LoggerFactory<L>
AbstractSimpleDbLoggerFactory
implements the
LoggerFactory
and creates Logger
instances using the SimpleDB
NoSQL engine from Amazon. The LoggerFactory
methods
createInstance(String)
and createInstance(String)
actually
return LoggerSimpleDbImpl
instances being configured to use an Amazon
SimpleDB domain name constructed from an Amazon SimpleDB domain prefix
(provided to the constructor) and suffix (provided to the factory methods).Constructor and Description |
---|
AbstractSimpleDbLoggerFactory(String aDomainPrefix,
String aAccessKey,
String aSecretKey,
String aEndPoint,
org.refcodes.tabular.factories.ColumnFactory<T> aColumnFactory)
Creates an
AbstractSimpleDbLoggerFactory for creating Amazon
SimpleDB based Logger instances. |
Modifier and Type | Method and Description |
---|---|
abstract L |
createInstance(String aDomainSuffix)
Creates a
Logger instance using Amazon SimpleDB as the physical
data sink. |
L |
createInstance(String aDomainSuffix,
Properties aProperties)
Creates a
Logger instance using Amazon SimpleDB as the physical
data sink. |
protected String |
getAccessKey()
Retrieves the Amazon access key.
|
protected org.refcodes.tabular.factories.ColumnFactory<T> |
getColumnFactory()
Retrieves the
ColumnFactory to be used. |
protected String |
getEndPoint()
Retrieves the Amazon SimpleDB end-point.
|
protected String |
getSchemaPrefix()
Provides access to the schema prefix.
|
protected String |
getSecretKey()
Retrieves the Amazon secret key.
|
public AbstractSimpleDbLoggerFactory(String aDomainPrefix, String aAccessKey, String aSecretKey, String aEndPoint, org.refcodes.tabular.factories.ColumnFactory<T> aColumnFactory)
AbstractSimpleDbLoggerFactory
for creating Amazon
SimpleDB based Logger
instances.aDomainPrefix
- The Amazon SimpleDB domain name's prefix.aAccessKey
- The Amazon access key to use.aSecretKey
- The Amazon secret key to use.aEndPoint
- The end-point (Amazon region) to use.aColumnFactory
- The ColumnFactory
used to handle the
Column
instances.public abstract L createInstance(String aDomainSuffix)
Logger
instance using Amazon SimpleDB as the physical
data sink. The Amazon SimpleDB domain name is generated from the SimpleDB
domain prefix as passed via the constructor and the SimpleDB domain
suffix as passed as argument.public L createInstance(String aDomainSuffix, Properties aProperties)
Logger
instance using Amazon SimpleDB as the physical
data sink. The Amazon SimpleDB domain name is generated from the SimpleDB
domain prefix as passed via the constructor and the SimpleDB domain
suffix as passed as argument.createInstance
in interface org.refcodes.factory.factories.TypedLookupIdFactory<L extends org.refcodes.logger.Logger<T>>
aDomainSuffix
- The Amazon SimpleDB domain name's suffix. The prefix
is provided via the constructor.aProperties
- Additional properties to configure the Logger
instance, them properties are currently not supported!protected String getSchemaPrefix()
protected String getAccessKey()
protected String getSecretKey()
protected String getEndPoint()
protected org.refcodes.tabular.factories.ColumnFactory<T> getColumnFactory()
ColumnFactory
to be used.ColumnFactory
to be used.Copyright © 2015. All rights reserved.