Class ThreadInfoLineRule
java.lang.Object
com.ibm.dtfj.javacore.parser.framework.tag.LineRule
com.ibm.dtfj.javacore.parser.j9.section.thread.ThreadInfoLineRule
- All Implemented Interfaces:
ILineRule
-
Field Summary
Fields declared in class LineRule
fCharSubSet, fLineNumber, fOffset, fSourceModifier and TypeFieldDescriptionprotected final StringBufferprotected intprotected intprotected final StringBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessLine(String source, int startingOffset) Most VMs list hexadecimal values with the 0x prefix, but at least one older Sovereign VM does not, therefore check for both patterns. 7.0 3XMTHREADINFO "main" J9VMThread:0x000CC100, j9thread_t:0x003D5600, java/lang/Thread:0x00A72440, state:R, prio=5 3XMTHREADINFO1 (native thread ID:0x1A58, native priority:0x5, native policy:UNKNOWN) 3XMTHREADINFO3 Java callstack: 4XESTACKTRACE at java/lang/Runtime.maxMemory(Native Method) 3XMTHREADINFO3 Native callstack: 4XENATIVESTACK JVM_MaxMemory+0x5 (vmi.c:209, 0x00996FF5 [jvm+0x6ff5]) 3XMTHREADINFO Anonymous native thread 3XMTHREADINFO1 (native thread ID:0x378C, native priority: 0x0, native policy:UNKNOWN) 3XMTHREADINFO3 Native callstack: 6.0 2XMFULLTHDDUMP Full thread dump J9 VM (J2RE 6.0 IBM J9 2.4 Windows XP x86-32 build jvmwi3260-20090215_2988320090215_029883_lHdSMr, native threads): 3XMTHREADINFO "JIT Compilation Thread" TID:0x000A9C00, j9thread_t:0x00015370, state:CW, prio=10 3XMTHREADINFO1 (native thread ID:0x267C, native priority:0xB, native policy:UNKNOWN) 5.0 2XMFULLTHDDUMP Full thread dump J9SE VM (J2RE 5.0 IBM J9 2.3 Windows XP x86-32 build 20051027_03723_lHdSMR, native threads): 3XMTHREADINFO "main" (TID:0x0008E900, sys_thread_t:0x00387A64, state:CW, native ID:0x0000083C) prio=5 1.4.2 2XMFULLTHDDUMP Full thread dump Classic VM (J2RE 1.4.2 IBM Windows 32 build cn142-20080130 (SR10), native threads): 3XMTHREADINFO "Finalizer" (TID:0xBAE0B0, sys_thread_t:0x16F29E8, state:CW, native ID:0x14D8) prio=8Methods declared in class LineRule
addAllCharactersAsTokenAndConsumeFirstMatch, addAllCharactersAsTokenUntilFirstMatch, addAllCharactersAsTokenUntilIndex, addNonPrefixedHexToken, addPrefixedHexToken, addToken, addToken, addToken, consumeCharacters, consumeUntilFirstMatch, findFirst, getLineNumber, indexOfLast, matchAndConsumeValue, parseLineModifier and TypeMethodDescriptionprotected IParserTokenaddAllCharactersAsTokenAndConsumeFirstMatch(String type, Matcher matcher) Grabs all characters up to the first match specified by the matcher, and adds the latter as a token of a argument-specified type to the internal token list.protected IParserTokenaddAllCharactersAsTokenUntilFirstMatch(String type, Matcher matcher) Grabs all characters up to but excluding the first match specified by the matcher, and adds the latter as a token of an argument-specified type.protected IParserTokenaddAllCharactersAsTokenUntilIndex(String type, int endIndex, boolean stripTrailingWhitespace) Copies all characters from start to endIndex - 1.protected IParserTokenaddNonPrefixedHexToken(String type) Matches the first hexadecimal match encountered that is not prefixed by "0x" as a token.protected IParserTokenaddPrefixedHexToken(String type) Matches the first prefixed hexadecimal pattern encountered, and adds it as a token.protected voidaddToken(IParserToken token) Adds a non-null token to the token map.protected IParserTokenAdds a token of the type specified to the internal token list and assigns it the value specified by the argument.protected IParserTokenAdds a token of the type specified via argument to the internal token map, and assigns it the value matched by the pattern matcher.protected StringconsumeCharacters(int startIndex, int endIndex) Consumes a section of characters from the buffer.protected booleanconsumeUntilFirstMatch(Matcher matcher) Matches the first occurrence of the pattern and consumes all characters from the start of the buffer until the first occurrence of the pattern.protected booleanFinds the first match.protected intprotected intindexOfLast(Matcher matcher) Returns the starting index of the last matched pattern, but doesn't consume anything or generate tokens.protected StringmatchAndConsumeValue(Matcher matcher) Finds the first occurrence of the pattern in the source.Initializes buffer, token list, and other fields prior to parsing and tokenising a line.
-
Constructor Details
-
ThreadInfoLineRule
public ThreadInfoLineRule()
-
-
Method Details
-
processLine
Most VMs list hexadecimal values with the 0x prefix, but at least one older Sovereign VM does not, therefore check for both patterns. 7.0 3XMTHREADINFO "main" J9VMThread:0x000CC100, j9thread_t:0x003D5600, java/lang/Thread:0x00A72440, state:R, prio=5 3XMTHREADINFO1 (native thread ID:0x1A58, native priority:0x5, native policy:UNKNOWN) 3XMTHREADINFO3 Java callstack: 4XESTACKTRACE at java/lang/Runtime.maxMemory(Native Method) 3XMTHREADINFO3 Native callstack: 4XENATIVESTACK JVM_MaxMemory+0x5 (vmi.c:209, 0x00996FF5 [jvm+0x6ff5]) 3XMTHREADINFO Anonymous native thread 3XMTHREADINFO1 (native thread ID:0x378C, native priority: 0x0, native policy:UNKNOWN) 3XMTHREADINFO3 Native callstack: 6.0 2XMFULLTHDDUMP Full thread dump J9 VM (J2RE 6.0 IBM J9 2.4 Windows XP x86-32 build jvmwi3260-20090215_2988320090215_029883_lHdSMr, native threads): 3XMTHREADINFO "JIT Compilation Thread" TID:0x000A9C00, j9thread_t:0x00015370, state:CW, prio=10 3XMTHREADINFO1 (native thread ID:0x267C, native priority:0xB, native policy:UNKNOWN) 5.0 2XMFULLTHDDUMP Full thread dump J9SE VM (J2RE 5.0 IBM J9 2.3 Windows XP x86-32 build 20051027_03723_lHdSMR, native threads): 3XMTHREADINFO "main" (TID:0x0008E900, sys_thread_t:0x00387A64, state:CW, native ID:0x0000083C) prio=5 1.4.2 2XMFULLTHDDUMP Full thread dump Classic VM (J2RE 1.4.2 IBM Windows 32 build cn142-20080130 (SR10), native threads): 3XMTHREADINFO "Finalizer" (TID:0xBAE0B0, sys_thread_t:0x16F29E8, state:CW, native ID:0x14D8) prio=8- Specified by:
processLinein classLineRule- Parameters:
source- to be parsed.startingOffset-
-