Class SimpleDbQueryLoggerFactory<T>

  • Type Parameters:
    T - The type of the Record instances managed by the Logger.


    public class SimpleDbQueryLoggerFactory<T>
    extends java.lang.Object
    Ready to use QueryLogger to create QueryLogger instances directly attached to Amazon SimpleDb.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleDbQueryLoggerFactory​(java.lang.String aSchemaPrefix, java.lang.String aAccessKey, java.lang.String aSecretKey, java.lang.String aEndPoint, org.refcodes.tabular.ColumnFactory<T> aColumnFactory)
      Instantiates a new simple db query logger factory impl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      L createInstance​(java.lang.String aDomainSuffix, java.util.Map<java.lang.String,java.lang.String> aProperties)
      org.refcodes.logger.QueryLogger<T> createInstance​(java.lang.String aSchemaSuffix)
      protected java.lang.String getAccessKey​()
      Retrieves the Amazon access key.
      protected org.refcodes.tabular.ColumnFactory<T> getColumnFactory​()
      Retrieves the ColumnFactory to be used.
      protected java.lang.String getEndPoint​()
      Retrieves the Amazon SimpleDB end-point.
      protected java.lang.String getSchemaPrefix​()
      Provides access to the schema prefix.
      protected java.lang.String getSecretKey​()
      Retrieves the Amazon secret key.
      • Methods inherited from interface org.refcodes.factory.LookupFactory

        createInstance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleDbQueryLoggerFactory

        public SimpleDbQueryLoggerFactory​(java.lang.String aSchemaPrefix,
                                          java.lang.String aAccessKey,
                                          java.lang.String aSecretKey,
                                          java.lang.String aEndPoint,
                                          org.refcodes.tabular.ColumnFactory<T> aColumnFactory)
        Instantiates a new simple db query 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 Detail

      • createInstance

        public org.refcodes.logger.QueryLogger<T> createInstance​(java.lang.String aSchemaSuffix)
      • createInstance

        public L createInstance​(java.lang.String aDomainSuffix,
                                java.util.Map<java.lang.String,java.lang.String> aProperties)
        Specified by:
        createInstance in interface org.refcodes.factory.LookupFactory<L extends org.refcodes.logger.Logger<T>,T>
      • getSchemaPrefix

        protected java.lang.String getSchemaPrefix​()
        Provides access to the schema prefix.
        Returns:
        The schema prefix
      • getAccessKey

        protected java.lang.String getAccessKey​()
        Retrieves the Amazon access key.
        Returns:
        The Amazon access key.
      • getSecretKey

        protected java.lang.String getSecretKey​()
        Retrieves the Amazon secret key.
        Returns:
        The Amazon secret key.
      • getEndPoint

        protected java.lang.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.