public interface ServerPlatform
ServerPlatformBase
Modifier and Type | Method and Description |
---|---|
void |
clearStatementCache(java.sql.Connection connection)
INTERNAL:
Clears statement cache of the wrapper connection.
|
void |
disableJTA()
INTERNAL: disableJTA(): Configure the receiver such that my external transaction controller class will
be ignored, and will NOT be used to populate DatabaseSession's external transaction controller class
at runtime.
|
void |
disableRuntimeServices()
INTERNAL: disableRuntimeServices(): Configure the receiver such that no JMX/MBean will be registered
to provide runtime services for my DatabaseSession at runtime.
|
DatabaseSession |
getDatabaseSession()
INTERNAL: getDatabaseSession(): Answer the instance of DatabaseSession the receiver is helping.
|
java.lang.Class |
getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use
For this server platform.
|
int |
getJNDIConnectorLookupType()
INTERNAL: Get JNDIConnector lookupType value for this platform.
|
java.lang.String |
getModuleName()
INTERNAL: getModuleName(): Answer the name of the module (jar name) that my session
is associated with.
|
org.eclipse.persistence.internal.helper.JPAClassLoaderHolder |
getNewTempClassLoader(PersistenceUnitInfo puInfo)
INTERNAL:
JIRA EJBTHREE-572 requires that we use the real classLoader in place of the getNewTempClassLoader().
|
java.lang.String |
getPartitionID()
INTERNAL: Get Partition ID.
|
SessionLog |
getServerLog()
INTERNAL: getServerLog(): Return the ServerLog for this platform
Return the default ServerLog in the base
|
java.lang.String |
getServerNameAndVersion()
PUBLIC: getServerNameAndVersion(): Talk to the relevant server class library, and get the server name
and version
|
int |
getThreadPoolSize()
Return the thread pool size.
|
void |
initializeExternalTransactionController()
INTERNAL: initializeExternalTransactionController(): Populate the DatabaseSession's
external transaction controller with an instance of my transaction controller class.
|
boolean |
isJTAEnabled()
INTERNAL: isJTAEnabled(): Answer true if the DatabaseSession's external transaction controller class will
be populated with my transaction controller class at runtime.
|
boolean |
isRuntimeServicesEnabled()
INTERNAL: isRuntimeServicesEnabled(): Answer true if the JMX/MBean providing runtime services for
the receiver's DatabaseSession will be deployed at runtime.
|
boolean |
isRuntimeServicesEnabledDefault()
INTERNAL:
isRuntimeServicesEnabledDefault(): Answer true if the JMX/MBean providing runtime services for
the receiver's DatabaseSession will be deployed at runtime.
|
void |
launchContainerRunnable(java.lang.Runnable runnable)
INTERNAL: launchContainerRunnable(Runnable runnable): Use the container library to
start the provided Runnable.
|
void |
registerMBean()
INTERNAL: registerMBean(): Create and deploy the JMX MBean to provide runtime services for my
databaseSession.
|
void |
setExternalTransactionControllerClass(java.lang.Class newClass)
INTERNAL: setExternalTransactionControllerClass(Class newClass): Set the class of external
transaction controller to use in the DatabaseSession.
|
void |
setThreadPoolSize(int threadPoolSize)
Set the thread pool size.
|
boolean |
shouldUseDriverManager()
INTERNAL: shouldUseDriverManager(): Indicates whether DriverManager should be used while connecting DefaultConnector.
|
void |
shutdown()
INTERNAL: perform any require shutdown tasks.
|
void |
unregisterMBean()
INTERNAL: unregisterMBean(): Unregister the JMX MBean that was providing runtime services for my
databaseSession.
|
java.sql.Connection |
unwrapConnection(java.sql.Connection connection)
INTERNAL: This method is used to unwrap the oracle connection wrapped by
the application server.
|
boolean |
usesPartitions()
INTERNAL: Some servers may support partitioning
|
boolean |
wasFailureCommunicationBased(java.sql.SQLException exception,
org.eclipse.persistence.internal.databaseaccess.Accessor connection,
org.eclipse.persistence.internal.sessions.AbstractSession sessionForProfile)
INTERNAL:
A call to this method will perform a platform based check on the connection and exception
error code to determine if the connection is still valid or if a communication error has occurred.
|
DatabaseSession getDatabaseSession()
java.lang.String getServerNameAndVersion()
java.lang.String getModuleName()
java.lang.Class getExternalTransactionControllerClass()
JTATransactionController
,
isJTAEnabled()
,
disableJTA()
,
initializeExternalTransactionController()
void setExternalTransactionControllerClass(java.lang.Class newClass)
void initializeExternalTransactionController()
ServerPlatformBase
boolean isJTAEnabled()
getExternalTransactionControllerClass()
,
disableJTA()
boolean isRuntimeServicesEnabledDefault()
isRuntimeServicesEnabled()
for a
ServerPlatform. By default this is false
but some platforms
can choose to have MBeans deployed by default.void disableJTA()
boolean isRuntimeServicesEnabled()
disableRuntimeServices()
void disableRuntimeServices()
isRuntimeServicesEnabled()
void registerMBean()
void unregisterMBean()
void shutdown()
int getThreadPoolSize()
void setThreadPoolSize(int threadPoolSize)
java.sql.Connection unwrapConnection(java.sql.Connection connection)
void launchContainerRunnable(java.lang.Runnable runnable)
runnable:
- the instance of runnable to be "started"SessionLog getServerLog()
boolean shouldUseDriverManager()
boolean wasFailureCommunicationBased(java.sql.SQLException exception, org.eclipse.persistence.internal.databaseaccess.Accessor connection, org.eclipse.persistence.internal.sessions.AbstractSession sessionForProfile)
org.eclipse.persistence.internal.helper.JPAClassLoaderHolder getNewTempClassLoader(PersistenceUnitInfo puInfo)
puInfo
- - the persistence unit infoJPAClassLoaderHolder
void clearStatementCache(java.sql.Connection connection)
int getJNDIConnectorLookupType()
boolean usesPartitions()
java.lang.String getPartitionID()