Class UimaVmMessageListener
- java.lang.Object
-
- org.apache.uima.aae.spi.transport.vm.UimaVmMessageListener
-
- All Implemented Interfaces:
UimaMessageListener
public class UimaVmMessageListener extends java.lang.Object implements UimaMessageListener
-
-
Constructor Summary
Constructors Constructor Description UimaVmMessageListener(AnalysisEngineController aController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
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 interfaceUimaMessageListener
-
initialize
public void initialize(UimaAsContext context) throws java.lang.Exception
Initializes this listener. Instantiates and links message handlers. O- Specified by:
initialize
in interfaceUimaMessageListener
- Throws:
java.lang.Exception
-
startIt
public void startIt()
- Specified by:
startIt
in interfaceUimaMessageListener
-
stopIt
public void stopIt()
- Specified by:
stopIt
in interfaceUimaMessageListener
-
-