private static String getStepMainValue(Step step, long date, int serverId) { String mainValue = ""; StepEnum.Type stepType = StepEnum.Type.of(step.getStepType()); TextTypeEnum textTypeEnum = TextTypeEnum.of(stepType.getAssociatedMainTextTypeName());
private static void addMainValueHashToTextLoader(Step step, TextLoader textLoader) { StepEnum.Type stepType = StepEnum.Type.of(step.getStepType()); String textTypeName = stepType.getAssociatedMainTextTypeName(); TextTypeEnum textTypeEnum = TextTypeEnum.of(textTypeName);
private static List<String> getStepAdditionalValue(Step step, long date, int serverId) { StepEnum.Type stepType = StepEnum.Type.of(step.getStepType()); TextTypeEnum textTypeEnum = TextTypeEnum.of(stepType.getAssociatedMainTextTypeName()); List<String> valueList = new ArrayList<>(); switch (stepType) { case DUMP: DumpStep dumpStep = (DumpStep) step; for (int stackHash : dumpStep.stacks) { valueList.add(TextTypeEnum.STACK_ELEMENT.getTextModel().getTextIfNullDefault(date, stackHash, serverId)); } break; case SPAN: case SPANCALL: SCommonSpanStep spanStep = (SCommonSpanStep) step; String localEndpointName = TextTypeEnum.OBJECT.getTextModel().getTextIfNullDefault(date, spanStep.getLocalEndpoint().getHash(), serverId); String remoteEndpointName = TextTypeEnum.OBJECT.getTextModel().getTextIfNullDefault(date, spanStep.getRemoteEndpoint().getHash(), serverId); spanStep.getLocalEndpoint().setServiceName(localEndpointName); spanStep.getRemoteEndpoint().setServiceName(remoteEndpointName); break; default: break; } return valueList; }
private static void addAdditionalValueHashesToTextLoader(Step step, TextLoader textLoader) { StepEnum.Type stepType = StepEnum.Type.of(step.getStepType()); String textTypeName = stepType.getAssociatedMainTextTypeName(); TextTypeEnum textTypeEnum = TextTypeEnum.of(textTypeName); switch (stepType) { case DUMP: DumpStep dumpStep = (DumpStep) step; for (int stackHash : dumpStep.stacks) { textLoader.addTextHash(TextTypeEnum.STACK_ELEMENT, stackHash); } break; default: break; } } }
public static Type of(byte code) { for(Type t : Type.values()) { if (t.code == code) { return t; } } throw new RuntimeException("unknown profile type=" + code); }
public static Type of(byte code) { for(Type t : Type.values()) { if (t.code == code) { return t; } } throw new RuntimeException("unknown profile type=" + code); }
public static Type of(byte code) { for(Type t : Type.values()) { if (t.code == code) { return t; } } throw new RuntimeException("unknown profile type=" + code); }
private static String getStepMainValue(Step step, long date, int serverId) { String mainValue = ""; StepEnum.Type stepType = StepEnum.Type.of(step.getStepType()); TextTypeEnum textTypeEnum = TextTypeEnum.of(stepType.getAssociatedMainTextTypeName());
private static void addMainValueHashToTextLoader(Step step, TextLoader textLoader) { StepEnum.Type stepType = StepEnum.Type.of(step.getStepType()); String textTypeName = stepType.getAssociatedMainTextTypeName(); TextTypeEnum textTypeEnum = TextTypeEnum.of(textTypeName);