Codota Logo
ClientProperties$DataStore$Connection.getProperties
Code IndexAdd Codota to your IDE (free)

How to use
getProperties
method
in
com.impetus.kundera.configure.ClientProperties$DataStore$Connection

Best Java code snippets using com.impetus.kundera.configure.ClientProperties$DataStore$Connection.getProperties (Showing top 20 results out of 315)

  • Common ways to obtain ClientProperties$DataStore$Connection
private void myMethod () {
ClientProperties$DataStore$Connection c =
  • Codota IconClientProperties.DataStore clientPropertiesDataStore;clientPropertiesDataStore.getConnection()
  • Codota IconHBasePropertyReader.HBaseSchemaMetadata hBasePropertyReaderHBaseSchemaMetadata;hBasePropertyReaderHBaseSchemaMetadata.getDataStore().getConnection()
  • Smart code suggestions by Codota
}
origin: Impetus/Kundera

public Properties getConnectionProperties()
{
  DataStore ds = getDataStore(dataStoreName);
  Properties properties = new Properties();
  if (ds != null)
  {
    if (ds.getConnection() != null)
    {
      properties = ds.getConnection().getProperties();
      return properties != null ? properties : new Properties();
    }
    if (logger.isWarnEnabled())
    {
      logger.warn("No connection properties found, returning none.");
    }
  }
  return properties;
}
origin: Impetus/Kundera

public Properties getConnectionProperties()
{
  DataStore ds = getDataStore();
  Properties properties = new Properties();
  if (ds != null)
  {
    if (ds.getConnection() != null)
    {
      properties = ds.getConnection().getProperties();
      return properties != null ? properties : new Properties();
    }
    if (log.isWarnEnabled())
    {
      log.warn("No connection properties found, returning none.");
    }
  }
  return properties;
}
origin: Impetus/Kundera

public String getCqlVersion()
{
  DataStore dataStore = getDataStore(dataStoreName);
  if (dataStore != null)
  {
    Properties properties = dataStore.getConnection() != null ? dataStore.getConnection().getProperties()
        : null;
    if (properties != null)
    {
      String cqlVersion = properties.getProperty(CassandraConstants.CQL_VERSION);
      if (cqlVersion != null)
      {
        if (cqlVersion.equalsIgnoreCase(CassandraConstants.CQL_VERSION_3_0)
            || cqlVersion.equalsIgnoreCase(CassandraConstants.CQL_VERSION_2_0))
        {
          return cqlVersion;
        }
        else
        {
          logger.warn("Invalid {} cql version provided, valid are {},{}.", cqlVersion,
              CassandraConstants.CQL_VERSION_2_0, CassandraConstants.CQL_VERSION_3_0);
        }
      }
    }
  }
  return CassandraConstants.CQL_VERSION_2_0;
}
origin: Impetus/Kundera

/**
 * @return the zookeeper_host
 */
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;
}
origin: Impetus/Kundera

Properties props = conn.getProperties();
origin: Impetus/Kundera

/**
 * Gets the zookeeper port.
 * 
 * @return the zookeeper port
 */
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;
}
origin: Impetus/Kundera

.getProperties() : null;
origin: Impetus/Kundera

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();
  vaildateHostPort(zookeeperHost, zookeeperPort);
  hadoopConf.set("hbase.zookeeper.quorum", zookeeperHost != null ? zookeeperHost : host);
origin: Impetus/Kundera

Assert.assertNull(store.getSchemas().get(0).getSchemaProperties());
Assert.assertNotNull(store.getConnection());
Assert.assertNotNull(store.getConnection().getProperties());
Assert.assertNull(store.getConnection().getServers());
Assert.assertEquals(2, store.getConnection().getProperties().size());
Assert.assertNotNull(store.getConnection().getProperties());
Assert.assertEquals(2, store.getConnection().getProperties().size());
Assert.assertNotNull(store.getConnection().getServers());
Assert.assertEquals(2, store.getConnection().getServers().size());
origin: Impetus/Kundera

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
origin: Impetus/Kundera

.getProperties() : null;
origin: Impetus/Kundera

/**
 * Gets the zookeeper host.
 * 
 * @return the zookeeper host
 */
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;
}
origin: Impetus/Kundera

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
origin: Impetus/Kundera

private HashMap<String, String> initializeProperties()
{
  if (clientProperties != null && clientProperties.getDatastores() != null)
  {
    for (DataStore dataStore : clientProperties.getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase("redis"))
      {
        return new HashMap(dataStore.getConnection().getProperties());
      }
    }
  }
  return null;
}
origin: Impetus/Kundera

.getProperties() : null;
origin: Impetus/Kundera

  public Properties getConnectionProperties()
  {
    DataStore ds = getDataStore("elasticsearch");
    if (ds != null)
    {
      Connection connection = ds.getConnection();
      if (connection != null)
      {
        Properties properties = connection.getProperties();
        return properties;
      }
    }
    return null;
  }
}
origin: com.impetus.client/kundera-redis

private HashMap<String, String> initializeProperties()
{
  if (clientProperties != null && clientProperties.getDatastores() != null)
  {
    for (DataStore dataStore : clientProperties.getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase("redis"))
      {
        return new HashMap(dataStore.getConnection().getProperties());
      }
    }
  }
  return null;
}
origin: Impetus/Kundera

/**
 * @return the zookeeper_port
 */
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;
}
origin: com.impetus.kundera.client/kundera-hbase

/**
 * @return the zookeeper_port
 */
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;
}
origin: Impetus/Kundera

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();
  vaildateHostPort(zookeeperHost, zookeeperPort);
  hadoopConf.set("hbase.zookeeper.quorum", zookeeperHost != null ? zookeeperHost : host);
com.impetus.kundera.configureClientProperties$DataStore$ConnectiongetProperties

Popular methods of ClientProperties$DataStore$Connection

  • getServers

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • runOnUiThread (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now