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

  • Start an intent from android
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Table (org.hibernate.mapping)
    A relational table
  • 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