Package de.hybris.platform.core
Class MasterTenant
java.lang.Object
de.hybris.platform.core.AbstractTenant
de.hybris.platform.core.MasterTenant
- All Implemented Interfaces:
DataSourceProvider,Tenant,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.core.AbstractTenant
AbstractTenant.CodeWrapper, AbstractTenant.DataSourceHolder, AbstractTenant.DataSourceSelection, AbstractTenant.ShutDownMode, AbstractTenant.State, AbstractTenant.TenantNotYetStartedException -
Field Summary
FieldsFields inherited from class de.hybris.platform.core.AbstractTenant
ALT_DATASOURCE, MASTER_DATASOURCE_ID, SLAVE_DATASOURCE -
Method Summary
Modifier and TypeMethodDescriptioncreateSlaveTenant(String tenantID, String dbUrl, String dbUser, String dbPassword, String driver, String tableprefix, String fromJNDI, String locale, String timeZone) Deprecated, for removal: This API element is subject to removal in a future version.createSlaveTenant(String tenantID, String dbUrl, String dbUser, String dbPassword, String driver, String tableprefix, String fromJNDI, String locale, String timeZone, String dataSourceFactoryClassName) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().protected MetaInformationRemotecreateSlaveTenantMetaInfo(String tenantID, String dbUrl, String dbUser, String dbPassword, String dbDriver, String dbTablePrefix, String fromJNDI, String locDef, String tzDef, String dataSourceClassName) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().longstatic MasterTenantprotected Set<MetaInformationRemote>Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().getSlaveTenant(String tenantID) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use directlyRegistry.getSlaveTenants()protected Map<String,SlaveTenant> The master system always uses the vm default locale.The master tenant always uses the vm default timezone.protected voidremoveSlaveTenant(SlaveTenant toRemove) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().voidremoveSlaveTenant(String systemID) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().protected voidremoveSlaveTenantMetaInfo(SlaveTenant tenant) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().static voidvoidshutDown()voidstartUp()voidMust be called after a new meta information has been create holding a new cluster island PK!!!Methods inherited from class de.hybris.platform.core.AbstractTenant
activateAlternativeDataSource, activateAlternativeMasterDataSource, activateSlaveDataSource, activateSlaveDataSource, assertTenant, assureTypeSystemStructureIsUpToDate, backgroundThreadFinished, backgroundThreadStarted, cancelForceMasterMode, cannotAccess, cannotConnect, canSwitch, clearConnectionHasBeenBroken, connectionHasBeenBroken, createAlternativeDataSource, createAlternativeDataSources, createAndRegisterBackgroundThread, createCache, createDataSourceFactory, createDataSourceFactory, createDefaultThreadPool, createMasterDataSource, deactivateAlternativeDataSource, deactivateSlaveDataSource, doInitialize, doShutDown, doStartUp, equals, 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, hashCode, initializeCache, isAlternativeMasterDataSource, isClusteringEnabled, isConnectionPoolCheckEnabled, isForceMaster, isNotifiyingListeners, isSlaveDataSource, isStarting, isStopping, mergeSlaveDataSourceParameter, performWithinOwnSystem, readParameters, relaseAdministrationLockIfNeeded, resetTenantRestartMarker, setActiveSessionForCurrentThread, setState, setSystemInit, setTenantID, shutdownCache, toString, writeReplaceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.core.Tenant
getAllItemLifecycleListeners
-
Field Details
-
NO_CLUSTER_ISLAND_PK
public static final long NO_CLUSTER_ISLAND_PK- See Also:
-
MASTERTENANT_ID
- See Also:
-
-
Method Details
-
setSecurityProvider
public static void setSecurityProvider() -
getLocalShutdownToken
-
getInstance
-
getDatabaseName
-
getLicence
-
getTenantSpecificExtensionNames
- Specified by:
getTenantSpecificExtensionNamesin interfaceTenant- Specified by:
getTenantSpecificExtensionNamesin classAbstractTenant
-
getConfig
- Specified by:
getConfigin interfaceTenant- Specified by:
getConfigin classAbstractTenant
-
getValueEncryptor
-
startUp
public void startUp()- Specified by:
startUpin classAbstractTenant
-
getTenantSpecificLocale
The master system always uses the vm default locale.- See Also:
-
getTenantSpecificTimeZone
The master tenant always uses the vm default timezone.- See Also:
-
shutDown
public void shutDown()- Specified by:
shutDownin classAbstractTenant
-
getSlaveSystemMetaInfos
@Deprecated(since="5.0", forRemoval=true) protected Set<MetaInformationRemote> getSlaveSystemMetaInfos()Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants(). -
createSlaveTenantMetaInfo
@Deprecated(since="5.0", forRemoval=true) protected MetaInformationRemote createSlaveTenantMetaInfo(String tenantID, String dbUrl, String dbUser, String dbPassword, String dbDriver, String dbTablePrefix, String fromJNDI, String locDef, String tzDef, String dataSourceClassName) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants(). -
removeSlaveTenantMetaInfo
@Deprecated(since="5.0", forRemoval=true) protected void removeSlaveTenantMetaInfo(SlaveTenant tenant) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().- Parameters:
tenant-
-
getSlaveTenantsMap
-
getSlaveTenantIDs
-
removeSlaveTenant
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().- Parameters:
systemID-
-
removeSlaveTenant
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().- Parameters:
toRemove-
-
createSlaveTenant
@Deprecated(since="5.0", forRemoval=true) public SlaveTenant createSlaveTenant(String tenantID, String dbUrl, String dbUser, String dbPassword, String driver, String tableprefix, String fromJNDI, String locale, String timeZone) throws ConsistencyCheckException Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().- Throws:
ConsistencyCheckException
-
createSlaveTenant
@Deprecated(since="5.0", forRemoval=true) public SlaveTenant createSlaveTenant(String tenantID, String dbUrl, String dbUser, String dbPassword, String driver, String tableprefix, String fromJNDI, String locale, String timeZone, String dataSourceFactoryClassName) throws ConsistencyCheckException Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use file based slave system configuration seeRegistry.getSlaveTenants().- Throws:
ConsistencyCheckException
-
getSlaveTenant
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 use directlyRegistry.getSlaveTenants() -
getClusterIslandPK
public long getClusterIslandPK() -
updateClusterIslandPKFromDatabase
public void updateClusterIslandPKFromDatabase()Must be called after a new meta information has been create holding a new cluster island PK!!!
-
Registry.getSlaveTenants().