|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.LogManager
com.sun.sgs.impl.kernel.logging.TransactionAwareLogManager
public final class TransactionAwareLogManager
A LogManager class that adds transactional semantics to Logger instances in the application's namespace. This class will either
infer the application's name space from the package used by the main AppListener, or it can be specified manually by the following property:
com.sun.sgs.logging.app.namespace
com.sun.sgs.app.listener property.
com.sun.sgs.app.listener property
value.
LogManager, applications
must set the java.util.logging.manager system property to com.sun.sgs.impl.kernel.logging.TransactionAwareLogManager prior to JVM
start up.
All Logger instances outside of the application's name space will
retain their default, non-transactional semantics.
TransactionalHandler| Field Summary |
|---|
| Fields inherited from class java.util.logging.LogManager |
|---|
LOGGING_MXBEAN_NAME |
| Constructor Summary | |
|---|---|
TransactionAwareLogManager()
Default constructor used by the JVM at startup. |
|
| Method Summary | |
|---|---|
void |
configure(Properties properties,
TransactionProxy txnProxy)
Configures this LogManager with the provided properties and uses
the TransactionProxy to add transactional semantics to any of
the specified application Logger instances. |
Logger |
getLogger(String name)
Returns the existing Logger for the provided name or creates a
new instance if none is found. |
| Methods inherited from class java.util.logging.LogManager |
|---|
addLogger, addPropertyChangeListener, checkAccess, getLoggerNames, getLoggingMXBean, getLogManager, getProperty, readConfiguration, readConfiguration, removePropertyChangeListener, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionAwareLogManager()
| Method Detail |
|---|
public void configure(Properties properties,
TransactionProxy txnProxy)
LogManager with the provided properties and uses
the TransactionProxy to add transactional semantics to any of
the specified application Logger instances.
Note that prior to this call, the application's namespace is not known
so any Logger instances will be of type TransactionalLogger, but will be configured as non-transactional.
After this call, any of these instances that were in the application's
namespace will be transactional.
properties - the properties for configuring this componenttxnProxy - the transaction proxypublic Logger getLogger(String name)
Logger for the provided name or creates a
new instance if none is found. Note that unlike the default
LogManager implementation, this call will create a new
Logger instance.
getLogger in class LogManagername - the name of the logger
Logger for the provided name, or a new
instance that was created by this call.
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||