/*
 * Copyright (C) Fredrik Larsson <nossralf@gmail.com>
 * All rights reserved.
 *
 * This software may be modified and distributed under the terms
 * of the BSD license.  See the LICENSE file for details.
 */
package com.analogmountains.flume;

public class MongoSinkConstants {

  /**
   * Comma-separated list of hostname:port. If the port is not present the
   * default port 27017 will be used.
   */
  public static final String HOSTNAMES = "hostNames";

  /**
   * Database name.
   */
  public static final String DATABASE = "database";

  /**
   * Collection name.
   */
  public static final String COLLECTION = "collection";

  /**
   * User name.
   */
  public static final String USER = "user";

  /**
   * Password.
   */
  public static final String PASSWORD = "password";

  /**
   * Maximum number of events the sink should take from the channel per
   * transaction, if available. Defaults to 100.
   */
  public static final String BATCH_SIZE = "batchSize";

  /**
   * The default batch size.
   */
  public static final int DEFAULT_BATCH_SIZE = 100;
}

/*
 * Copyright (C) Fredrik Larsson <nossralf@gmail.com>
 * All rights reserved.
 *
 * This software may be modified and distributed under the terms
 * of the BSD license.  See the LICENSE file for details.
 */
package com.analogmountains.flume;

class MongoSinkConstants {

  /**
   * Comma-separated list of hostname:port. If the port is not present the
   * default port 27017 will be used.
   */
  static final String HOSTNAMES = "hostNames";

  /**
   * Database name.
   */
  static final String DATABASE = "database";

  /**
   * Collection name.
   */
  static final String COLLECTION = "collection";

  /**
   * User name.
   */
  static final String USER = "user";

  /**
   * Password.
   */
  static final String PASSWORD = "password";

  /**
   * Maximum number of events the sink should take from the channel per
   * transaction, if available. Defaults to 100.
   */
  static final String BATCH_SIZE = "batchSize";

  /**
   * The default batch size.
   */
  static final int DEFAULT_BATCH_SIZE = 100;
}

Make constants class and members package private
Make constants class and members package private
