|
Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated) 11g Release 1 (11.1.1) B32476-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.services.oc4j.Oc4jRuntime
public class Oc4jRuntime
Purpose: Provide a dynamic interface into the TopLink Session.
Description: This class is meant to provide facilities for managing a TopLink session external to TopLink over JMX. 11/09/2008- 11.1.1 Michael OBrien 7390368 : Port boxer removal of usage of OC4J1 functionality
Constructor Summary | |
---|---|
Oc4jRuntime(Session session)
Create an instance of Oc4jRuntimeServices to be associated with the provided session |
Method Summary | |
---|---|
void |
clearStatementCache()
Used to clear the statement cache. |
java.lang.Boolean |
getCacheSynchAsynchronous()
This method is used to answer whether cache synchronization is asynchronous or not. |
java.lang.Boolean |
getCacheSynchEnabled()
This method is used to answer whether cache synchronization is enabled or not. |
java.util.ArrayList<ClassSummaryDetail> |
getClassSummaryDetails()
Provide a list of instance of ClassSummaryDetail containing information about all classes in the session. |
java.util.ArrayList<ClassSummaryDetail> |
getClassSummaryDetailsUsingFilter(java.lang.String filter)
Provide a list of instance of ClassSummaryDetail containing information about the classes in the session whose class names match the provided filter. |
java.lang.String |
getConnectionPoolType()
Return connection pool type. |
java.lang.String |
getCurrentProfileWeight()
Answer the current sensor weight (NORMAL, HEAVY, ALL, NONE) as a String. |
java.lang.String |
getCurrentTopLinkLogLevel()
Answer the TopLink log level that is changeable. |
java.lang.String |
getCurrentTopLinkLogLevel(java.lang.String category)
Answer the TopLink log level that is changeable, given the passed category. |
java.lang.String |
getDatabasePlatform()
Return the database platform used by the DatabaseSession. |
java.lang.String |
getDeployedProfileWeight()
Answer the deployed sensor weight (NORMAL, HEAVY, ALL) as an String. |
java.lang.String |
getDeployedTopLinkLogLevel()
Answer the TopLink log level at deployment time. |
java.lang.String |
getDeployedTopLinkLogLevel(java.lang.String category)
Answer the TopLink log level at deployment time for the given category. |
java.lang.String |
getDriver()
Return db driver class name. |
java.lang.String |
getJdbcConnectionDetails()
Return JDBCConnection detail information. |
java.lang.String |
getLogFilename()
Return the log filename. |
java.lang.String |
getLogType()
Return the log type, either "TopLink", "Java" or "Server" |
java.lang.Integer |
getMaxSizeForPool(java.lang.String poolName)
This method will retrieve the max size of a particular connection pool |
java.lang.Integer |
getMinSizeForPool(java.lang.String poolName)
This method will retrieve the min size of a particular connection pool |
java.lang.String |
getModuleName()
getModuleName: Answer the EJB-Module I belong to. |
java.lang.Integer |
getNumberOfObjectsInAllIdentityMaps()
This method will SUM and return the number of objects in all Identity Maps in the session. |
java.lang.Integer |
getNumberOfObjectsInIdentityMap(java.lang.String className)
This method is used to return the number of objects in a particular Identity Map |
java.lang.Integer |
getNumberOfPersistentClasses()
This method will answer the number of persistent classes contained in the session. |
java.lang.String |
getProfilingType()
This method is used to get the type of profiling. |
java.lang.Integer |
getSequencePreallocationSize()
Method returns the value of the Sequence Preallocation size |
java.lang.String |
getSessionName()
Answer the name of the TopLink session this MBean represents. |
java.lang.String |
getSessionType()
Answer the type of the TopLink session this MBean represents. |
java.lang.Boolean |
getShouldBindAllParameters()
Method returns if all Parameters should be bound or not |
java.lang.Boolean |
getShouldCacheAllStatements()
Returns if statements should be cached or not |
java.lang.Boolean |
getShouldLogPerformanceProfiler()
Method indicates if Performace profile should be logged |
java.lang.Integer |
getStatementCacheSize()
Returns the statement cache size. |
java.lang.Integer |
getStringBindingSize()
Return the size of strings after which will be bound into the statement If we are not using a DatabaseLogin, or we're not using string binding, answer 0 (zero). |
java.lang.Long |
getTimeConnectionEstablished()
This method will return a long indicating the exact time in Milliseconds that the session connected to the database. |
java.lang.Boolean |
getUsesBatchWriting()
This method will return if batchWriting is in use or not. |
java.lang.Boolean |
getUsesByteArrayBinding()
Shows if Byte Array Binding is turned on or not |
java.lang.Boolean |
getUsesDMSProfiling()
This method answers true if DMS Performance Profiling is on. |
java.lang.Boolean |
getUsesJDBCBatchWriting()
This method will return if batchWriting is in use or not. |
java.lang.Boolean |
getUsesNativeSQL()
Shows if native SQL is being used |
java.lang.Boolean |
getUsesStreamsForBinding()
This method indicates if streams are being used for binding |
java.lang.Boolean |
getUsesStringBinding()
This method indicates if Strings are being bound |
java.lang.Boolean |
getUsesTopLinkProfiling()
This method answers true if TopLink Performance Profiling is on. |
void |
initializeAllIdentityMaps()
This method is used to initialize the identity maps in the session. |
void |
initializeIdentityMap(java.lang.String className)
This method is used to initialize the identity maps specified by className. |
void |
initializeIdentityMaps(java.lang.String[] classNames)
This method is used to initialize the identity maps specified by the Vector of classNames. |
void |
invalidateAllIdentityMaps()
This method is used to invalidate the identity maps in the session. |
void |
invalidateIdentityMap(java.lang.String className)
This method is used to invalidate the identity maps specified by className. |
void |
invalidateIdentityMap(java.lang.String className,
java.lang.Boolean recurse)
This method is used to invalidate the identity maps specified by className. |
void |
invalidateIdentityMaps(java.lang.String[] classNamesParam,
java.lang.Boolean recurse)
This method is used to invalidate the identity maps specified by the String[] of classNames. |
void |
printAllIdentityMapTypes()
This method will log the types of Identity Maps in the session. |
void |
printAvailableConnectionPools()
This method will print the available Connection pools to the SessionLog. |
void |
printClassesInSession()
This method is used to output those Class Names that have identity Maps in the Session. |
void |
printIdentityMapLocks()
This method will log the instance level locks in all Identity Maps in the session. |
void |
printIdentityMapLocks(java.lang.String registeredClassName)
This method will log the instance level locks in the Identity Map for the given class in the session. |
void |
printObjectsInIdentityMap(java.lang.String className)
This method will log the objects in the Identity Map. |
void |
printObjectsInIdentityMaps()
This method will log all objects in all Identity Maps in the session. |
void |
printProfileSummary()
This method assumes TopLink Profiling (as opposed to Java profiling). |
void |
printProfileSummaryByClass()
This method assumes TopLink Profiling (as opposed to Java profiling). |
void |
printProfileSummaryByQuery()
This method assumes TopLink Profiling (as opposed to Java profiling). |
void |
resetAllConnections()
This method is used to reset connections from the session to the database. |
void |
setCurrentProfileWeight(java.lang.String weight)
This method is used to change the sensor weight (NORMAL, HEAVY, ALL, NONE) as an String. |
void |
setCurrentTopLinkLogLevel(java.lang.String newLevel)
Set the TopLink log level to be used at runtime. |
void |
setProfilingType(java.lang.String profileType)
This method is used to select the type of profiling. |
void |
setShouldLogPerformanceProfiler(java.lang.Boolean shouldLogPerformanceProfiler)
This method is used to turn on Profile logging when using the Performance Profiler |
void |
setuseDMSProfiling()
This method is used to turn on DMS Performance Profiling |
void |
setuseNoProfiling()
This method is used to turn off all Performance Profiling, DMS or TopLink. |
void |
setuseTopLinkProfiling()
This method is used to turn on TopLink Performance Profiling |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Oc4jRuntime(Session session)
session
- The session to be used with these RuntimeServicesString
- myBaseObjectName: "oc4j:....." (The JMX object name before it's wrapped in a ObjectName)Method Detail |
---|
public java.lang.String getSessionName()
public java.lang.String getSessionType()
public java.util.ArrayList<ClassSummaryDetail> getClassSummaryDetailsUsingFilter(java.lang.String filter)
public java.util.ArrayList<ClassSummaryDetail> getClassSummaryDetails()
public java.lang.String getModuleName()
public java.lang.String getDeployedTopLinkLogLevel()
public java.lang.String getDeployedTopLinkLogLevel(java.lang.String category)
String
- category: category of log level desiredpublic java.lang.String getCurrentTopLinkLogLevel()
public java.lang.String getCurrentTopLinkLogLevel(java.lang.String category)
String
- category: category for levelpublic void setCurrentTopLinkLogLevel(java.lang.String newLevel)
String
- newLevel: new log levelpublic java.lang.String getProfilingType()
public void setProfilingType(java.lang.String profileType)
public void setuseTopLinkProfiling()
public void setuseDMSProfiling()
public java.lang.Boolean getUsesTopLinkProfiling()
public java.lang.Boolean getUsesDMSProfiling()
public void setuseNoProfiling()
public void setShouldLogPerformanceProfiler(java.lang.Boolean shouldLogPerformanceProfiler)
public java.lang.Boolean getShouldLogPerformanceProfiler()
public java.lang.Boolean getShouldBindAllParameters()
public java.lang.Integer getStringBindingSize()
public java.lang.Boolean getUsesBatchWriting()
public java.lang.Long getTimeConnectionEstablished()
public java.lang.Boolean getUsesJDBCBatchWriting()
public java.lang.Boolean getUsesByteArrayBinding()
public java.lang.Boolean getUsesNativeSQL()
public java.lang.Boolean getUsesStreamsForBinding()
public java.lang.Boolean getUsesStringBinding()
public java.lang.Boolean getShouldCacheAllStatements()
public java.lang.Integer getStatementCacheSize()
public void clearStatementCache()
public java.lang.Integer getSequencePreallocationSize()
public void printAvailableConnectionPools()
public java.lang.Integer getMaxSizeForPool(java.lang.String poolName)
poolName
- the name of the pool to get the max size for
public java.lang.Integer getMinSizeForPool(java.lang.String poolName)
poolName
- the name of the pool to get the min size for
public void resetAllConnections()
public void printClassesInSession()
public void printObjectsInIdentityMap(java.lang.String className) throws java.lang.ClassNotFoundException
className
- the fully qualified classname identifying the identity map
thrown
- then the IdentityMap for that class name could not be found
java.lang.ClassNotFoundException
public void printAllIdentityMapTypes()
public void printObjectsInIdentityMaps()
public java.lang.Integer getNumberOfObjectsInIdentityMap(java.lang.String className) throws java.lang.ClassNotFoundException
className
- the fully qualified name of the class to get number of instances of.
thrown
- then the IdentityMap for that class name could not be found
java.lang.ClassNotFoundException
public java.lang.Integer getNumberOfObjectsInAllIdentityMaps()
public java.lang.Integer getNumberOfPersistentClasses()
public void printIdentityMapLocks()
public void printIdentityMapLocks(java.lang.String registeredClassName)
public void printProfileSummary()
public void printProfileSummaryByClass()
public void printProfileSummaryByQuery()
public java.lang.String getLogType()
public java.lang.String getDatabasePlatform()
public java.lang.String getJdbcConnectionDetails()
public java.lang.String getConnectionPoolType()
public java.lang.String getDriver()
public java.lang.String getLogFilename()
public java.lang.String getDeployedProfileWeight()
public java.lang.String getCurrentProfileWeight()
public void setCurrentProfileWeight(java.lang.String weight)
public void initializeAllIdentityMaps()
public void initializeIdentityMaps(java.lang.String[] classNames) throws java.lang.ClassNotFoundException
classNames
- String[] of fully qualified classnames identifying the identity maps to initialize
java.lang.ClassNotFoundException
public void initializeIdentityMap(java.lang.String className) throws java.lang.ClassNotFoundException
className
- the fully qualified classname identifying the identity map to initialize
java.lang.ClassNotFoundException
public void invalidateAllIdentityMaps()
public void invalidateIdentityMaps(java.lang.String[] classNamesParam, java.lang.Boolean recurse) throws java.lang.ClassNotFoundException
classNames
- String[] of fully qualified classnames identifying the identity maps to invalidaterecurse
- Boolean indicating if we want to invalidate the children identity maps too
java.lang.ClassNotFoundException
public void invalidateIdentityMap(java.lang.String className) throws java.lang.ClassNotFoundException
className
- the fully qualified classname identifying the identity map to invalidate
java.lang.ClassNotFoundException
public void invalidateIdentityMap(java.lang.String className, java.lang.Boolean recurse) throws java.lang.ClassNotFoundException
className
- the fully qualified classname identifying the identity map to invalidaterecurse
- Boolean indicating if we want to invalidate the children identity maps too
java.lang.ClassNotFoundException
public java.lang.Boolean getCacheSynchEnabled()
public java.lang.Boolean getCacheSynchAsynchronous()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |