Tabnine Logo
AbstractMessageProcessor.stopProcessor
Code IndexAdd Tabnine to your IDE (free)

How to use
stopProcessor
method
in
net.roboconf.messaging.api.AbstractMessageProcessor

Best Java code snippets using net.roboconf.messaging.api.AbstractMessageProcessor.stopProcessor (Showing top 6 results out of 315)

origin: roboconf/roboconf-platform

@After
public void terminateProcessor() {
  if( this.processor != null )
    this.processor.stopProcessor();
}
origin: net.roboconf/roboconf-agent

this.messagingClient.getMessageProcessor().stopProcessor();
this.messagingClient.getMessageProcessor().interrupt();
this.messagingClient.closeConnection();
origin: net.roboconf/roboconf-dm

this.messagingClient.getMessageProcessor().stopProcessor();
this.messagingClient.getMessageProcessor().interrupt();
try {
origin: roboconf/roboconf-platform

@After
public void releaseClients() throws Exception {
  for( ReconfigurableClient<?> client : this.clients ) {
    client.getMessageProcessor().stopProcessor();
    client.getMessageProcessor().interrupt();
    client.closeConnection();
  }
  this.clients.clear();
}
origin: roboconf/roboconf-platform

@Test
public void testStartAndStop() throws Exception {
  Assert.assertFalse( this.processor.isRunning());
  this.processor.start();
  Thread.sleep( 200 );
  Assert.assertTrue( this.processor.isRunning());
  this.processor.stopProcessor();;
  Thread.sleep( 200 );
  Assert.assertFalse( this.processor.isRunning());
}
origin: roboconf/roboconf-platform

@Test
public void testProcessing() throws Exception {
  // The message is processed...
  this.processor.start();
  this.processor.storeMessage( new MsgCmdResynchronize());
  Thread.sleep( 1000 );
  this.processor.stopProcessor();
  Assert.assertEquals( 0, this.processor.getMessageQueue().size());
}
net.roboconf.messaging.apiAbstractMessageProcessorstopProcessor

Javadoc

Stops the processor.

Popular methods of AbstractMessageProcessor

  • getMessageQueue
  • interrupt
  • start
  • isRunning
  • processMessage
    Processes a message.
  • setMessagingClient
    This method must be invoked before #start(). It is not recommended to change the messaging client on
  • storeMessage
    Stores a message so that it can be processed later.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • From CI to AI: The AI layer in your organization
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