Class CallStackUtils
java.lang.Object
org.datanucleus.store.rdbms.datasource.dbcp2.pool2.impl.CallStackUtils
Utility methods for
CallStack
.- Since:
- 2.4.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
Returns whether the caller can create a security manager in the current environment.static CallStack
newCallStack
(String messageFormat, boolean useTimestamp) Deprecated.static CallStack
newCallStack
(String messageFormat, boolean useTimestamp, boolean requireFullStackTrace) Constructs a newCallStack
using the fasted allowed strategy.
-
Constructor Details
-
CallStackUtils
private CallStackUtils()Hidden constructor.
-
-
Method Details
-
canCreateSecurityManager
private static boolean canCreateSecurityManager()Returns whether the caller can create a security manager in the current environment.- Returns:
true
if it is able to create a security manager in the current environment,false
otherwise.
-
newCallStack
Deprecated.Constructs a newCallStack
using the fastest allowed strategy.- Parameters:
messageFormat
- message (or format) to print first in stack tracesuseTimestamp
- if true, interpret message as a SimpleDateFormat and print the created timestamp; otherwise, print message format literally- Returns:
- a new CallStack
-
newCallStack
public static CallStack newCallStack(String messageFormat, boolean useTimestamp, boolean requireFullStackTrace) Constructs a newCallStack
using the fasted allowed strategy.- Parameters:
messageFormat
- message (or format) to print first in stack tracesuseTimestamp
- if true, interpret message as a SimpleDateFormat and print the created timestamp; otherwise, print message format literallyrequireFullStackTrace
- if true, forces the use of a stack walking mechanism that includes full stack trace information; otherwise, uses a faster implementation if possible- Returns:
- a new CallStack
- Since:
- 2.5
-
newCallStack(String, boolean, boolean)