|
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.RuntimeServices
public class RuntimeServices
Purpose: Provide a dynamic interface into the TopLink Session.
Description: This class is ment to provide a framework for gaining access to configuration of the TopLink Session during runtime. It will provide the basis for developement of a JMX service and possibly other frameworks.
Oc4jRuntimeServices
Constructor Summary | |
---|---|
RuntimeServices()
Deprecated. Default Constructor |
|
RuntimeServices(oracle.toplink.internal.sessions.AbstractSession session)
Deprecated. Constructor |
Method Summary | |
---|---|
void |
addNewConnectionPool(java.lang.String poolName,
int maxSize,
int minSize,
java.lang.String platform,
java.lang.String driverClassName,
java.lang.String url,
java.lang.String userName,
java.lang.String password)
Deprecated. This method provides client with access to add a new connection pool to a TopLink ServerSession. |
void |
addNewConnectionPool(java.lang.String poolName,
int maxSize,
int minSize,
java.lang.String platform,
java.lang.String driverClassName,
java.lang.String url,
java.lang.String userName,
java.lang.String password,
java.lang.String licencePath)
Deprecated. use addNewConnectionPool(String poolName, int maxSize, int minSize, String platform, String driverClassName, String url, String userName, String password) throws ClassNotFoundException instead. |
java.util.List |
getAvailableConnectionPools()
Deprecated. This method will return the available Connection pools within this Server Session |
java.util.List |
getClassesInSession()
Deprecated. This method is used to return those Class Names that have identity Maps in the Session. |
int |
getLogLevel(java.lang.String category)
Deprecated. Return the log level |
java.lang.Integer |
getNumberOfObjectsInIdentityMap(java.lang.String className)
Deprecated. This method is used to return the number of objects in a particular Identity Map |
java.lang.Integer |
getNumberOfObjectsInIdentityMapSubCache(java.lang.String className)
Deprecated. This method is used to return the number of objects in a particular Identity Map's subcache. |
java.util.List |
getObjectsInIdentityMap(java.lang.String className)
Deprecated. This method will return a collection of the objects in the Identity Map. |
java.util.List |
getObjectsInIdentityMapSubCache(java.lang.String className)
Deprecated. |
java.util.List |
getObjectsInIdentityMapSubCacheAsMap(java.lang.String className)
Deprecated. This method is used to return a Map of the objects in a particular Identity Map's subcache. |
int |
getSequencePreallocationSize()
Deprecated. Method returns the value of the Sequence Preallocation size |
boolean |
getShouldCacheAllStatements()
Deprecated. Returns if statements should be cached or not |
boolean |
getShouldLogDebug()
Deprecated. |
boolean |
getShouldLogExceptions()
Deprecated. |
boolean |
getShouldLogExceptionStackTrace()
Deprecated. Stack trace is logged for SEVERE all the time and at FINER level for WARNING or less |
boolean |
getShouldLogMessages()
Deprecated. This method is used to determine if logging is turned on |
boolean |
getShouldLogPerformanceProfiler()
Deprecated. Method indicates if Performace profile should be loged |
boolean |
getShouldPrintConnection()
Deprecated. Connection is always printed whenever available |
boolean |
getShouldPrintDate()
Deprecated. Date is always printed |
boolean |
getShouldPrintSession()
Deprecated. Session is always printed whenever available |
boolean |
getShouldPrintThread()
Deprecated. Thread is logged at FINE or less level |
boolean |
getShouldProfilePerformance()
Deprecated. This method will return if profgiling is turned on or not |
java.util.List |
getSizeForPool(java.lang.String poolName)
Deprecated. This method will retrieve the size of a particular connection pool |
int |
getStatementCacheSize()
Deprecated. Returns the statement cache size. |
void |
resetAllConnections()
Deprecated. This method is used to reset connections from the session to the database. |
void |
setLogLevel(int level)
Deprecated. Set the log level |
void |
setProfileWeight(int weight)
Deprecated. This method is used to change DMS sensor weight. |
void |
setSequencePreallocationSize(int size)
Deprecated. This method provide access for setting the sequence pre-allocation size |
void |
setShouldCacheAllStatements(boolean shouldCacheAllStatements)
Deprecated. Method used to set if statements should be cached. |
void |
setShouldLogDebug(boolean shouldLogDebug)
Deprecated. |
void |
setShouldLogExceptions(boolean shouldLogExceptions)
Deprecated. |
void |
setShouldLogExceptionStackTrace(boolean shouldLogExceptionStackTrace)
Deprecated. Stack trace is logged for SEVERE all the time and at FINER level for WARNING or less |
void |
setShouldLogMessages(boolean shouldLogMessages)
Deprecated. |
void |
setShouldLogPerformanceProfiler(boolean shouldLogPerformanceProfiler)
Deprecated. This method is used to turn on Profile logging when using th Performance Profiler |
void |
setShouldPrintConnection(boolean shouldPrintConnection)
Deprecated. Connection is always printed whenever available |
void |
setShouldPrintDate(boolean shouldPrintDate)
Deprecated. Date is always printed |
void |
setShouldPrintSession(boolean shouldPrintSession)
Deprecated. Session is always printed whenever available |
void |
setShouldPrintThread(boolean shouldPrintThread)
Deprecated. Thread is logged at FINE or less level |
void |
setShouldProfilePerformance(boolean shouldProfile)
Deprecated. This method is used to turn on Performance Profiling |
void |
setStatementCacheSize(int size)
Deprecated. Used to set the statement cache size. |
boolean |
shouldLog(int Level,
java.lang.String category)
Deprecated. Check if a message of the given level would actually be logged. |
void |
updatePoolSize(java.lang.String poolName,
int maxSize,
int minSize)
Deprecated. This method allows the client to set the pool size for a particular pool, based on the pool name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeServices()
public RuntimeServices(oracle.toplink.internal.sessions.AbstractSession session)
session
- the session to be used with these RuntimeServicesMethod Detail |
---|
public void setShouldLogMessages(boolean shouldLogMessages)
setLogLevel(int level)
public boolean getShouldLogMessages()
public void setShouldLogDebug(boolean shouldLogDebug)
setLogLevel(int level)
public boolean getShouldLogDebug()
getLogLevel(String category)
public void setShouldLogExceptions(boolean shouldLogExceptions)
setLogLevel(int level)
public boolean getShouldLogExceptions()
getLogLevel(String category)
public void setShouldLogExceptionStackTrace(boolean shouldLogExceptionStackTrace)
public boolean getShouldLogExceptionStackTrace()
public void setShouldPrintDate(boolean shouldPrintDate)
public boolean getShouldPrintDate()
public void setShouldPrintSession(boolean shouldPrintSession)
public boolean getShouldPrintSession()
public void setShouldPrintThread(boolean shouldPrintThread)
public boolean getShouldPrintThread()
public void setShouldPrintConnection(boolean shouldPrintConnection)
public boolean getShouldPrintConnection()
public void setShouldProfilePerformance(boolean shouldProfile)
public boolean getShouldProfilePerformance()
public void setShouldLogPerformanceProfiler(boolean shouldLogPerformanceProfiler)
public boolean getShouldLogPerformanceProfiler()
public void setShouldCacheAllStatements(boolean shouldCacheAllStatements)
public boolean getShouldCacheAllStatements()
public void setStatementCacheSize(int size)
public int getStatementCacheSize()
public void setSequencePreallocationSize(int size)
public int getSequencePreallocationSize()
public void updatePoolSize(java.lang.String poolName, int maxSize, int minSize)
poolName
- the name of the pool to be updated.maxSize
- the new maximum number of connectionsminSize
- the new minimum number of connectionspublic java.util.List getAvailableConnectionPools()
public java.util.List getSizeForPool(java.lang.String poolName)
poolName
- the name of the pool to get the size for
public void addNewConnectionPool(java.lang.String poolName, int maxSize, int minSize, java.lang.String platform, java.lang.String driverClassName, java.lang.String url, java.lang.String userName, java.lang.String password, java.lang.String licencePath) throws java.lang.ClassNotFoundException
poolName
- the name of the new poolmaxSize
- the maximum number of connections in the poolminSize
- the minimum number of connections in the poolplatform
- the fully qualified name of the TopLink platform to use with this pool.driverClassName
- the fully qualified name of the JDBC driver classurl
- the URL of the database to connect touserName
- the user name to connect to the database withpassword
- the password to connect to the database withlicencePath
- the path to the TopLink license file.
java.lang.ClassNotFoundException
- if any of the class names are mispelled.public void addNewConnectionPool(java.lang.String poolName, int maxSize, int minSize, java.lang.String platform, java.lang.String driverClassName, java.lang.String url, java.lang.String userName, java.lang.String password) throws java.lang.ClassNotFoundException
poolName
- the name of the new poolmaxSize
- the maximum number of connections in the poolminSize
- the minimum number of connections in the poolplatform
- the fully qualified name of the TopLink platform to use with this pool.driverClassName
- the fully qualified name of the JDBC driver classurl
- the URL of the database to connect touserName
- the user name to connect to the database withpassword
- the password to connect to the database with
java.lang.ClassNotFoundException
- if any of the class names are mispelled.public void resetAllConnections()
public java.util.List getClassesInSession()
public java.util.List getObjectsInIdentityMap(java.lang.String className) throws java.lang.ClassNotFoundException
className
- the fully qualified classname of the class to the instances of
thrown
- then the IdentityMap for that class name could not be found
java.lang.ClassNotFoundException
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.util.List getObjectsInIdentityMapSubCache(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
getObjectsInIdentityMapSubCacheAsMap(String className)
public java.util.List getObjectsInIdentityMapSubCacheAsMap(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 getNumberOfObjectsInIdentityMapSubCache(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 int getLogLevel(java.lang.String category)
Return the log level
category
- the string representation of a TopLink category, e.g. "sql", "transaction" ...
public void setLogLevel(int level)
Set the log level
level
- the new log levelcategory
- the string representation of a TopLink category.
public boolean shouldLog(int Level, java.lang.String category)
Check if a message of the given level would actually be logged.
level
- the log request levelcategory
- the string representation of a TopLink category
public void setProfileWeight(int weight)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |