Package com.impetus.kundera.configure.ClientProperties.DataStore

Examples of com.impetus.kundera.configure.ClientProperties.DataStore.Connection


        {
            DataStore  ds = getDataStore("elasticsearch");
           
            if (ds != null)
            {
                Connection connection = ds.getConnection();
                if (connection != null)
                {
                    Properties properties = connection.getProperties();

                    return properties;
                }
            }      
            return null;
View Full Code Here


        onValidation(node, port);

        Configuration hadoopConf = new Configuration();
        hadoopConf.set("hbase.master", node + ":" + port);

        Connection conn = HBasePropertyReader.hsmd.getDataStore() != null ? HBasePropertyReader.hsmd.getDataStore()
                .getConnection() : null;
        if (conn != null && conn.getProperties() != null)
        {
            String zookeeperHost = conn.getProperties().getProperty("hbase.zookeeper.quorum").trim();
            String zookeeperPort = conn.getProperties().getProperty("hbase.zookeeper.property.clientPort").trim();
            hadoopConf.set("hbase.zookeeper.quorum", zookeeperHost != null ? zookeeperHost : node);
            hadoopConf.set("hbase.zookeeper.property.clientPort", zookeeperPort != null ? zookeeperPort
                    : DEFAULT_ZOOKEEPER_PORT);
        }
        else
View Full Code Here

        public String getZookeeperPort()
        {
            DataStore ds = getDataStore();
            if (ds != null && ds.getConnection() != null)
            {
                Connection conn = ds.getConnection();
                if (conn.getProperties() != null && !conn.getProperties().isEmpty())
                {
                    zookeeperPort = conn.getProperties().getProperty(HBaseConstants.ZOOKEEPER_PORT).trim();
                }
            }
            return zookeeperPort;
        }
View Full Code Here

        public String getZookeeperHost()
        {
            DataStore ds = getDataStore();
            if (ds != null && ds.getConnection() != null)
            {
                Connection conn = ds.getConnection();
                if (conn.getProperties() != null && !conn.getProperties().isEmpty())
                {
                    zookeeperHost = conn.getProperties().getProperty(HBaseConstants.ZOOKEEPER_HOST.trim());
                }
            }
            return zookeeperHost;
        }
View Full Code Here

TOP

Related Classes of com.impetus.kundera.configure.ClientProperties.DataStore.Connection

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.