Codota Logo
BusinessContextRecognitionProcessor
Code IndexAdd Codota to your IDE (free)

How to use
BusinessContextRecognitionProcessor
in
rocks.inspectit.server.processor.impl

Best Java code snippets using rocks.inspectit.server.processor.impl.BusinessContextRecognitionProcessor (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
protected void processData(DefaultData defaultData, EntityManager entityManager) {
  InvocationSequenceData invocSequence = (InvocationSequenceData) defaultData;
  assignBusinessContext(invocSequence);
}
origin: inspectIT/inspectIT

@Test
public void invalidInputData() {
  TimerData invalidInput = new TimerData();
  processor.process(invalidInput, entityManager);
  verifyNoMoreInteractions(ciService);
}
origin: inspectIT/inspectIT

/**
 * Assigns the business context to the passed {@link InvocationSequenceData} instance.
 *
 * @param invocSequence
 *            {@link InvocationSequenceData} instance to assign the business context for.
 */
private void assignBusinessContext(InvocationSequenceData invocSequence) {
  List<ApplicationDefinition> applicationDefinitions = configurationInterfaceService.getApplicationDefinitions();
  ApplicationDefinition appDefinition = identify(invocSequence, applicationDefinitions);
  if (null == appDefinition) {
    appDefinition = ApplicationDefinition.DEFAULT_APPLICATION_DEFINITION;
  }
  ApplicationData application = businessContextRegistryService.registerApplication(appDefinition);
  invocSequence.setApplicationId(application.getId());
  BusinessTransactionDefinition businessTxDefinition = identify(invocSequence, appDefinition.getBusinessTransactionDefinitions());
  String businessTxName = businessTxDefinition.determineBusinessTransactionName(invocSequence, cachedDataService);
  BusinessTransactionData businessTransaction = businessContextRegistryService.registerBusinessTransaction(application, businessTxDefinition, businessTxName);
  invocSequence.setBusinessTransactionId(businessTransaction.getId());
}
origin: inspectIT/inspectIT

@Test
public void businessContextChanged() throws InterruptedException {
  StringMatchingExpression stringMatchingExpression = new StringMatchingExpression(PatternMatchingType.CONTAINS, "root");
  stringMatchingExpression.setStringValueSource(stringValueSource);
  stringMatchingExpression.setSearchNodeInTrace(false);
  StringMatchingExpression stringMatchingExpression_2 = new StringMatchingExpression(PatternMatchingType.CONTAINS, "node");
  stringMatchingExpression_2.setStringValueSource(stringValueSource);
  stringMatchingExpression_2.setSearchNodeInTrace(false);
  applicationDefinition.setMatchingRuleExpression(stringMatchingExpression);
  businessTxDefinition_1.setMatchingRuleExpression(stringMatchingExpression_2);
  processor.onApplicationEvent(event);
  assertThat(root.getApplicationId(), equalTo(application.getId()));
  assertThat(root.getBusinessTransactionId(), equalTo(businessTx_1.getId()));
}
origin: inspectIT/inspectIT

@Test
public void matchEmptyApplication() {
  StringMatchingExpression stringMatchingExpression = new StringMatchingExpression(PatternMatchingType.CONTAINS, "root");
  stringMatchingExpression.setStringValueSource(stringValueSource);
  stringMatchingExpression.setSearchNodeInTrace(false);
  StringMatchingExpression stringMatchingExpression_2 = new StringMatchingExpression(PatternMatchingType.CONTAINS, "nothing");
  stringMatchingExpression_2.setStringValueSource(stringValueSource);
  stringMatchingExpression_2.setSearchNodeInTrace(false);
  applicationDefinition.setMatchingRuleExpression(stringMatchingExpression_2);
  applicationDefinition_empty.setMatchingRuleExpression(stringMatchingExpression);
  processor.process(root, entityManager);
  assertThat(root.getApplicationId(), equalTo(application_empty.getId()));
  assertThat(root.getBusinessTransactionId(), equalTo(businessTx_unknown.getId()));
}
origin: inspectIT/inspectIT

@Test
public void match() {
  StringMatchingExpression stringMatchingExpression = new StringMatchingExpression(PatternMatchingType.CONTAINS, "root");
  stringMatchingExpression.setStringValueSource(stringValueSource);
  stringMatchingExpression.setSearchNodeInTrace(false);
  StringMatchingExpression stringMatchingExpression_2 = new StringMatchingExpression(PatternMatchingType.CONTAINS, "nothing");
  stringMatchingExpression_2.setStringValueSource(stringValueSource);
  stringMatchingExpression_2.setSearchNodeInTrace(false);
  applicationDefinition.setMatchingRuleExpression(stringMatchingExpression);
  applicationDefinition_empty.setMatchingRuleExpression(stringMatchingExpression_2);
  businessTxDefinition_1.setMatchingRuleExpression(stringMatchingExpression_2);
  businessTxDefinition_2.setMatchingRuleExpression(stringMatchingExpression);
  processor.process(root, entityManager);
  assertThat(root.getApplicationId(), equalTo(application.getId()));
  assertThat(root.getBusinessTransactionId(), equalTo(businessTx_2.getId()));
}
origin: inspectIT/inspectIT

@Test
public void matchDefaultBT() {
  StringMatchingExpression stringMatchingExpression = new StringMatchingExpression(PatternMatchingType.CONTAINS, "root");
  stringMatchingExpression.setStringValueSource(stringValueSource);
  stringMatchingExpression.setSearchNodeInTrace(false);
  StringMatchingExpression stringMatchingExpression_2 = new StringMatchingExpression(PatternMatchingType.CONTAINS, "nothing");
  stringMatchingExpression_2.setStringValueSource(stringValueSource);
  stringMatchingExpression_2.setSearchNodeInTrace(false);
  applicationDefinition.setMatchingRuleExpression(stringMatchingExpression);
  applicationDefinition_empty.setMatchingRuleExpression(stringMatchingExpression_2);
  businessTxDefinition_1.setMatchingRuleExpression(stringMatchingExpression_2);
  businessTxDefinition_2.setMatchingRuleExpression(stringMatchingExpression_2);
  processor.process(root, entityManager);
  assertThat(root.getApplicationId(), equalTo(application.getId()));
  assertThat(root.getBusinessTransactionId(), equalTo(businessTx_unknown.getId()));
}
origin: inspectIT/inspectIT

@Test
public void matchDefaultAppAndBT() {
  StringMatchingExpression stringMatchingExpression = new StringMatchingExpression(PatternMatchingType.CONTAINS, "nothing");
  stringMatchingExpression.setStringValueSource(stringValueSource);
  stringMatchingExpression.setSearchNodeInTrace(false);
  StringMatchingExpression stringMatchingExpression_2 = new StringMatchingExpression(PatternMatchingType.CONTAINS, "nothing");
  stringMatchingExpression_2.setStringValueSource(stringValueSource);
  stringMatchingExpression_2.setSearchNodeInTrace(false);
  applicationDefinition.setMatchingRuleExpression(stringMatchingExpression);
  applicationDefinition_empty.setMatchingRuleExpression(stringMatchingExpression_2);
  businessTxDefinition_1.setMatchingRuleExpression(stringMatchingExpression_2);
  businessTxDefinition_2.setMatchingRuleExpression(stringMatchingExpression_2);
  processor.process(root, entityManager);
  assertThat(root.getApplicationId(), equalTo(application_unknown.getId()));
  assertThat(root.getBusinessTransactionId(), equalTo(businessTx_unknown.getId()));
}
origin: inspectIT/inspectIT

@Test
public void matchWithSearchInTrace() {
  StringMatchingExpression stringMatchingExpression = new StringMatchingExpression(PatternMatchingType.CONTAINS, "multiple");
  stringMatchingExpression.setStringValueSource(stringValueSource);
  stringMatchingExpression.setSearchNodeInTrace(true);
  stringMatchingExpression.setMaxSearchDepth(2);
  StringMatchingExpression stringMatchingExpression_2 = new StringMatchingExpression(PatternMatchingType.CONTAINS, "nothing");
  stringMatchingExpression_2.setStringValueSource(stringValueSource);
  stringMatchingExpression_2.setSearchNodeInTrace(false);
  applicationDefinition.setMatchingRuleExpression(stringMatchingExpression);
  applicationDefinition_empty.setMatchingRuleExpression(stringMatchingExpression_2);
  businessTxDefinition_1.setMatchingRuleExpression(stringMatchingExpression_2);
  businessTxDefinition_2.setMatchingRuleExpression(stringMatchingExpression);
  processor.process(root, entityManager);
  assertThat(root.getApplicationId(), equalTo(application.getId()));
  assertThat(root.getBusinessTransactionId(), equalTo(businessTx_2.getId()));
}
rocks.inspectit.server.processor.implBusinessContextRecognitionProcessor

Javadoc

This processor enriches InvocationSequenceData instances (i.e. roots of invocation sequences) with business context information (i.e. corresponding application and business transaction).

Most used methods

  • assignBusinessContext
    Assigns the business context to the passed InvocationSequenceData instance.
  • identify
    Identifies a matching rule provider.
  • onApplicationEvent
  • process

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now