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

How to use
RemoveAllInstrumentationApplier
in
rocks.inspectit.server.instrumentation.config.applier

Best Java code snippets using rocks.inspectit.server.instrumentation.config.applier.RemoveAllInstrumentationApplier (Showing top 7 results out of 315)

origin: inspectIT/inspectIT

/**
 * Removes all instrumentation point from the given types.
 *
 * @param types
 *            to remove instrumentation points
 * @return types from which instrumentation points have been removed
 */
public Collection<? extends ImmutableClassType> removeInstrumentationPoints(final Collection<? extends ImmutableType> types) {
  return removeInstrumentationPoints(types, Collections.<IInstrumentationApplier> singleton(RemoveAllInstrumentationApplier.getInstance()));
}
origin: inspectIT/inspectIT

  @Test
  public void returnFalse() {
    boolean result = applier.addInstrumentationPoints(agentConfiguration, classType);
    assertThat(result, is(false));
    verifyZeroInteractions(agentConfiguration, classType);
  }
}
origin: inspectIT/inspectIT

  @Test(expectedExceptions = NullPointerException.class)
  public void nullClass() {
    try {
      when(classType.hasInstrumentationPoints()).thenReturn(false);
      applier.removeInstrumentationPoints(null);
    } finally {
      verifyZeroInteractions(classType, methodType);
    }
  }
}
origin: inspectIT/inspectIT

  @Test
  public void returnNull() {
    AbstractClassSensorAssignment<?> result = applier.getSensorAssignment();
    assertThat(result, is(nullValue()));
  }
}
origin: inspectIT/inspectIT

@Test
public void noInstrumentationPoints() {
  when(classType.hasInstrumentationPoints()).thenReturn(false);
  boolean result = applier.removeInstrumentationPoints(classType);
  assertThat(result, is(false));
  verify(classType).hasInstrumentationPoints();
  verifyNoMoreInteractions(classType);
}
origin: inspectIT/inspectIT

  @Test
  public void notNull() {
    RemoveAllInstrumentationApplier instance = RemoveAllInstrumentationApplier.getInstance();
    assertThat(instance, is(not(nullValue())));
  }
}
origin: inspectIT/inspectIT

@Test
public void removeInstrumentationPoints() {
  when(classType.hasInstrumentationPoints()).thenReturn(true);
  when(classType.getMethods()).thenReturn(Sets.newHashSet(methodType));
  boolean result = applier.removeInstrumentationPoints(classType);
  assertThat(result, is(true));
  verify(classType).hasInstrumentationPoints();
  verify(classType).getMethods();
  verify(methodType).setMethodInstrumentationConfig(null);
  verifyNoMoreInteractions(classType, methodType);
}
rocks.inspectit.server.instrumentation.config.applierRemoveAllInstrumentationApplier

Javadoc

Special IInstrumentationApplier that can remove instrumentation points from any class type passed to #removeInstrumentationPoints(ClassType).

This applier does not know how to add instrumentation points.

Most used methods

  • getInstance
    Gets #INSTANCE.
  • addInstrumentationPoints
    Always returns false when invoked as it can not add points.
  • getSensorAssignment
    Returns null because there is no assignment bounded to this type of instrumentation applier.
  • removeInstrumentationPoints
    Matches any class type.

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 17 Plugins for Android Studio
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