Codota Logo
AgentInstrumentationMessageGate.clear
Code IndexAdd Codota to your IDE (free)

How to use
clear
method
in
rocks.inspectit.server.messaging.AgentInstrumentationMessageGate

Best Java code snippets using rocks.inspectit.server.messaging.AgentInstrumentationMessageGate.clear (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: inspectIT/inspectIT

/**
 * Handles an event of type {@link AgentRegisteredEvent}.
 *
 * @param event
 *            the event instance
 */
private void handleAgentRegisteredEvent(AgentRegisteredEvent event) {
  clear(event.getPlatformId());
}
origin: inspectIT/inspectIT

/**
 * Handles an event of type {@link AgentDeletedEvent}.
 *
 * @param event
 *            the event instance
 */
private void handleAgentDeletedEvent(AgentDeletedEvent event) {
  clear(event.getPlatformId());
}
origin: inspectIT/inspectIT

@Test
public void successful() throws Exception {
  when(definition.getClassName()).thenReturn("class.one");
  ClassInstrumentationChangedEvent event = new ClassInstrumentationChangedEvent(this, 10L, Arrays.asList(definition));
  messageGate.onApplicationEvent(event);
  messageGate.clear(10L);
  verifyZeroInteractions(messageProvider);
  assertThat(getDefinitionBuffer().get(10L).entrySet(), hasSize(0));
}
origin: inspectIT/inspectIT

  @Test
  public void unknownPlatformId() throws Exception {
    when(definition.getClassName()).thenReturn("class.one");
    ClassInstrumentationChangedEvent event = new ClassInstrumentationChangedEvent(this, 10L, Arrays.asList(definition));
    messageGate.onApplicationEvent(event);
    messageGate.clear(20L);
    verifyZeroInteractions(messageProvider);
    assertThat(getDefinitionBuffer().get(10L).entrySet(), hasSize(1));
  }
}
rocks.inspectit.server.messagingAgentInstrumentationMessageGateclear

Javadoc

Removes all InstrumentationDefinition which have been stored to send to the agent in a later point of time.

Popular methods of AgentInstrumentationMessageGate

  • flush
    Creates an UpdatedInstrumentationMessage which contains all stored InstrumentationDefinition. The cr
  • handleAgentDeletedEvent
    Handles an event of type AgentDeletedEvent.
  • handleAgentRegisteredEvent
    Handles an event of type AgentRegisteredEvent.
  • handleClassInstrumentationChangedEvent
    Handles an event of type ClassInstrumentationChangedEvent.
  • onApplicationEvent

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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