- java.lang.Object
-
- org.eclipse.persistence.platform.server.ServerPlatformBase
-
- org.eclipse.persistence.platform.server.NoServerPlatform
-
- All Implemented Interfaces:
ServerPlatform
public final class NoServerPlatform extends ServerPlatformBase
PUBLIC: This platform is used when EclipseLink is not within any server (Oc4j, WebLogic, ...) This is also the default platform for all newly created DatabaseSessions. This platform has: - No external transaction controller class - No runtime services (JMX/MBean) - No launching of container Threads
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
DEFAULT_SERVER_NAME_AND_VERSION, externalTransactionControllerClass, JMX_REGISTER_DEV_MBEAN_PROPERTY, JMX_REGISTER_RUN_MBEAN_PROPERTY, serverNameAndVersion, shouldRegisterDevelopmentBean, shouldRegisterRuntimeBean, threadPool, threadPoolSize
-
-
Constructor Summary
Constructors Constructor Description NoServerPlatform(DatabaseSession newDatabaseSession)INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableJTA()TriggerDatabaseSession's external transaction controller class to be populated with transaction controller class at runtime.Class<? extends ExternalTransactionController>getExternalTransactionControllerClass()INTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.SessionLoggetServerLog()INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the baseStringgetServerNameAndVersion()PUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.voidinitializeExternalTransactionController()INTERNAL: initializeExternalTransactionController(): Populate the DatabaseSession's external transaction controller with an instance of my transaction controller class.voidlaunchContainerThread(Thread thread)INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platformConnectionunwrapConnection(Connection connection)INTERNAL: When there is no server, the original connection will be returned-
Methods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
clearStatementCache, configureProfiler, disableJTA, disableRuntimeServices, enableRuntimeServices, ensureNotLoggedIn, externalTransactionControllerNotNullWarning, getDatabaseSession, getJNDIConnectorLookupType, getModuleName, getNewTempClassLoader, getPartitionID, getThreadPool, getThreadPoolSize, initializeServerNameAndVersion, isCMP, isJTA11, isJTAEnabled, isRuntimeServicesEnabled, isRuntimeServicesEnabledDefault, launchContainerRunnable, registerMBean, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setExternalTransactionControllerClass, setIsCMP, setJTAEnabled, setThreadPool, setThreadPoolSize, shouldUseDriverManager, shutdown, unregisterMBean, usesPartitions, wasFailureCommunicationBased
-
-
-
-
Constructor Detail
-
NoServerPlatform
public NoServerPlatform(DatabaseSession newDatabaseSession)
INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled.
-
-
Method Detail
-
getServerNameAndVersion
public String getServerNameAndVersion()
PUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.- Specified by:
getServerNameAndVersionin interfaceServerPlatform- Overrides:
getServerNameAndVersionin classServerPlatformBase- Returns:
- String serverNameAndVersion
-
getExternalTransactionControllerClass
public Class<? extends ExternalTransactionController> getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.- Specified by:
getExternalTransactionControllerClassin interfaceServerPlatform- Specified by:
getExternalTransactionControllerClassin classServerPlatformBase- Returns:
- Class externalTransactionControllerClass
- See Also:
ServerPlatformBase.isJTAEnabled(),ServerPlatformBase.disableJTA(),initializeExternalTransactionController()
-
launchContainerThread
public void launchContainerThread(Thread thread)
INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platform- Parameters:
thread- the instance of Thread
-
getServerLog
public SessionLog getServerLog()
INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base- Specified by:
getServerLogin interfaceServerPlatform- Overrides:
getServerLogin classServerPlatformBase- Returns:
- org.eclipse.persistence.logging.SessionLog
-
enableJTA
public void enableJTA()
Description copied from class:ServerPlatformBaseTriggerDatabaseSession's external transaction controller class to be populated with transaction controller class at runtime. Does nothing by default. Child class may override this method to enable the trigger.- Overrides:
enableJTAin classServerPlatformBase
-
initializeExternalTransactionController
public void initializeExternalTransactionController()
Description copied from class:ServerPlatformBaseINTERNAL: initializeExternalTransactionController(): Populate the DatabaseSession's external transaction controller with an instance of my transaction controller class. To change the external transaction controller class, we recommend creating a subclass of ServerPlatformBase, and overriding getExternalTransactionControllerClass().- Specified by:
initializeExternalTransactionControllerin interfaceServerPlatform- Overrides:
initializeExternalTransactionControllerin classServerPlatformBase- See Also:
ServerPlatformBase
-
unwrapConnection
public Connection unwrapConnection(Connection connection)
INTERNAL: When there is no server, the original connection will be returned- Specified by:
unwrapConnectionin interfaceServerPlatform- Overrides:
unwrapConnectionin classServerPlatformBase
-
-