public final class CallStack extends Object implements Serializable
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.
Constructor and Description |
---|
CallStack(StackTraceElement[] callStack,
int zeroHash,
int pathHash) |
Modifier and Type | Method and Description |
---|---|
String |
description(String newLine)
Return the call stack lines appended with the given newLine string.
|
static String |
enc(int i)
Convert the integer to unsigned base 64.
|
boolean |
equals(Object obj) |
StackTraceElement[] |
getCallStack()
Return the call stack.
|
StackTraceElement |
getFirstStackTraceElement()
Return the first element of the call stack.
|
String |
getOriginKey(int queryHash) |
String |
getPathHash()
Return the hash for the stack elements (excluding first stack element).
|
String |
getZeroHash()
Return the hash for the first stack element.
|
int |
hashCode() |
String |
toString() |
public CallStack(StackTraceElement[] callStack, int zeroHash, int pathHash)
public StackTraceElement getFirstStackTraceElement()
public StackTraceElement[] getCallStack()
public String getZeroHash()
public String getPathHash()
public String description(String newLine)
public String getOriginKey(int queryHash)
Copyright © 2019. All rights reserved.