Class CassandraPropertyGroupAdapter
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.cassandra.CassandraPropertyGroupAdapter
-
public class CassandraPropertyGroupAdapter extends java.lang.Object
Provides a facade on top of the fhir-server-config PropertyGroup structure to simplify access to configuration elements we need for connecting to Cassandra
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_COMPRESS
static java.lang.String
PROP_CONTACT_POINTS
static java.lang.String
PROP_HOST
static java.lang.String
PROP_LOCAL_DATACENTER
static java.lang.String
PROP_PORT
static java.lang.String
PROP_TENANT_KEYSPACE
-
Constructor Summary
Constructors Constructor Description CassandraPropertyGroupAdapter(PropertyGroup pg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ContactPoint>
getContactPoints()
java.lang.String
getLocalDatacenter()
Get the configured value for the local datacenterjava.lang.String
getTenantKeyspace()
Get the configured value for the keyspace to use for the tenant.
-
-
-
Field Detail
-
PROP_CONTACT_POINTS
public static final java.lang.String PROP_CONTACT_POINTS
- See Also:
- Constant Field Values
-
PROP_HOST
public static final java.lang.String PROP_HOST
- See Also:
- Constant Field Values
-
PROP_PORT
public static final java.lang.String PROP_PORT
- See Also:
- Constant Field Values
-
PROP_LOCAL_DATACENTER
public static final java.lang.String PROP_LOCAL_DATACENTER
- See Also:
- Constant Field Values
-
PROP_TENANT_KEYSPACE
public static final java.lang.String PROP_TENANT_KEYSPACE
- See Also:
- Constant Field Values
-
PROP_COMPRESS
public static final java.lang.String PROP_COMPRESS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CassandraPropertyGroupAdapter
public CassandraPropertyGroupAdapter(PropertyGroup pg)
-
-
Method Detail
-
getContactPoints
public java.util.List<ContactPoint> getContactPoints()
-
getLocalDatacenter
public java.lang.String getLocalDatacenter()
Get the configured value for the local datacenter- Returns:
-
getTenantKeyspace
public java.lang.String getTenantKeyspace()
Get the configured value for the keyspace to use for the tenant.- Returns:
-
-