public class SlaveTenant extends AbstractTenant
AbstractTenant.CodeWrapper, AbstractTenant.DataSourceHolder, AbstractTenant.DataSourceSelection, AbstractTenant.ShutDownMode, AbstractTenant.State, AbstractTenant.TenantNotYetStartedExceptionALT_DATASOURCE, MASTER_DATASOURCE_ID, SLAVE_DATASOURCE| Constructor and Description |
|---|
SlaveTenant(String systemName,
Properties props) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeSystemSpecificProps(Map<String,String> params) |
boolean |
changeSystemSpecificProps(String key,
String value) |
protected List<AbstractTenant.DataSourceHolder> |
createAlternativeDataSources(DataSourceFactory factory,
ConfigIntf cfg,
Collection<HybrisDataSource> createdForRollback) |
protected Cache |
createCache() |
protected List<String> |
extractExtNames(String cfg) |
ConfigIntf |
getConfig() |
String |
getDatabaseDriver() |
String |
getDatabaseFromJNDI() |
String |
getDatabasePassword() |
String |
getDatabaseTablePrefix() |
String |
getDatabaseURL() |
String |
getDatabaseUser() |
protected MasterTenant |
getMasterTenant() |
ConfigIntf |
getOwnConfig() |
List<String> |
getTenantSpecificExtensionNames() |
Locale |
getTenantSpecificLocale()
Uses either the locale specified in the
Config.SystemSpecificParams.LOCALE config
parameter or, if not set, the vm default locale. |
TimeZone |
getTenantSpecificTimeZone()
Uses either the time zone specified in the
Config.SystemSpecificParams.TIME_ZONE
config parameter or, if not set, the vm default time zone. |
boolean |
isActive() |
boolean |
isInitialized() |
boolean |
isValid() |
protected void |
relaseAdministrationLockIfNeeded(HybrisDataSource masterDataSource)
Tries to release administration lock if lock was acquired by this
AbstractTenant.getClusterID() node. |
protected void |
restartIfActive()
Deprecated.
since 5.0 use an off-line tenant configuration
|
void |
setDatabaseSettings(String url,
String user,
String password,
String driver,
String tableprefix,
String fromJNDI) |
protected void |
setExtNames(List<String> names_unmod)
Sets with the given extension name list the new extensions of the current tenant.
|
void |
setTenantSpecificExtensionNames(List<String> names)
Deprecated.
since 5.0 modification of the tenant's extension names on the fly is not available.
|
void |
shutDown() |
void |
startUp() |
String |
toString() |
void |
unInitialize()
Deprecated.
since 5.0 favour offline tenant configuration
|
activateAlternativeDataSource, activateAlternativeMasterDataSource, activateSlaveDataSource, activateSlaveDataSource, assertTenant, assureTypeSystemStructureIsUpToDate, backgroundThreadFinished, backgroundThreadStarted, cancelForceMasterMode, cannotAccess, cannotConnect, canSwitch, clearConnectionHasBeenBroken, connectionHasBeenBroken, createAlternativeDataSource, createAndRegisterBackgroundThread, createDataSourceFactory, createDataSourceFactory, createDefaultThreadPool, createMasterDataSource, deactivateAlternativeDataSource, deactivateSlaveDataSource, doInitialize, doShutDown, doStartUp, executeInitsIfNecessary, extractCustomDBParams, extractCustomDBParams, extractCustomDBParams, extractCustomDBParams, forceMasterDataSource, getActiveSession, getActiveSessionContextList, getAllAlternativeDataSources, getAllAlternativeMasterDataSourceIDs, getAllAlternativeMasterDataSources, getAllAlterntiveDataSourceIDs, getAllDataSourceIDs, getAllSlaveDataSourceIDs, getAllSlaveDataSources, getCache, getClusterID, getCurrentTenant, getDataSource, getDataSource, getDynamicClusterNodeID, getInvalidationManager, getJaloConnection, getMasterDataSource, getNextSlave, getPersistenceManager, getPersistencePool, getSerialNumberGenerator, getSingletonCreator, getState, getStateInfo, getSystemEJB, getTenantID, getTenantRestartMarker, getThreadPool, getWorkersThreadPool, initializeCache, isAlternativeMasterDataSource, isClusteringEnabled, isForceMaster, isNotifiyingListeners, isSlaveDataSource, isStarting, isStopping, mergeSlaveDataSourceParameter, performWithinOwnSystem, readParameters, resetTenantRestartMarker, setActiveSessionForCurrentThread, setState, setSystemInit, setTenantID, shutdownCache, writeReplacepublic SlaveTenant(String systemName, Properties props)
protected MasterTenant getMasterTenant()
protected List<AbstractTenant.DataSourceHolder> createAlternativeDataSources(DataSourceFactory factory, ConfigIntf cfg, Collection<HybrisDataSource> createdForRollback)
createAlternativeDataSources in class AbstractTenantprotected void relaseAdministrationLockIfNeeded(HybrisDataSource masterDataSource)
AbstractTenantAbstractTenant.getClusterID() node.relaseAdministrationLockIfNeeded in class AbstractTenantprotected void setExtNames(List<String> names_unmod)
names_unmod - the list of extension namesprotected Cache createCache()
createCache in class AbstractTenant@Deprecated public void unInitialize()
public boolean isInitialized()
public boolean changeSystemSpecificProps(Map<String,String> params)
params - public boolean isActive()
public boolean isValid()
public void shutDown()
shutDown in class AbstractTenantpublic void startUp()
startUp in class AbstractTenantpublic void setDatabaseSettings(String url, String user, String password, String driver, String tableprefix, String fromJNDI)
@Deprecated protected void restartIfActive()
public String getDatabaseURL()
public String getDatabaseUser()
public String getDatabaseDriver()
public String getDatabasePassword()
public String getDatabaseTablePrefix()
public String getDatabaseFromJNDI()
public ConfigIntf getOwnConfig()
public List<String> getTenantSpecificExtensionNames()
getTenantSpecificExtensionNames in interface TenantgetTenantSpecificExtensionNames in class AbstractTenant@Deprecated public void setTenantSpecificExtensionNames(List<String> names)
public Locale getTenantSpecificLocale()
Config.SystemSpecificParams.LOCALE config
parameter or, if not set, the vm default locale.Tenant.getTenantSpecificLocale()public TimeZone getTenantSpecificTimeZone()
Config.SystemSpecificParams.TIME_ZONE
config parameter or, if not set, the vm default time zone.Tenant.getTenantSpecificTimeZone()public ConfigIntf getConfig()
getConfig in interface TenantgetConfig in class AbstractTenantpublic String toString()
toString in class AbstractTenantCopyright © 2017 SAP SE. All Rights Reserved.