
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<org.jboss.jca.core.tracer.TraceEvent> |
filterCCMEvents(List<org.jboss.jca.core.tracer.TraceEvent> data)
Filter the CCM events
|
static Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> |
filterCCMPoolEvents(List<org.jboss.jca.core.tracer.TraceEvent> data)
Filter the CCM pool events
|
static Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> |
filterLifecycleEvents(List<org.jboss.jca.core.tracer.TraceEvent> data)
Filter the lifecycle events
|
static List<org.jboss.jca.core.tracer.TraceEvent> |
filterPoolEvents(List<org.jboss.jca.core.tracer.TraceEvent> data)
Filter the pool events
|
static TraceEventStatus |
getCCMPoolStatus(List<org.jboss.jca.core.tracer.TraceEvent> data,
boolean ignoreIncomplete)
Get CCM pool status
|
static TraceEventStatus |
getCCMStatus(List<org.jboss.jca.core.tracer.TraceEvent> data,
boolean ignoreIncomplete)
Get CCM pool status
|
static Map<String,List<Interaction>> |
getConnectionListenerData(List<Interaction> data)
Get a connection listener map
|
static List<org.jboss.jca.core.tracer.TraceEvent> |
getEvents(FileReader fr,
File directory)
Get the events
|
static Map<String,List<Interaction>> |
getPoolData(List<org.jboss.jca.core.tracer.TraceEvent> data,
boolean ignoreDelist,
boolean ignoreTracking,
boolean ignoreIncomplete)
Get the structured pool data
|
static TraceEventStatus |
getStatus(List<org.jboss.jca.core.tracer.TraceEvent> data,
boolean ignoreDelist,
boolean ignoreTracking,
boolean ignoreIncomplete)
Get status
|
static Map<String,TraceEventStatus> |
getStatus(Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> input,
boolean ignoreDelist,
boolean ignoreTracking,
boolean ignoreIncomplete)
Get status
|
static Map<String,List<Interaction>> |
getTransactionData(List<Interaction> data)
Get a transaction map
|
static org.jboss.jca.core.tracer.TraceEvent |
getType(List<org.jboss.jca.core.tracer.TraceEvent> events,
int... types)
Get a specific event type
|
static org.jboss.jca.core.tracer.TraceEvent |
getType(List<org.jboss.jca.core.tracer.TraceEvent> events,
String identifier,
int... types)
Get a specific event type
|
static org.jboss.jca.core.tracer.TraceEvent |
getVersion(List<org.jboss.jca.core.tracer.TraceEvent> events)
Get the version
|
static boolean |
hasException(List<org.jboss.jca.core.tracer.TraceEvent> events)
Has an exception event
|
static boolean |
isEndState(org.jboss.jca.core.tracer.TraceEvent te)
Is end state
|
static boolean |
isRed(org.jboss.jca.core.tracer.TraceEvent te)
Is red
|
static boolean |
isStartState(org.jboss.jca.core.tracer.TraceEvent te)
Is start state
|
static boolean |
isYellow(org.jboss.jca.core.tracer.TraceEvent te)
Is yellow
|
static TraceEventStatus |
mergeStatus(Collection<TraceEventStatus> data)
Get status
|
static Map<String,Set<String>> |
poolManagedConnectionPools(List<org.jboss.jca.core.tracer.TraceEvent> data)
Pool to Managed Connection Pools mapping
|
static String |
prettyPrint(org.jboss.jca.core.tracer.TraceEvent te)
Pretty print event
|
static Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> |
tocConnectionListeners(List<org.jboss.jca.core.tracer.TraceEvent> data)
ToC: Connection listeners
|
static Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> |
tocConnections(List<org.jboss.jca.core.tracer.TraceEvent> data)
ToC: Connections
|
static Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> |
tocManagedConnectionPools(List<org.jboss.jca.core.tracer.TraceEvent> data)
ToC: Managed Connection Pools
|
static Map<String,org.jboss.jca.core.tracer.TraceEvent> |
tocManagedConnections(List<org.jboss.jca.core.tracer.TraceEvent> data)
ToC: Managed connections
|
public static List<org.jboss.jca.core.tracer.TraceEvent> filterPoolEvents(List<org.jboss.jca.core.tracer.TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> filterLifecycleEvents(List<org.jboss.jca.core.tracer.TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static List<org.jboss.jca.core.tracer.TraceEvent> filterCCMEvents(List<org.jboss.jca.core.tracer.TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> filterCCMPoolEvents(List<org.jboss.jca.core.tracer.TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,Set<String>> poolManagedConnectionPools(List<org.jboss.jca.core.tracer.TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> tocConnections(List<org.jboss.jca.core.tracer.TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,org.jboss.jca.core.tracer.TraceEvent> tocManagedConnections(List<org.jboss.jca.core.tracer.TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> tocConnectionListeners(List<org.jboss.jca.core.tracer.TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static Map<String,List<org.jboss.jca.core.tracer.TraceEvent>> tocManagedConnectionPools(List<org.jboss.jca.core.tracer.TraceEvent> data) throws Exception
data - The dataException - If an error occurspublic static List<org.jboss.jca.core.tracer.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<org.jboss.jca.core.tracer.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<org.jboss.jca.core.tracer.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(org.jboss.jca.core.tracer.TraceEvent te)
te - The eventpublic static boolean isEndState(org.jboss.jca.core.tracer.TraceEvent te)
te - The eventpublic static boolean isRed(org.jboss.jca.core.tracer.TraceEvent te)
te - The eventpublic static boolean isYellow(org.jboss.jca.core.tracer.TraceEvent te)
te - The eventpublic static Map<String,List<Interaction>> getPoolData(List<org.jboss.jca.core.tracer.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<org.jboss.jca.core.tracer.TraceEvent> events)
events - The eventspublic static String exceptionDescription(String encoded)
encoded - The encoded stringpublic static String prettyPrint(org.jboss.jca.core.tracer.TraceEvent te)
te - The eventpublic static org.jboss.jca.core.tracer.TraceEvent getVersion(List<org.jboss.jca.core.tracer.TraceEvent> events)
events - The eventspublic static TraceEventStatus getCCMStatus(List<org.jboss.jca.core.tracer.TraceEvent> data, boolean ignoreIncomplete)
data - The dataignoreIncomplete - Ignore incomplete stackspublic static TraceEventStatus getCCMPoolStatus(List<org.jboss.jca.core.tracer.TraceEvent> data, boolean ignoreIncomplete)
data - The dataignoreIncomplete - Ignore incomplete stackspublic static org.jboss.jca.core.tracer.TraceEvent getType(List<org.jboss.jca.core.tracer.TraceEvent> events, int... types)
events - The eventstypes - The typesnull if nonepublic static org.jboss.jca.core.tracer.TraceEvent getType(List<org.jboss.jca.core.tracer.TraceEvent> events, String identifier, int... types)
events - The eventsidentifier - The connection listenertypes - The typesnull if noneCopyright © 2014 IronJacamar (http://www.ironjacamar.org)