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

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

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

origin: net.roboconf/roboconf-agent

  @Override
  public String agentStatus() {

    StringBuilder sb = new StringBuilder();

    // Messages
    LinkedBlockingQueue<Message> agentQueue = this.messagingClient.getMessageProcessor().getMessageQueue();
    if( agentQueue.isEmpty() ) {
      sb.append( "There is no message being processed in agent queue\n" );

    } else {
      sb.append( "Agent " + getScopedInstancePath() + " (" + getApplicationName() + ")\n" );
      sb.append( "The number total of messages in agent queue is : " + agentQueue.size() + "\n" );
      sb.append( "The types of messages being processed are : " + "\n");
      for( Message msg : agentQueue ) {
        sb.append( msg.getClass().getSimpleName() + "\n" );
      }
    }

    // Running processes
    Process p = ProcessStore.getProcess(this.applicationName, this.scopedInstancePath);
    if( p != null )
      sb.append( "Be careful. A recipe is under execution." );
    else
      sb.append( "No recipe is under execution." );

    return sb.toString();
  }
}
origin: roboconf/roboconf-platform

if( rawClient != null ) {
  newMessagingClient = new JmxWrapperForMessagingClient( rawClient );
  newMessagingClient.setMessageQueue( this.messageProcessor.getMessageQueue());
  openConnection( newMessagingClient );
origin: net.roboconf/roboconf-messaging-api

if( rawClient != null ) {
  newMessagingClient = new JmxWrapperForMessagingClient( rawClient );
  newMessagingClient.setMessageQueue( this.messageProcessor.getMessageQueue());
  openConnection( newMessagingClient );
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.apiAbstractMessageProcessorgetMessageQueue

Popular methods of AbstractMessageProcessor

  • interrupt
  • stopProcessor
    Stops the processor.
  • 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

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • Kernel (java.awt.image)
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Notification (javax.management)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
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