@Override protected boolean shouldCreateExteranlResource(Frame frame) { return !FrameUtil.hasFrameOfType(frame, GemFireDefenitions.TYPE_REMOTE.getType()); } }
static Frame resolveEndPointFrame (Trace trace) { Frame execFrame=trace.getFirstFrameOfType(RunExecDefinitions.EXEC_OP), runFrame=trace.getFirstFrameOfType(RunExecDefinitions.RUN_OP); Operation opExec=(execFrame == null) ? null : execFrame.getOperation(), opRun=(runFrame == null) ? null : runFrame.getOperation(); if (opExec == null) { if (opRun == null) { return null; } else { return runFrame; } } else if (opRun == null) { return execFrame; } // at this stage we have 2 frames - prefer the one higher up the trace int execDepth = FrameUtil.getDepth(execFrame), runDepth = FrameUtil.getDepth(runFrame); if (execDepth < runDepth) { return execFrame; } else { return runFrame; } }
Frame root = FrameUtil.getRoot(peek);
@Override protected EndPointAnalysis makeEndPoint(Frame blazeFrame, int depth) { Operation blazeOp = blazeFrame.getOperation(); String examplePath = getExamplePath(FrameUtil.getLastParentOfType(blazeFrame, OperationType.HTTP), blazeOp); String endPointLabel = "BlazeDS: " + blazeOp.getLabel(); // The logical thing would be for the endPointName to be equals to the endPointLabel (or operationLabel) // but when the op label contains a url (as in the case of HTTPProxyService) // the endPointName ends up containing special characters which interfere with displaying it in the UI // So - we have the operations themselves report what the endPointName should be // (which is the operation label minus the url if exists) String endPointNameString = blazeOp.get("endPointName", String.class); EndPointName endPointName=StringUtil.isEmpty(endPointNameString) ? EndPointName.valueOf(blazeOp) : EndPointName.valueOf(endPointNameString) ; return new EndPointAnalysis(endPointName, endPointLabel, examplePath, getOperationScore(blazeOp, depth), blazeOp); }
continue; int frameDepth = FrameUtil.getDepth(scoringFrame); EndPointAnalysis endPoint = userDefinedAnalyzer.locateEndPoint(scoringFrame, frameDepth); highestScore = endPoint; int frameDepth = FrameUtil.getDepth(scoringFrame); if (highestScore != null) { int frameScore = child.getScore(scoringFrame, frameDepth);
@Override protected boolean shouldCreateExteranlResource(Frame frame) { return !FrameUtil.hasFrameOfType(frame, GemFireDefenitions.TYPE_REMOTE.getType()); } }