Package org.enhydra.jdbc.util

Examples of org.enhydra.jdbc.util.Logger


  /**
   * Constructor
   */
  public StandardPoolDataSource(int initSize) { // with an init Max size
    log = new Logger(glog);
    super.setLogWriter(log);

    pool = new GenericPool(this, initSize);
    // create the pool with StandardPoolDataSource object
    pool.setLogger(log);
View Full Code Here


  /**
   * Constructor
   */
  public StandardPoolDataSource(ConnectionPoolDataSource cc) {
    cpds = cc;
    log = new Logger(glog);

    super.setLogWriter(log);
    pool = new GenericPool(this);
    // create the pool with StandardPoolDataSource object
    pool.setLogger(log);
View Full Code Here

   */
  public StandardPoolDataSource(
    ConnectionPoolDataSource cc,
    int initSize) { // with an init Max size
    cpds = cc;
    log = new Logger(glog);
    super.setLogWriter(log);

    pool = new GenericPool(this, initSize);
    // create the pool with StandardPoolDataSource object
    pool.setLogger(log);
View Full Code Here

    freeConnections = new Vector(minCon, 1);
    // allow a reasonable size for free connections
    xidConnections = new Hashtable(minCon * 2, 0.5f);
    // ...and same for used connections

    log = new Logger(LogFactory.getLog("org.enhydra.jdbc.xapool"));
    log.debug("StandardXADataSource is created");
  }
View Full Code Here

  /**
   * Constructor
   */
  public StandardPoolDataSource() {
    log = new Logger(glog);
    super.setLogWriter(log);

    pool = new GenericPool(this);
    // create the pool with StandardPoolDataSource object
    pool.setLogger(log);
View Full Code Here

    private long timeToLive_ = 0;

    private static Logger logger;

    public RequestCacheObject(long ttl) {
  logger = new Logger((Log)(new Log4JLogger("org.enhydra.jdbc.util")));
  timeToLive_ = ttl;
    }
View Full Code Here

  logger = new Logger((Log)(new Log4JLogger("org.enhydra.jdbc.util")));
  timeToLive_ = ttl;
    }
   
    public RequestCacheObject(String req, Pattern pattern, long ttl) {
  logger = new Logger((Log)(new Log4JLogger("org.enhydra.jdbc.util")));
  logger.debug("RequestCacheObject:RequestCacheObject req=<"+req+"> ttl=<"+ttl+">");
  request_ = req;
  pattern_ = pattern;
  timeToLive_ = ttl;
    }
View Full Code Here

    return theCache_;
  }

  public RequestCache() {
    if (logger == null)
      logger = new Logger(LogFactory.getLog("org.enhydra.jdbc.util"));

    if (cache_ == null)
      cache_ = new Hashtable();

    if (requests_ == null)
View Full Code Here

    freeConnections = new Vector(minCon, 1);
    // allow a reasonable size for free connections
    xidConnections = new Hashtable(minCon * 2, 0.5f);
    // ...and same for used connections

    log = new Logger(LogFactory.getLog("org.enhydra.jdbc.xapool"));
    log.debug("StandardXADataSource is created");
  }
View Full Code Here

  /**
   * Constructor
   */
  public StandardPoolDataSource() {
    log = new Logger(glog);
    super.setLogWriter(log);

    pool = new GenericPool(this);
    // create the pool with StandardPoolDataSource object
    pool.setLogger(log);
View Full Code Here

TOP

Related Classes of org.enhydra.jdbc.util.Logger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.