Tabnine Logo
ClientProperties$DataStore$Connection.getProperties
Code IndexAdd Tabnine 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)

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 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 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: 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: 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

.getProperties() : null;
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

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

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

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

.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

Properties props = conn.getProperties();
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

/**
 * 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

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

  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: 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: 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;
}
com.impetus.kundera.configureClientProperties$DataStore$ConnectiongetProperties

Popular methods of ClientProperties$DataStore$Connection

  • getServers

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JComboBox (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now