Package com.splout.db.engine

Examples of com.splout.db.engine.EngineManager


   * to a tablespace/version which is not "warmed" (e.g. after Splout restart, or after long inactivity).
   */
  private Element loadManagerInEHCache(String tablespace, long version, int partition, File dbFolder, PartitionMetadata partitionMetadata) throws DNodeException {
    try {
      // Create new EHCache item value with a {@link EngineManager}
      EngineManager manager = factory.getManagerIn(dbFolder, partitionMetadata);
      String dbKey = tablespace + "_" + version + "_" + partition;
      Element dbPoolInCache = new Element(dbKey, manager);
      dbCache.put(dbPoolInCache);
      return dbPoolInCache;
    } catch(Exception e) {
View Full Code Here


  /*
   * Here is where we close the connection pool
   */
  protected void closeManager(Element paramElement) {
    log.info("Close manager: " + paramElement);
    EngineManager manager = (EngineManager) paramElement.getObjectValue();
    manager.close();
  }
View Full Code Here

TOP

Related Classes of com.splout.db.engine.EngineManager

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.