Package org.refcodes.logger.alt.simpledb
Class SimpleDbLoggerFactory<T>
java.lang.Object
org.refcodes.logger.alt.simpledb.SimpleDbLoggerFactory<T>
- Type Parameters:
T
- The type of theRecord
instances managed by theLogger
.
- All Implemented Interfaces:
org.refcodes.factory.LookupFactory<org.refcodes.logger.Logger<T>,
,String> org.refcodes.logger.LoggerFactory<org.refcodes.logger.Logger<T>>
Ready to use
LoggerFactory
to create Logger
instances
directly attached to Amazon SimpleDb.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.refcodes.logger.Logger<T>
createInstance
(String aSchemaSuffix) org.refcodes.logger.Logger<T>
createInstance
(String aDomainSuffix, Map<String, String> aProperties) protected String
Retrieves the Amazon access key.protected org.refcodes.tabular.ColumnFactory<T>
Retrieves theColumnFactory
to be used.protected String
Retrieves the Amazon SimpleDB end-point.protected String
Provides access to the schema prefix.protected String
Retrieves the Amazon secret key.
-
Constructor Details
-
SimpleDbLoggerFactory
public SimpleDbLoggerFactory(String aDomainPrefix, String aAccessKey, String aSecretKey, String aEndPoint, org.refcodes.tabular.ColumnFactory<T> aColumnFactory) Instantiates a new simple db logger factory impl.- Parameters:
aDomainPrefix
- the domain prefixaAccessKey
- the access keyaSecretKey
- the secret keyaEndPoint
- the end pointaColumnFactory
- the column factory
-
-
Method Details
-
createInstance
-
createInstance
public org.refcodes.logger.Logger<T> createInstance(String aDomainSuffix, Map<String, String> aProperties) - Specified by:
createInstance
in interfaceorg.refcodes.factory.LookupFactory<L extends org.refcodes.logger.Logger<T>,
T>
-
getSchemaPrefix
Provides access to the schema prefix.- Returns:
- The schema prefix
-
getAccessKey
Retrieves the Amazon access key.- Returns:
- The Amazon access key.
-
getSecretKey
Retrieves the Amazon secret key.- Returns:
- The Amazon secret key.
-
getEndPoint
Retrieves the Amazon SimpleDB end-point.- Returns:
- The Amazon SimpleDB end-point.
-
getColumnFactory
Retrieves theColumnFactory
to be used.- Returns:
- The
ColumnFactory
to be used.
-