Package com.altamiracorp.bigtable.model

Examples of com.altamiracorp.bigtable.model.ModelSession


            if (LumifyTestClusterConfigurationLoader.isTestServer()) {
                FormatLumify.deleteElasticSearchIndex(config);

                ZooKeeperInstance zooKeeperInstance = new ZooKeeperInstance(config.getProperty("bigtable.accumulo.instanceName"), config.getProperty("bigtable.accumulo.zookeeperServerNames"));
                Connector connector = zooKeeperInstance.getConnector(config.getProperty("bigtable.accumulo.username"), new PasswordToken(config.getProperty("bigtable.accumulo.password")));
                ModelSession modelSession = new AccumuloSession(connector, true);
                ModelUserContext modelUserContext = modelSession.createModelUserContext(LumifyVisibility.SUPER_USER_VISIBILITY_STRING);
                SystemUser user = new SystemUser(modelUserContext);
                ModelUtil.deleteTables(modelSession, user);
                ModelUtil.initializeTables(modelSession, user);
            } else {
                setupHdfsFiles();
View Full Code Here


                graphPropertyRunner.shutdown();
            }

            LOGGER.info("shutdown: ModelSession");
            if (InjectHelper.hasInjector()) {
                ModelSession modelSession = InjectHelper.getInstance(ModelSession.class);
                try {
                    modelSession.close();
                } catch (IllegalStateException ex) {
                    // ignore this, the model session is already closed.
                }
            }
View Full Code Here

    public static void initializeFramework(final Injector injector, final User user) {
        checkNotNull(injector);
        checkNotNull(user);

        final ModelSession modelSession = injector.getInstance(ModelSession.class);

        ModelUtil.initializeTables(modelSession, user);
    }
View Full Code Here

TOP

Related Classes of com.altamiracorp.bigtable.model.ModelSession

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.