Package io.ebean.bean
Class CallStack
- java.lang.Object
-
- io.ebean.bean.CallStack
-
- All Implemented Interfaces:
CallOrigin
,Serializable
public final class CallStack extends Object implements Serializable, CallOrigin
Represent the call stack (stack trace elements).Used with a query to identify a CallStackQuery for AutoTune automatic query tuning.
This is used so that a single query called from different methods can be tuned for each different call stack.
Note the call stack is trimmed to remove the common ebean internal elements.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CallStack(StackTraceElement[] callStack, int zeroHash, int pathHash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getFullDescription()
Return the call stack lines appended with the given newLine string.String
getOriginKey(int queryHash)
Compute and return an origin key based on the query hash.String
getTopElement()
Return the first element of the call stack.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
CallStack
public CallStack(StackTraceElement[] callStack, int zeroHash, int pathHash)
-
-
Method Detail
-
getTopElement
public String getTopElement()
Return the first element of the call stack.- Specified by:
getTopElement
in interfaceCallOrigin
-
getFullDescription
public String getFullDescription()
Return the call stack lines appended with the given newLine string.- Specified by:
getFullDescription
in interfaceCallOrigin
-
getOriginKey
public String getOriginKey(int queryHash)
Description copied from interface:CallOrigin
Compute and return an origin key based on the query hash.- Specified by:
getOriginKey
in interfaceCallOrigin
-
-