Tabnine Logo
Trace.getServer
Code IndexAdd Tabnine to your IDE (free)

How to use
getServer
method
in
com.springsource.insight.intercept.trace.Trace

Best Java code snippets using com.springsource.insight.intercept.trace.Trace.getServer (Showing top 6 results out of 315)

origin: com.springsource.insight/insight-common

public TraceReport(Trace trace, TraceInterface traceAccess) {
  this((trace == null) ? null /* cause exception */ : trace.getServer(), traceAccess);
}
origin: com.springsource.insight/insight-common

public TraceAnalysis(Trace traceValue, ServerResource sourceServer, EndPointAnalysis endPoint,
           Collection<Resource> extResources,
           Collection<TraceError> traceErrors,
           Collection<TraceTag> tags) {
  ServerName    srcName=sourceServer.getServer();
  ServerName    trcName=traceValue.getServer();
  if (!ObjectUtil.typedEquals(srcName, trcName)) {
    throw new IllegalArgumentException("Trace server name (" + trcName + ") does not match the source server (" + srcName + ")");
  }
  this.trace = traceValue;
  this.server = sourceServer;
  this.endPointAnalysis = endPoint;
  this.externalResources = extResources;
  // Create a new TimeRange from the existing one. If the endPoint has a
  // SelfTimeRange the additional fields will be culled out as an optimization
  // for memory.
  this.responseTime = traceValue.getRange();
  this.responseTimePoint = dataPointFromRange(responseTime);
  this.resources = new HashMap<ResourceType, Resource>();
  this.traceTags = (ListUtil.size(tags) > 0) ? new HashSet<TraceTag>(tags) : new HashSet<TraceTag>();
  this.errors = (ListUtil.size(traceErrors) > 0) ? new ArrayList<TraceError>(traceErrors) : new ArrayList<TraceError>();
  this.applicationMetadata = ApplicationMetadataCache.getInstance();
  addResources();
}
origin: com.springsource.insight.dispatch/insight-dispatch-core

Trace prepareTraceForTransport (Trace trace) {
  ServerName  traceServer=trace.getServer();
  // override only if not set or default
  if ((traceServer == null) || InterceptConfiguration.PLACEHOLDER_SERVER.equals(traceServer)) {
    DispatchConfiguration   dispatchConfig=DispatchConfiguration.getInstance();
    ServerName              agentName=dispatchConfig.getServerName();
    trace.setServer(agentName);
  }
  
  return trace;
  
}

origin: com.springsource.insight/insight-common

final ServerName srvName = trace.getServer();        
boolean	multipleFrames = false;
Collection<? extends ExternalResourceDescriptor> externalRes=extresList;
origin: com.springsource.insight/insight-repo

throw new InsightRuntimeException("Unable to store trace[" + trace.getId() + "] from server [" + trace.getServer() + "]: It depends on " +
                 "resource [" + resourceKey.getKey() + "] which can't be found");
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());
origin: com.springsource.insight/insight-common

public TraceAnalysis analyze(TraceInterface traceAccess) {
  Trace            trace=traceAccess.asTrace();
  ApplicationName trcName=traceAccess.getAppName(), appName=applicationMetadata.getApplicationName(trcName);
  
  TraceSource traceSource = sourceAnalysisService != null ? sourceAnalysisService.locateTraceSource(traceAccess)
                               :
                               null;
  trace.setTraceSource(traceSource);
  
  if (!ObjectUtil.typedEquals(trcName, appName)) {
    if (logger.isDebugEnabled()) {
      logger.debug("analyze(" + trace + ") modified application " + trcName + " => " + appName);
    }
    trace.setAppName(appName);
  }
  EndPointAnalysis         endPointAnalysis=locateEndPoint(traceAccess);
  Collection<Resource>    extResources=collectExternalResources(traceAccess, endPointAnalysis);
  List<TraceError>        errors=locateErrors(trace);
  ServerName                serverName=(traceAccess instanceof ServerNameCarrier)
                ? ((ServerNameCarrier) traceAccess).getServer()
                : trace.getServer()
                ;
  ServerResource             server=serverResolver.resolve(serverName);
  TraceAnalysis             res=new TraceAnalysis(trace, server, endPointAnalysis, extResources, errors, null);
  Set<TraceTag>            tags=locateTags(traceAccess, 
                        (EndPointAwareResource) res.getResource(ResourceType.APPLICATION_SERVER_END_POINT),
                        ListUtil.size(errors) > 0);
  res.addTags(tags);
  return res;
}
com.springsource.insight.intercept.traceTracegetServer

Popular methods of Trace

  • getRange
  • getRootFrame
  • getAllFramesOfType
  • getAppName
  • getId
  • getDate
  • getFirstFrameOfType
  • getTraceSource
  • addExternalResourceKeys
  • getEndpoint
  • getLabel
  • getTimestamp
  • getLabel,
  • getTimestamp,
  • isSensitive,
  • isTraceSourceAnalysisRequired,
  • newInstance,
  • setAppName,
  • setEndpoint,
  • setServer,
  • setTraceSource

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now