Tabnine Logo
AssignmentFilterProvider
Code IndexAdd Tabnine to your IDE (free)

How to use
AssignmentFilterProvider
in
rocks.inspectit.server.instrumentation.config.filter

Best Java code snippets using rocks.inspectit.server.instrumentation.config.filter.AssignmentFilterProvider (Showing top 9 results out of 315)

origin: inspectIT/inspectIT

/**
 * Gets {@link AssignmentFilterProvider#getClassSensorAssignmentFilter()}.
 *
 * @return {@link AssignmentFilterProvider#getClassSensorAssignmentFilter()}
 */
protected ClassSensorAssignmentFilter getClassSensorAssignmentFilter() {
  return assignmentFilterProvider.getClassSensorAssignmentFilter();
}
origin: inspectIT/inspectIT

/**
 * Gets {@link AssignmentFilterProvider#getJmxSensorAssignmentFilter()}.
 *
 * @return {@link AssignmentFilterProvider#getJmxSensorAssignmentFilter()}
 */
protected JmxSensorAssignmentFilter getJmxSensorAssignmentFilter() {
  return assignmentFilterProvider.getJmxSensorAssignmentFilter();
}
origin: inspectIT/inspectIT

/**
 * Gets {@link AssignmentFilterProvider#getMethodsSensorAssignmentFilter()}.
 *
 * @return {@link AssignmentFilterProvider#getMethodSensorAssignmentFilter()}
 */
protected MethodSensorAssignmentFilter getMethodSensorAssignmentFilter() {
  return assignmentFilterProvider.getMethodSensorAssignmentFilter();
}
origin: inspectIT/inspectIT

@BeforeMethod
public void setup() {
  applier = new MethodSensorInstrumentationApplier(assignment, environment, registrationService);
  applier.assignmentFilterProvider = filterProvider;
  // filters to true by default
  when(filterProvider.getClassSensorAssignmentFilter()).thenReturn(classFilter);
  when(filterProvider.getMethodSensorAssignmentFilter()).thenReturn(methodFilter);
  when(methodFilter.matches(Matchers.<MethodSensorAssignment> any(), Matchers.<MethodType> any())).thenReturn(true);
  when(classFilter.matches(Matchers.<AbstractClassSensorAssignment<?>> any(), Matchers.<ClassType> any(), Matchers.eq(false))).thenReturn(true);
  // class to return one method
  when(classType.getMethods()).thenReturn(Collections.singleton(methodType));
}
origin: inspectIT/inspectIT

@BeforeMethod
public void setup() {
  applier = new TimerMethodSensorInstrumentationApplier(assignment, environment, registrationService);
  applier.assignmentFilterProvider = filterProvider;
  // filters to true by default
  when(filterProvider.getClassSensorAssignmentFilter()).thenReturn(classFilter);
  when(filterProvider.getMethodSensorAssignmentFilter()).thenReturn(methodFilter);
  when(methodFilter.matches(Matchers.<MethodSensorAssignment> any(), Matchers.<MethodType> any())).thenReturn(true);
  when(classFilter.matches(Matchers.<AbstractClassSensorAssignment<?>> any(), Matchers.<ClassType> any(), Matchers.eq(false))).thenReturn(true);
  // class to return one method
  when(classType.getMethods()).thenReturn(Collections.singleton(methodType));
}
origin: inspectIT/inspectIT

@BeforeMethod
public void setup() {
  applier = new InvocationStartMethodSensorInstrumentationApplier(assignment, environment, registrationService);
  applier.assignmentFilterProvider = filterProvider;
  // filters to true by default
  when(filterProvider.getClassSensorAssignmentFilter()).thenReturn(classFilter);
  when(filterProvider.getMethodSensorAssignmentFilter()).thenReturn(methodFilter);
  when(methodFilter.matches(Matchers.<MethodSensorAssignment> any(), Matchers.<MethodType> any())).thenReturn(true);
  when(classFilter.matches(Matchers.<AbstractClassSensorAssignment<?>> any(), Matchers.<ClassType> any(), Matchers.eq(false))).thenReturn(true);
  // class to return one method
  when(classType.getMethods()).thenReturn(Collections.singleton(methodType));
}
origin: inspectIT/inspectIT

@BeforeMethod
public void setup() {
  applier = new ExceptionSensorInstrumentationApplier(assignment, environment, registrationService);
  applier.assignmentFilterProvider = filterProvider;
  // filters to true by default
  when(filterProvider.getClassSensorAssignmentFilter()).thenReturn(classFilter);
  when(classFilter.matches(Matchers.<AbstractClassSensorAssignment<?>> any(), Matchers.<ClassType> any())).thenReturn(true);
  // class to return one method
  when(classType.getMethods()).thenReturn(Collections.singleton(methodType));
}
origin: inspectIT/inspectIT

@BeforeMethod
public void setup() {
  when(filterProvider.getJmxSensorAssignmentFilter()).thenReturn(filter);
}
origin: inspectIT/inspectIT

@BeforeMethod
public void setup() {
  applier = new SpecialInstrumentationApplier(assignment, environment, registrationService);
  applier.assignmentFilterProvider = filterProvider;
  // filters to true by default
  when(filterProvider.getClassSensorAssignmentFilter()).thenReturn(classFilter);
  when(filterProvider.getMethodSensorAssignmentFilter()).thenReturn(methodFilter);
  when(methodFilter.matches(Matchers.<MethodSensorAssignment> any(), Matchers.<MethodType> any())).thenReturn(true);
  when(classFilter.matches(Matchers.<AbstractClassSensorAssignment<?>> any(), Matchers.<ClassType> any(), Matchers.eq(false))).thenReturn(true);
  // class to return one method
  when(classType.getMethods()).thenReturn(Collections.singleton(methodType));
  when(methodType.getMethodCharacter()).thenReturn(Character.METHOD);
}
rocks.inspectit.server.instrumentation.config.filterAssignmentFilterProvider

Javadoc

Defaults for the class, method and jmx filters.

Most used methods

  • getClassSensorAssignmentFilter
    Gets #CLASS_SENSOR_ASSIGNMENT_FILTER.
  • getJmxSensorAssignmentFilter
    Gets #JMX_SENSOR_ASSIGNMENT_FILTER.
  • getMethodSensorAssignmentFilter
    Gets #METHOD_SENSOR_ASSIGNMENT_FILTER.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • getContentResolver (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JPanel (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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