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

How to use
AgentFilterDataProcessor
in
rocks.inspectit.shared.cs.storage.processor.impl

Best Java code snippets using rocks.inspectit.shared.cs.storage.processor.impl.AgentFilterDataProcessor (Showing top 2 results out of 315)

origin: inspectIT/inspectIT

/**
 * Test that the agent filtering is correct.
 */
@Test
public void agentFilterDataProcessor() {
  AbstractDataProcessor abstractDataProcessor = mock(AbstractDataProcessor.class);
  AgentFilterDataProcessor dataProcessor = new AgentFilterDataProcessor(Collections.singletonList(abstractDataProcessor), Collections.singleton(10L));
  DefaultData data1 = mock(DefaultData.class);
  DefaultData data2 = mock(DefaultData.class);
  when(data1.getPlatformIdent()).thenReturn(10L);
  when(data2.getPlatformIdent()).thenReturn(20L);
  dataProcessor.process(data1);
  dataProcessor.process(data2);
  assertThat(dataProcessor.canBeProcessed(data1), is(true));
  assertThat(dataProcessor.canBeProcessed(data2), is(true));
  verify(abstractDataProcessor, times(1)).process(data1);
  verify(abstractDataProcessor, times(0)).process(data2);
}
origin: inspectIT/inspectIT

if (!selectAgentsWizardPage.isAllAgents()) {
  Set<Long> agentsIds = new HashSet<>(selectAgentsWizardPage.getSelectedAgents());
  AgentFilterDataProcessor agentFilterDataProcessor = new AgentFilterDataProcessor(recordingProcessors, agentsIds);
  recordingProcessors = new ArrayList<>(1);
  recordingProcessors.add(agentFilterDataProcessor);
rocks.inspectit.shared.cs.storage.processor.implAgentFilterDataProcessor

Javadoc

Processor that filters out data based on the agent id.

Most used methods

  • <init>
    Default constructor.
  • canBeProcessed
  • process

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • String (java.lang)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collectors (java.util.stream)
  • JFileChooser (javax.swing)
  • Join (org.hibernate.mapping)
  • Best plugins for Eclipse
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