Skip to content

Instantly share code, notes, and snippets.

2015-04-16T01:42:50.354-0500: Safepoint synchronization initiated. (46)
2015-04-16T01:42:50.354-0500: 5.156: Application time: 2.6397800 seconds
2015-04-16T01:42:50.354-0500: Entering safepoint region: GenCollectForAllocation
{Heap before GC invocations=0 (full 0):
par new generation total 614400K, used 409600K [0x0000000436a00000, 0x0000000468a00000, 0x0000000468a00000)
eden space 409600K, 100% used [0x0000000436a00000, 0x000000044fa00000, 0x000000044fa00000)
from space 204800K, 0% used [0x000000044fa00000, 0x000000044fa00000, 0x000000045c200000)
to space 204800K, 0% used [0x000000045c200000, 0x000000045c200000, 0x0000000468a00000)
concurrent mark-sweep generation total 14909440K, used 0K [0x0000000468a00000, 0x00000007f6a00000, 0x00000007f6a00000)
concurrent-mark-sweep perm gen total 153600K, used 15880K [0x00000007f6a00000, 0x0000000800000000, 0x0000000800000000)
@AndyFaibishenko
AndyFaibishenko / gist:3d27c78613b4880e41f0
Created April 1, 2015 03:48
convertFieldMapToJSON method
private static void convertFieldMapToJSON(DataDictionary dataDictionary,
FieldMap fieldmap, ObjectNode node) throws FieldNotFound {
// First process the "regular" fields.
Iterator<Field<?>> fieldIterator = fieldmap.iterator();
while (fieldIterator.hasNext()) {
Field field = (Field) fieldIterator.next();
String value = fieldmap.getString(field.getTag());
if (!isGroupCountField(dataDictionary, field)) {
node.put(String.valueOf(field.getTag()), value);
}
@AndyFaibishenko
AndyFaibishenko / A_README
Last active September 27, 2023 20:06
Example FIX to JSON mapper
This Gist contains an example of how to write a a FIX protocol parser using QuickFIX/J.
It also includes the XML data dictionary and a sample FIX message file with one OrderList message.
If you want to build/run this, you will need to link with QuickFIX/J and Jackson jars:
quickfixj-all-1.5.3.jar
mina-core-1.1.7.jar
slf4j-api-1.6.3.jar
log4j-1.2.15.jar
jackson-core-2.5.1.jar
jackson-databind-2.5.1.jar
jackson-annotations-2.5.1.jar