Class NoServerPlatform
java.lang.Object
org.eclipse.persistence.platform.server.ServerPlatformBase
org.eclipse.persistence.platform.server.NoServerPlatform
- All Implemented Interfaces:
ServerPlatform
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
ConstructorsConstructorDescriptionNoServerPlatform(DatabaseSession newDatabaseSession) INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled. -
Method Summary
Modifier and TypeMethodDescriptionINTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the basePUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.voidlaunchContainerThread(Thread thread) INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platformunwrapConnection(Connection connection) INTERNAL: When there is no server, the original connection will be returnedMethods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
clearStatementCache, configureProfiler, disableJTA, disableRuntimeServices, enableRuntimeServices, ensureNotLoggedIn, externalTransactionControllerNotNullWarning, getDatabaseSession, getJNDIConnectorLookupType, getModuleName, getNewTempClassLoader, getPartitionID, getThreadPool, getThreadPoolSize, initializeExternalTransactionController, initializeServerNameAndVersion, isCMP, isJTA11, isJTAEnabled, isRuntimeServicesEnabled, isRuntimeServicesEnabledDefault, launchContainerRunnable, registerMBean, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setExternalTransactionControllerClass, setIsCMP, setThreadPool, setThreadPoolSize, shouldUseDriverManager, shutdown, unregisterMBean, usesPartitions, wasFailureCommunicationBased
-
Constructor Details
-
NoServerPlatform
INTERNAL: Default Constructor: Initialize so that runtime services and JTA are disabled.
-
-
Method Details
-
getServerNameAndVersion
PUBLIC: getServerNameAndVersion(): Answer null because this does not apply to NoServerPlatform.- Specified by:
getServerNameAndVersionin interfaceServerPlatform- Overrides:
getServerNameAndVersionin classServerPlatformBase- Returns:
- String serverNameAndVersion
-
getExternalTransactionControllerClass
INTERNAL: getExternalTransactionControllerClass(): Answer null because this does not apply.- Specified by:
getExternalTransactionControllerClassin interfaceServerPlatform- Specified by:
getExternalTransactionControllerClassin classServerPlatformBase- Returns:
- Class externalTransactionControllerClass
- See Also:
-
launchContainerThread
INTERNAL: launchContainerThread(Thread thread): Do nothing because container Threads are not launchable in this platform- Parameters:
thread- the instance of Thread
-
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
-
unwrapConnection
INTERNAL: When there is no server, the original connection will be returned- Specified by:
unwrapConnectionin interfaceServerPlatform- Overrides:
unwrapConnectionin classServerPlatformBase
-