public final class DirtyShareSupport
extends java.lang.Object
The logging level determines whether and how much information to collect:
The INFO level (or higher) is intended for production use. FINE may have an impact on performance and will have an impact on memory use. FINEST will likely have a noticeable impact on performance and will use more memory.
The collected information is aggregated and reported in the server log at server shutdown.
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
enabledCrossSession
true if cross-session dirty sharing is enabled. |
private static boolean |
enabledIntraSession
true if dirty sharing within the same session is enabled. |
private static boolean |
forceCrossSession
Flag which overrides the absence of DMO dirty-read annotations to force dirty sharing across sessions.
|
private static boolean |
forceIntraSession
Flag which overrides the absence of DMO dirty-intra-read annotations to force dirty sharing within the
same session.
|
private static boolean |
globalNotifications
true if global notifications are enabled for cross-session dirty sharing. |
private static CentralLogger |
log
Logger
|
| Constructor and Description |
|---|
DirtyShareSupport() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bootstrap()
Method called at server bootstrap that initializes values from the directory
configuration.
|
static boolean |
isEnabledCrossSection()
Returns the value of the flag that indicates if cross-session dirty sharing is enabled.
|
static boolean |
isEnabledIntraSession()
Returns the value of the flag that indicates if dirty sharing within the same session is enabled.
|
static boolean |
isForceCrossSession()
Returns the value of the flag that indicates if dirty sharing is forced across sessions.
|
static boolean |
isForceIntraSession()
Returns the value of the flag that indicates if dirty sharing is forced within the same session.
|
static boolean |
isGlobalNotificationEnabled()
Returns the value of the flag that indicates if global notifications are enabled for
cross-session dirty sharing.
|
private static final CentralLogger log
private static boolean enabledCrossSession
true if cross-session dirty sharing is enabled.private static boolean enabledIntraSession
true if dirty sharing within the same session is enabled.private static boolean forceCrossSession
private static boolean forceIntraSession
private static boolean globalNotifications
true if global notifications are enabled for cross-session dirty sharing.public static void bootstrap()
public static boolean isEnabledCrossSection()
true if cross-session dirty sharing is enabled,
false otherwise.public static boolean isEnabledIntraSession()
true if dirty sharing within the same session is enabled,
false otherwise.public static boolean isForceCrossSession()
true if dirty sharing is forced across sessions,
false otherwise.public static boolean isForceIntraSession()
true if dirty sharing is forced within the same session,
false otherwise.public static boolean isGlobalNotificationEnabled()
true if global notifications are enabled for cross-session dirty sharing,
false otherwise.