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
.
public class SimpleDbLoggerFactory<T> extends Object
Ready to useLoggerFactory
to createLogger
instances directly attached to Amazon SimpleDb.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L
createInstance(String aDomainSuffix, Map<String,String> aProperties)
org.refcodes.logger.Logger<T>
createInstance(String aSchemaSuffix)
protected String
getAccessKey()
Retrieves the Amazon access key.protected org.refcodes.tabular.ColumnFactory<T>
getColumnFactory()
Retrieves theColumnFactory
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.
-
-
-
Constructor Detail
-
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 Detail
-
createInstance
public L createInstance(String aDomainSuffix, Map<String,String> aProperties)
- Specified by:
createInstance
in interfaceorg.refcodes.factory.LookupFactory<L extends org.refcodes.logger.Logger<T>,T>
-
getSchemaPrefix
protected String getSchemaPrefix()
Provides access to the schema prefix.- Returns:
- The schema prefix
-
getAccessKey
protected String getAccessKey()
Retrieves the Amazon access key.- Returns:
- The Amazon access key.
-
getSecretKey
protected String getSecretKey()
Retrieves the Amazon secret key.- Returns:
- The Amazon secret key.
-
getEndPoint
protected String getEndPoint()
Retrieves the Amazon SimpleDB end-point.- Returns:
- The Amazon SimpleDB end-point.
-
getColumnFactory
protected org.refcodes.tabular.ColumnFactory<T> getColumnFactory()
Retrieves theColumnFactory
to be used.- Returns:
- The
ColumnFactory
to be used.
-
-