Class MonitorSovSectionParserPart
java.lang.Object
com.ibm.dtfj.javacore.parser.j9.SectionParserGrammar
com.ibm.dtfj.javacore.parser.j9.SovereignSectionParserPart
com.ibm.dtfj.javacore.parser.j9.section.monitor.MonitorSovSectionParserPart
- All Implemented Interfaces:
ISectionParser, IMonitorTypes, IMonitorTypesSov
public class MonitorSovSectionParserPart
extends SovereignSectionParserPart
implements IMonitorTypes, IMonitorTypesSov
-
Field Summary
Fields declared in class SectionParserGrammar
anyMatched, DEFAULT_DEPTH, fLookAheadBuffer, FORCE_THROW, fSectionName, fTagManager, fTagParserModifier and TypeFieldDescriptionprotected booleanprotected static final intprotected ILookAheadBufferprotected static final intprotected Stringprotected J9TagManagerprotected ITagParserFields declared in interface IMonitorTypes
FLATLOCKED, INFLATED_MONITOR, MONITOR_ADDRESS, MONITOR_ENTRY_COUNT, MONITOR_NAME, MONITOR_OBJECT_ADDRESS, MONITOR_OBJECT_FULL_JAVA_NAME, MONITOR_SECTION, MONITOR_THREAD_ID, MONITOR_THREAD_NAME, MONITOR_WORD_ADDRESS_IN_HEADER, SYSTEM_MONITOR, T_1LKMONPOOLDUMP, T_1LKPOOLINFO, T_1LKREGMONDUMP, T_2LKMONINUSE, T_2LKPOOLTOTAL, T_2LKREGMON, T_3LKMONOBJECT, T_3LKNOTIFYQ, T_3LKWAITER, T_3LKWAITERQ, T_3LKWAITNOTIFY, TOTAL_MONITORS, UNOWNEDModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields declared in interface IMonitorTypesSov
LK_FLAT_DETAILS, LK_FLAT_LOCKED, LK_FLAT_MON, LK_FLAT_MON_DUMP, LK_INFL_DETAILS, LK_INFLATED_MON, LK_OBJ_MON_DUMP, LK_POOL_EXP_BY, LK_POOL_EXP_NUM, LK_POOL_FREE, LK_POOL_INIT, MONITOR_FLAT_ID, MONITOR_THREAD_EE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeSovRule(String sovRuleID, ILookAheadBuffer lookAheadBuffer) readIntoDTFJ(ILookAheadBuffer lookAhead) voidreadIntoDTFJ(ILookAheadBuffer lookAhead, IImageBuilder imageBuilder) Pass in a lookahead buffer that is shared amongst all section parsers, pass in the DTFJ factory to construct the DTFJ objects as tags are being parsed.Methods declared in class SectionParserGrammar
anyMatched, consume, getCurrentFileLineNumber, getErrors, getLineRuleResults, getLookAheadBuffer, getSectionName, handleError, handleError, handleError, handleError, handleError, handleErrorAtLineNumber, handleRequiredMismatch, handleUnknownMismatch, isValidJavaCoreTag, isValidSectionTag, lookAhead, match, matchOptional, matchRequired, processTagLineOptional, processTagLineRequired, setLookAheadBuffer, setLookAheadBuffer, setTagManagerModifier and TypeMethodDescriptionbooleanprotected voidconsume()intReturns the current line number being parsed, or -1 if no parsing is occurring (parsing is finished, etc..).protected IAttributeValueMapgetLineRuleResults(IParserToken token) protected ILookAheadBufferprotected voidprotected voidhandleError(Exception e, int behaviour) protected voidhandleError(String message) protected voidhandleError(String message, int offset, int length) protected voidhandleError(String message, Exception e) protected voidhandleErrorAtLineNumber(int fileLineNumber, String message, Exception e) protected voidhandleRequiredMismatch(String expectedType, String actualType, String actualValue) protected voidhandleUnknownMismatch(String actualType, String actualValue) protected booleanisValidJavaCoreTag(IParserToken token) protected booleanisValidSectionTag(String tag) protected IParserTokenlookAhead(int depth) protected booleanThe match performs one additional function:
if the mismatch is due to an unrecognised javacore tag, that erroneous tag can be interpreted as garbage for now, so the latter is consumed without further processing.protected booleanmatchOptional(String type) Match a type, but do not generate an error if mismatch occurs.protected booleanmatchRequired(String type) Match a type, and generate an error if a mismatch occurs.protected IAttributeValueMapprocessTagLineOptional(String tagName) protected IAttributeValueMapprocessTagLineRequired(String tagName) protected voidsetLookAheadBuffer(ILookAheadBuffer lookAheadBuffer) protected voidsetLookAheadBuffer(ILookAheadBuffer lookAheadBuffer, int depth) protected voidsetTagManager(J9TagManager tagManager)
-
Constructor Details
-
MonitorSovSectionParserPart
public MonitorSovSectionParserPart()
-
-
Method Details
-
computeSovRule
public void computeSovRule(String sovRuleID, ILookAheadBuffer lookAheadBuffer) throws ParserException - Throws:
ParserException
-
readIntoDTFJ
- Throws:
ParserException
-
readIntoDTFJ
public void readIntoDTFJ(ILookAheadBuffer lookAhead, IImageBuilder imageBuilder) throws ParserException Description copied from interface:ISectionParserPass in a lookahead buffer that is shared amongst all section parsers, pass in the DTFJ factory to construct the DTFJ objects as tags are being parsed.- Specified by:
readIntoDTFJin interfaceISectionParser- Parameters:
lookAhead-imageBuilder-- Throws:
ParserException
-