Class SimpleDbTrimLoggerFactory<T>

java.lang.Object
org.refcodes.logger.alt.simpledb.SimpleDbTrimLoggerFactory<T>
Type Parameters:
T - The type of the Record instances managed by the Logger.
All Implemented Interfaces:
org.refcodes.factory.LookupFactory<org.refcodes.logger.TrimLogger<T>,String>, org.refcodes.logger.LoggerFactory<org.refcodes.logger.TrimLogger<T>>

public class SimpleDbTrimLoggerFactory<T> extends Object
Ready to use TrimLogger to create TrimLogger instances directly attached to Amazon SimpleDb.
  • 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 prefix
      aAccessKey - the access key
      aSecretKey - the secret key
      aEndPoint - the end point
      aColumnFactory - the column factory
  • Method Details

    • create

      public org.refcodes.logger.TrimLogger<T> create(String aSchemaSuffix)
      Specified by:
      create in interface org.refcodes.factory.LookupFactory<org.refcodes.logger.TrimLogger<T>,String>
    • create

      public org.refcodes.logger.TrimLogger<T> create(String aDomainSuffix, Map<String,String> aProperties)
      Specified by:
      create in interface org.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 the ColumnFactory to be used.
      Returns:
      The ColumnFactory to be used.