public static synchronized JdbcChannelProvider getProvider()

in flume-jdbc-channel/src/main/java/org/apache/flume/channel/jdbc/JdbcChannelProviderFactory.java [31:44]


  public static synchronized JdbcChannelProvider getProvider(
      Context context, String name) {
    if (PROVIDER == null) {
      PROVIDER = new JdbcChannelProviderImpl();
      PROVIDER.initialize(context);
    }

    if (!INSTANCES.add(name)) {
      throw new JdbcChannelException("Attempt to initialize multiple "
           + "channels with same name: " + name);
    }

    return PROVIDER;
  }