PooledDataSource.java 384 B

1234567891011121314151617181920
  1. package com.primeton.damp.bigdata;
  2. import java.io.Closeable;
  3. import java.util.Properties;
  4. import javax.sql.DataSource;
  5. /**
  6. *
  7. * Hive DAtaSource 实现
  8. *
  9. * @author zhaopx
  10. */
  11. public interface PooledDataSource extends DataSource, Closeable {
  12. public void setProperties(Properties properties);
  13. public void setIdleValidationQuery(int idleInSeconds, String validationQuery);
  14. }