org.apache.uima.aae.spi.transport.vm
Class UimaVmMessageListener

java.lang.Object
  extended by org.apache.uima.aae.spi.transport.vm.UimaVmMessageListener
All Implemented Interfaces:
UimaMessageListener

public class UimaVmMessageListener
extends java.lang.Object
implements UimaMessageListener


Constructor Summary
UimaVmMessageListener(AnalysisEngineController aController)
           
 
Method Summary
 void initialize(UimaAsContext context)
          Initializes this listener.
 void onMessage(UimaMessage aMessage)
          Called when a new message is sent from a collocated client.
 void startIt()
           
 void stopIt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UimaVmMessageListener

public UimaVmMessageListener(AnalysisEngineController aController)
Method Detail

onMessage

public void onMessage(UimaMessage aMessage)
Called when a new message is sent from a collocated client. Checks if the structure of the message is valid (contains required attributes) and passes it on to the message handler for processing.

Specified by:
onMessage in interface UimaMessageListener

initialize

public void initialize(UimaAsContext context)
                throws java.lang.Exception
Initializes this listener. Instantiates and links message handlers. O

Specified by:
initialize in interface UimaMessageListener
Throws:
java.lang.Exception

startIt

public void startIt()
Specified by:
startIt in interface UimaMessageListener

stopIt

public void stopIt()
Specified by:
stopIt in interface UimaMessageListener


Copyright © 2012. All Rights Reserved.