Examples of HectorPersistenceFactory


Examples of org.firebrandocm.dao.impl.hector.HectorPersistenceFactory

  protected static List<Class<?>> persistentClasses;


    public static void initWithClasses(String clazzezPkg) throws Exception {
      factory = new HectorPersistenceFactory();
      factory.setDefaultKeySpace(DEFAULT_KEYSPACE);
      factory.setContactNodes(new String[]{RPC_LISTEN_ADDRESS});
      factory.setPoolName("Main");
      factory.setDebug(false);
      factory.setThriftPort(RPC_PORT);
View Full Code Here

Examples of org.firebrandocm.dao.impl.hector.HectorPersistenceFactory

      persistentClasses = ClassUtil.get(clazzezPkg, ColumnFamily.class);
    }

    public static void initWithClasses(Class<?>... clazzez) throws Exception {
    List<Class<?>> classList = Arrays.asList(clazzez);
    factory = new HectorPersistenceFactory();
    factory.setDefaultKeySpace(DEFAULT_KEYSPACE);
    factory.setContactNodes(new String[]{RPC_LISTEN_ADDRESS});
    factory.setPoolName("Main");
    factory.setDebug(false);
    factory.setThriftPort(RPC_PORT);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.