Package org.refcodes.logger.alt.simpledb
Class SimpleDbTrimLoggerFactory<T>
java.lang.Object
org.refcodes.logger.alt.simpledb.SimpleDbTrimLoggerFactory<T>
- Type Parameters:
T
- The type of theRecord
instances managed by theLogger
.
- All Implemented Interfaces:
org.refcodes.factory.LookupFactory<org.refcodes.logger.TrimLogger<T>,
,String> org.refcodes.logger.LoggerFactory<org.refcodes.logger.TrimLogger<T>>
Ready to use
TrimLogger
to create TrimLogger
instances
directly attached to Amazon SimpleDb.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.refcodes.logger.TrimLogger<T>
createInstance
(String aSchemaSuffix) org.refcodes.logger.TrimLogger<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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.factory.LookupFactory
createInstance
-
Constructor Details
-
SimpleDbTrimLoggerFactory
public SimpleDbTrimLoggerFactory(String aSchemaPrefix, String aAccessKey, String aSecretKey, String aEndPoint, org.refcodes.tabular.ColumnFactory<T> aColumnFactory) Instantiates a new simple db trim logger factory impl.- Parameters:
aSchemaPrefix
- the schema prefixaAccessKey
- the access keyaSecretKey
- the secret keyaEndPoint
- the end pointaColumnFactory
- the column factory
-
-
Method Details
-
createInstance
-
createInstance
public org.refcodes.logger.TrimLogger<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.
-