Module com.blackhillsoftware.json
Package com.blackhillsoftware.json.cics
Class CicsTransactionGroup
java.lang.Object
com.blackhillsoftware.json.cics.CicsTransactionGroup
Summarize CICS data from a group of transactions.
This class can be used as the value in a Map where the
key is a field or combination of fields used to group the data.
Usage
- Create a
CicsTransactionGroupFactory
and set any configuration options required e.g.CicsTransactionGroupFactory.exclude(MonitoringField)
. The configuration will be used for allCicsTransactionGroups
created using the factory. - For each group of transactions, use the factory to create a new
CicsTransactionGroup:
CicsTransactionGroupFactory.createGroup()
. add
records to the summary.- The resulting
CicsTransactionGroups
can be converted to a JSON summary of the group data using a Gson object from EasySmfGsonBuilder.
For more detail see Package Info
CicsTransactionGroup is thread safe so transactions can be added to the group from multiple threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(PerformanceRecord performanceRecord) Add transaction data to the group.int
getCount()
Get the count of entries in the groupList<com.blackhillsoftware.json.internal.CicsSummaryEntry>
Get the summary of the CICS fields (for use by JSON generator)
-
Method Details
-
add
Add transaction data to the group.- Parameters:
performanceRecord
- The CICS performance record to add to the group
-
getSummary
Get the summary of the CICS fields (for use by JSON generator)- Returns:
- the summary for the group
-
getCount
public int getCount()Get the count of entries in the group- Returns:
- the count
-