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

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

Best Java code snippets using rocks.inspectit.shared.all.cmr.service.IAgentService.unregister (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 Void performRemoteCall(IAgentService service) throws Exception {
    service.unregister(platformIdent);
    return null;
  }
};
origin: inspectIT/inspectIT

@Test(expectedExceptions = { BusinessException.class })
public void businessException() throws Exception {
  when(client.isConnected()).thenReturn(true);
  doThrow(BusinessException.class).when(agentService).unregister(anyLong());
  long platformId = 10L;
  try {
    connection.unregister(platformId);
  } finally {
    verify(agentService, times(1)).unregister(platformId);
    verifyNoMoreInteractions(agentService);
  }
}
origin: inspectIT/inspectIT

@Test
public void unregister() throws Exception {
  when(client.isConnected()).thenReturn(true);
  long platformId = 10L;
  connection.unregister(platformId);
  verify(agentService, times(1)).unregister(platformId);
  verifyNoMoreInteractions(agentService);
}
origin: inspectIT/inspectIT

@Test(expectedExceptions = { ServerUnavailableException.class })
public void timeout() throws Exception {
  when(client.isConnected()).thenReturn(true);
  doThrow(TimeoutException.class).when(agentService).unregister(anyLong());
  long platformId = 10L;
  try {
    connection.unregister(platformId);
  } catch (ServerUnavailableException e) {
    assertThat(e.isServerTimeout(), is(true));
    throw e;
  } finally {
    verify(agentService, times(1)).unregister(platformId);
    verifyNoMoreInteractions(agentService);
  }
}
origin: inspectIT/inspectIT

@Test(expectedExceptions = { ServerUnavailableException.class })
public void remoteException() throws Exception {
  when(client.isConnected()).thenReturn(true);
  doThrow(RuntimeException.class).when(agentService).unregister(anyLong());
  long platformId = 10L;
  try {
    connection.unregister(platformId);
  } catch (ServerUnavailableException e) {
    assertThat(e.isServerTimeout(), is(false));
    throw e;
  } finally {
    // fail fast call, only one attempt
    verify(agentService, times(1)).unregister(platformId);
    verifyNoMoreInteractions(agentService);
    verify(client).close();
  }
}
rocks.inspectit.shared.all.cmr.serviceIAgentServiceunregister

Javadoc

Unregisters the platform in the CMR by sending the agent id.

Popular methods of IAgentService

  • analyze
    Analyzes the given type and adds instrumentation points if necessary, returning the instrumentation
  • analyzeJmxAttributes
    Analyzes the given JmxAttributeDescriptor and decides which ones will be monitored, based on the cur
  • 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

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JTable (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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