public DuplicateTraceException(Trace trace) { super("Unable to add a trace which has already been added (app=" + trace.getAppName() + ", traceId=" + trace.getId() + ")"); appName = trace.getAppName(); traceId = trace.getId(); }
public ApplicationName getAppName() { Trace t=getTrace(); return (t == null) ? null : t.getAppName(); }
private Map<ResourceType, Resource> addResources() { TraceSource traceSource = trace.getTraceSource(); ApplicationName appName=trace.getAppName(); String applicationLabel=applicationMetadata.getLabel(appName); ApplicationResource application = new ApplicationResource(appName.makeKey(), applicationLabel); ApplicationEndPointResource endpoint = new ApplicationEndPointResource(appName, endPointAnalysis.getEndPointName(), endPointAnalysis.getResourceLabel(), traceSource); resources.put(APPLICATION, application); resources.put(SERVER, server); resources.put(APPLICATION_SERVER, new ApplicationServerResource(application, server)); resources.put(APPLICATION_END_POINT, endpoint); resources.put(APPLICATION_SERVER_END_POINT, new ApplicationServerEndPointResource(application, server, endpoint, traceSource)); return resources; }
final ApplicationName appName = trace.getAppName(); final ServerName srvName = trace.getServer(); boolean multipleFrames = false;
summary = new PersistedTraceSummary(trace.getLabel(), persistedTrace.getTraceId(), trace.getRange(), errors.size(), errorText(errors), persistedTags, trace.getServer(), trace.getAppName(), endPoint.getEndPointName()); summary = new PersistedTraceSummary(trace.getLabel(), persistedTrace.getTraceId(), trace.getRange(), errors.size(), errorText(errors), persistedTags, trace.getServer(), trace.getAppName(), extResource.getEndPointKey().getEndPointName(), extResource.getExternalName(), extResource.getExternalType(), extResource.getHost(), extResource.getPort(), extResource.getVendor(), extResource.isIncoming(),extResource.getDestination(), extResource.getParent(), extResource.isParent());