Package org.hibernate.shards.session

Examples of org.hibernate.shards.session.ShardedSessionFactory


  public void update(Observable o, Object arg) {
    sync();
  }

  public boolean sync() {
    ShardedSessionFactory newFactory = buildAllNodesSessionFactory();
    synchronized (this) {
      this.allNodesSessionFactory = newFactory;
    }
    return true;
  }
View Full Code Here


      public ShardConfiguration f(NodeConfiguration item) {
        log.info("Adding node: " + item.getNode().getUri());
        return item.toShardConfig();
      }
    },nodeConfigs);
    ShardedSessionFactory shardedFactory =
      new ShardedConfiguration(
        buildPrototypeConfiguration(Atom.getFirstOrThrow(nodeConfigs)),
        Lists.newList(shardConfigs),
        buildShardStrategyFactory()).buildShardedSessionFactory();
View Full Code Here

TOP

Related Classes of org.hibernate.shards.session.ShardedSessionFactory

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.