class TerracottaClusteredInstanceHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TerracottaClusteredInstanceHelper.TerracottaRuntimeType
Enum for type of Terracotta runtime
|
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CUSTOM_FACTORY |
private static java.lang.String |
ENTERPRISE_CUSTOM_FACTORY |
private static java.lang.String |
ENTERPRISE_EXPRESS_FACTORY |
private static java.lang.String |
EXPRESS_FACTORY |
private static TerracottaClusteredInstanceHelper |
instance
Singleton instance
|
private static boolean |
TC_DSO_MODE
Boolean indicating if TC is running or not.
|
private TerracottaClusteredInstanceHelper.TerracottaRuntimeType |
terracottaRuntimeType |
Modifier | Constructor and Description |
---|---|
private |
TerracottaClusteredInstanceHelper()
Private constructor
|
Modifier and Type | Method and Description |
---|---|
private static void |
assertCustom(TerracottaClientConfiguration terracottaConfig) |
private static void |
assertExpress(java.util.Map<java.lang.String,CacheConfiguration> cacheConfigs,
TerracottaClientConfiguration terracottaConfig) |
static TerracottaClusteredInstanceHelper |
getInstance()
Returns the singleton instance
|
(package private) TerracottaClusteredInstanceHelper.TerracottaRuntimeType |
getTerracottaRuntimeTypeOrNull()
Returns the terracotta runtime type or null if no runtime could be found
|
private TerracottaClusteredInstanceHelper.TerracottaRuntimeType |
lookupTerracottaRuntime()
Lookup the current terracotta runtime
|
(package private) ClusteredInstanceFactory |
newClusteredInstanceFactory(java.util.Map<java.lang.String,CacheConfiguration> cacheConfigs,
TerracottaClientConfiguration terracottaConfig)
Locate and decide which terracotta ClusteredInstanceFactory should be used.
|
private static CacheException |
newExceptionIdentityNotSupportedInExpress(java.util.List<java.lang.String> identityCaches) |
private static void |
setTestMode(TerracottaClusteredInstanceHelper testHelper) |
private static TerracottaClusteredInstanceHelper instance
private static final boolean TC_DSO_MODE
private static final java.lang.String ENTERPRISE_EXPRESS_FACTORY
private static final java.lang.String ENTERPRISE_CUSTOM_FACTORY
private static final java.lang.String EXPRESS_FACTORY
private static final java.lang.String CUSTOM_FACTORY
private volatile TerracottaClusteredInstanceHelper.TerracottaRuntimeType terracottaRuntimeType
private TerracottaClusteredInstanceHelper()
public static TerracottaClusteredInstanceHelper getInstance()
private static void setTestMode(TerracottaClusteredInstanceHelper testHelper)
private TerracottaClusteredInstanceHelper.TerracottaRuntimeType lookupTerracottaRuntime()
ClusteredInstanceFactory newClusteredInstanceFactory(java.util.Map<java.lang.String,CacheConfiguration> cacheConfigs, TerracottaClientConfiguration terracottaConfig)
cacheConfigs
- private static void assertCustom(TerracottaClientConfiguration terracottaConfig)
private static void assertExpress(java.util.Map<java.lang.String,CacheConfiguration> cacheConfigs, TerracottaClientConfiguration terracottaConfig)
private static CacheException newExceptionIdentityNotSupportedInExpress(java.util.List<java.lang.String> identityCaches)
TerracottaClusteredInstanceHelper.TerracottaRuntimeType getTerracottaRuntimeTypeOrNull()