public class TerracottaClient extends Object
ClusteredInstanceFactory
for the clusterModifier and Type | Field and Description |
---|---|
static String |
CUSTOM_SECRET_PROVIDER_SYSTEM_PROPERTY
System property used to specify the secrect provider to use
|
Constructor and Description |
---|
TerracottaClient(CacheManager cacheManager,
TerracottaClientConfiguration terracottaClientConfiguration)
Constructor accepting the
CacheManager and the TerracottaClientConfiguration |
Modifier and Type | Method and Description |
---|---|
boolean |
createClusteredInstanceFactory()
Returns true if the clusteredInstanceFactory was created, otherwise returns false.
|
TerracottaCacheCluster |
getCacheCluster()
Get the
CacheCluster associated with this client |
ClusteredInstanceFactory |
getClusteredInstanceFactory()
Returns the
ClusteredInstanceFactory associated with this client |
void |
shutdown()
Shuts down the client
|
void |
waitForOrchestrator(String cacheManagerName)
Wait for the Orchestrator for this CacheManager
|
public static final String CUSTOM_SECRET_PROVIDER_SYSTEM_PROPERTY
public TerracottaClient(CacheManager cacheManager, TerracottaClientConfiguration terracottaClientConfiguration)
CacheManager
and the TerracottaClientConfiguration
cacheManager
- the cache manager to be clusteredterracottaClientConfiguration
- the configuration for the terracotta clientpublic ClusteredInstanceFactory getClusteredInstanceFactory()
ClusteredInstanceFactory
associated with this clientpublic boolean createClusteredInstanceFactory()
public TerracottaCacheCluster getCacheCluster()
CacheCluster
associated with this clientCacheCluster
associated with this clientpublic void shutdown()
public void waitForOrchestrator(String cacheManagerName)
cacheManagerName
- Name of the cache managerCopyright © 2003–2016 Terracotta, Inc.. All rights reserved.