public abstract class HostConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
connectionProperties |
protected Map |
externalProperties
External configuration passed at the time of emf creation.
|
protected List<Host> |
hostsList
Array of hosts.
|
private static org.slf4j.Logger |
logger
The logger.
|
protected PersistenceUnitMetadata |
persistenceUnitMetadata
Persistence unit metadata.
|
protected int |
retryDelay
Delay time for host retry
|
| Constructor and Description |
|---|
HostConfiguration(Map externalProperties,
List<ClientProperties.DataStore.Connection.Server> servers,
String persistenceUnit,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
buildHosts(List<ClientProperties.DataStore.Connection.Server> servers,
List<Host> hostsList) |
private void |
buildHosts(Map externalProperties,
List<ClientProperties.DataStore.Connection.Server> servers,
String persistenceUnit,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Build host array.
|
protected abstract void |
buildHosts(String hosts,
String portAsString,
List<Host> hostsList) |
List<Host> |
getHosts() |
protected void |
onValidation(String host,
String port)
Validate host and port.
|
protected abstract void |
setConfig(Host host,
Properties props,
Map puProperties) |
private static org.slf4j.Logger logger
protected int retryDelay
protected PersistenceUnitMetadata persistenceUnitMetadata
protected Properties connectionProperties
protected Map externalProperties
public HostConfiguration(Map externalProperties, List<ClientProperties.DataStore.Connection.Server> servers, String persistenceUnit, EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
private void buildHosts(Map externalProperties, List<ClientProperties.DataStore.Connection.Server> servers, String persistenceUnit, EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
externalProperties - servers - persistenceUnit - protected void onValidation(String host, String port)
host - port - protected abstract void buildHosts(List<ClientProperties.DataStore.Connection.Server> servers, List<Host> hostsList)
protected abstract void buildHosts(String hosts, String portAsString, List<Host> hostsList)
protected abstract void setConfig(Host host, Properties props, Map puProperties)
Copyright © 2015. All Rights Reserved.