Codota Logo
IAgentService.analyzeJmxAttributes
Code IndexAdd Codota to your IDE (free)

How to use
analyzeJmxAttributes
method
in
rocks.inspectit.shared.all.cmr.service.IAgentService

Best Java code snippets using rocks.inspectit.shared.all.cmr.service.IAgentService.analyzeJmxAttributes (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: inspectIT/inspectIT

  @Override
  protected Collection<JmxAttributeDescriptor> performRemoteCall(IAgentService service) throws Exception {
    return agentService.analyzeJmxAttributes(platformIdent, descriptors);
  }
};
origin: inspectIT/inspectIT

@Test
public void analyzeJmxAttributes() throws Exception {
  Collection<JmxAttributeDescriptor> result = mock(Collection.class);
  when(client.isConnected()).thenReturn(true);
  doReturn(result).when(agentService).analyzeJmxAttributes(anyLong(), Matchers.<Collection<JmxAttributeDescriptor>> any());
  long id = 7;
  Collection<JmxAttributeDescriptor> descriptors = Collections.emptyList();
  Collection<JmxAttributeDescriptor> receivedResult = connection.analyzeJmxAttributes(id, descriptors);
  assertThat(receivedResult, is(result));
  verify(agentService, times(1)).analyzeJmxAttributes(id, descriptors);
  verifyNoMoreInteractions(agentService);
}
origin: inspectIT/inspectIT

@Test(expectedExceptions = { BusinessException.class })
public void businessException() throws Exception {
  when(client.isConnected()).thenReturn(true);
  doThrow(BusinessException.class).when(agentService).analyzeJmxAttributes(anyLong(), Matchers.<Collection<JmxAttributeDescriptor>> any());
  long id = 7;
  Collection<JmxAttributeDescriptor> descriptors = Collections.emptyList();
  try {
    connection.analyzeJmxAttributes(id, descriptors);
  } finally {
    verify(agentService, times(1)).analyzeJmxAttributes(id, descriptors);
    verifyNoMoreInteractions(agentService);
  }
}
origin: inspectIT/inspectIT

@Test(expectedExceptions = { ServerUnavailableException.class })
public void timeout() throws Exception {
  when(client.isConnected()).thenReturn(true);
  doThrow(TimeoutException.class).when(agentService).analyzeJmxAttributes(anyLong(), Matchers.<Collection<JmxAttributeDescriptor>> any());
  long id = 7;
  Collection<JmxAttributeDescriptor> descriptors = Collections.emptyList();
  try {
    connection.analyzeJmxAttributes(id, descriptors);
  } catch (ServerUnavailableException e) {
    assertThat(e.isServerTimeout(), is(true));
    throw e;
  } finally {
    verify(agentService, times(1)).analyzeJmxAttributes(id, descriptors);
    verifyNoMoreInteractions(agentService);
  }
}
origin: inspectIT/inspectIT

@Test(expectedExceptions = { ServerUnavailableException.class })
public void remoteException() throws Exception {
  when(client.isConnected()).thenReturn(true);
  doThrow(RuntimeException.class).when(agentService).analyzeJmxAttributes(anyLong(), Matchers.<Collection<JmxAttributeDescriptor>> any());
  long id = 7;
  Collection<JmxAttributeDescriptor> descriptors = Collections.emptyList();
  try {
    connection.analyzeJmxAttributes(id, descriptors);
  } catch (ServerUnavailableException e) {
    assertThat(e.isServerTimeout(), is(false));
    throw e;
  } finally {
    // fail fast call, only one attempt
    verify(agentService, times(1)).analyzeJmxAttributes(id, descriptors);
    verifyNoMoreInteractions(agentService);
    verify(client).close();
  }
}
rocks.inspectit.shared.all.cmr.serviceIAgentServiceanalyzeJmxAttributes

Javadoc

Analyzes the given JmxAttributeDescriptor and decides which ones will be monitored, based on the current configuration.

Popular methods of IAgentService

  • analyze
    Analyzes the given type and adds instrumentation points if necessary, returning the instrumentation
  • fetchAgentMessages
    Fetches all IAgentMessage which are available at the CMR. The returned list is an ordered list, orde
  • instrumentationApplied
    Informs the CMR that the methods have been instrumented on the agent.
  • register
    Registers the agent with the CMR. The CMR will answer with the AgentConfig containing all necessary
  • unregister
    Unregisters the platform in the CMR by sending the agent id.

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • startActivity (Activity)
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JTable (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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