public class TraceEventHelper extends Object
| Constructor and Description |
|---|
TraceEventHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
exceptionDescription(String encoded)
Get exception description
|
static List<TraceEvent> |
filterCCMEvents(List<TraceEvent> data)
Filter the CCM events
|
static Map<String,List<TraceEvent>> |
filterCCMPoolEvents(List<TraceEvent> data)
Filter the CCM pool events
|
static Map<String,List<TraceEvent>> |
filterLifecycleEvents(List<TraceEvent> data)
Filter the lifecycle events
|
static List<TraceEvent> |
filterPoolEvents(List<TraceEvent> data)
Filter the pool events
|
static TraceEventStatus |
getCCMPoolStatus(List<TraceEvent> data,
boolean ignoreIncomplete)
Get CCM pool status
|
static TraceEventStatus |
getCCMStatus(List<TraceEvent> data,
boolean ignoreIncomplete)
Get CCM pool status
|
static Map<String,List<Interaction>> |
getConnectionListenerData(List<Interaction> data)
Get a connection listener map
|
static List<TraceEvent> |
getEvents(FileReader fr,
File directory)
Get the events
|
static Map<String,List<Interaction>> |
getPoolData(List<TraceEvent> data,
boolean ignoreDelist,
boolean ignoreTracking,
boolean ignoreIncomplete)
Get the structured pool data
|
static TraceEventStatus |
getStatus(List<TraceEvent> data,
boolean ignoreDelist,
boolean ignoreTracking,
boolean ignoreIncomplete)
Get status
|
static Map<String,TraceEventStatus> |
getStatus(Map<String,List<TraceEvent>> input,
boolean ignoreDelist,
boolean ignoreTracking,
boolean ignoreIncomplete)
Get status
|
static Map<String,List<Interaction>> |
getTransactionData(List<Interaction> data)
Get a transaction map
|
static TraceEvent |
getType(List<TraceEvent> events,
int... types)
Get a specific event type
|
static TraceEvent |
getType(List<TraceEvent> events,
String identifier,
int... types)
Get a specific event type
|
static TraceEvent |
getVersion(List<TraceEvent> events)
Get the version
|
static boolean |
hasException(List<TraceEvent> events)
Has an exception event
|
static boolean |
isEndState(TraceEvent te)
Is end state
|
static boolean |
isRed(TraceEvent te)
Is red
|
static boolean |
isStartState(TraceEvent te)
Is start state
|
static boolean |
isYellow(TraceEvent te)
Is yellow
|
static TraceEventStatus |
mergeStatus(Collection<TraceEventStatus> data)
Get status
|
static Map<String,Set<String>> |
poolManagedConnectionPools(List<TraceEvent> data)
Pool to Managed Connection Pools mapping
|
static String |
prettyPrint(TraceEvent te)
Pretty print event
|
static Map<String,List<TraceEvent>> |
tocConnectionListeners(List<TraceEvent> data)
ToC: Connection listeners
|
static Map<String,List<TraceEvent>> |
tocConnections(List<TraceEvent> data)
ToC: Connections
|
static Map<String,List<TraceEvent>> |
tocManagedConnectionPools(List<TraceEvent> data)
ToC: Managed Connection Pools
|
static Map<String,TraceEvent> |
tocManagedConnections(List<TraceEvent> data)
ToC: Managed connections
|
public static List<TraceEvent> filterPoolEvents(List<TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,List<TraceEvent>> filterLifecycleEvents(List<TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static List<TraceEvent> filterCCMEvents(List<TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,List<TraceEvent>> filterCCMPoolEvents(List<TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,Set<String>> poolManagedConnectionPools(List<TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,List<TraceEvent>> tocConnections(List<TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,TraceEvent> tocManagedConnections(List<TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,List<TraceEvent>> tocConnectionListeners(List<TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,List<TraceEvent>> tocManagedConnectionPools(List<TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static List<TraceEvent> getEvents(FileReader fr, File directory) throws Exception
fr - The file readerdirectory - The directoryException - If an error occurspublic static Map<String,TraceEventStatus> getStatus(Map<String,List<TraceEvent>> input, boolean ignoreDelist, boolean ignoreTracking, boolean ignoreIncomplete)
input - The inputignoreDelist - Should DELIST be ignoredignoreTracking - Should TRACKING be ignoredignoreIncomplete - Ignore incomplete tracespublic static TraceEventStatus getStatus(List<TraceEvent> data, boolean ignoreDelist, boolean ignoreTracking, boolean ignoreIncomplete)
data - The dataignoreDelist - Should DELIST be ignoredignoreTracking - Should TRACKING be ignoredignoreIncomplete - Ignore incomplete tracespublic static TraceEventStatus mergeStatus(Collection<TraceEventStatus> data)
data - The datapublic static boolean isStartState(TraceEvent te)
te - The eventpublic static boolean isEndState(TraceEvent te)
te - The eventpublic static boolean isRed(TraceEvent te)
te - The eventpublic static boolean isYellow(TraceEvent te)
te - The eventpublic static Map<String,List<Interaction>> getPoolData(List<TraceEvent> data, boolean ignoreDelist, boolean ignoreTracking, boolean ignoreIncomplete)
data - The dataignoreDelist - Should DELIST be ignoredignoreTracking - Should TRACKING be ignoredignoreIncomplete - Ignore incomplete tracespublic static Map<String,List<Interaction>> getConnectionListenerData(List<Interaction> data)
data - The datapublic static Map<String,List<Interaction>> getTransactionData(List<Interaction> data)
data - The datapublic static boolean hasException(List<TraceEvent> events)
events - The eventspublic static String exceptionDescription(String encoded)
encoded - The encoded stringpublic static String prettyPrint(TraceEvent te)
te - The eventpublic static TraceEvent getVersion(List<TraceEvent> events)
events - The eventspublic static TraceEventStatus getCCMStatus(List<TraceEvent> data, boolean ignoreIncomplete)
data - The dataignoreIncomplete - Ignore incomplete stackspublic static TraceEventStatus getCCMPoolStatus(List<TraceEvent> data, boolean ignoreIncomplete)
data - The dataignoreIncomplete - Ignore incomplete stackspublic static TraceEvent getType(List<TraceEvent> events, int... types)
events - The eventstypes - The typesnull if nonepublic static TraceEvent getType(List<TraceEvent> events, String identifier, int... types)
events - The eventsidentifier - The connection listenertypes - The typesnull if noneCopyright © 2021 JBoss by Red Hat. All rights reserved.