Interface UimaTransport
- All Known Implementing Classes:
VmTransport
public interface UimaTransport
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSpiListener(SpiListener aListener) This method registers a givenSpiListenerinstance with the SPI.Returns SPI DispatchergetUimaMessageDispatcher(String aDelegateKey) produceMessage(int aCommand, int aMessageType, String aMessageFrom) produceUimaMessageDispatcher(UimaTransport aTransport) voidregisterWithJMX(AnalysisEngineController aController, String queueKind) voidstartIt()This method is called to start SPI.voidstopIt()This method is called to stop SPI.
-
Method Details
-
addSpiListener
This method registers a givenSpiListenerinstance with the SPI. The SPI will call all registered listeners when the initialization is completed, when the start is completed, and when the stop is completed.- Parameters:
aListener- - SPI listener to receive events
-
startIt
This method is called to start SPI.- Throws:
UimaSpiException- - any problems while starting the SPI
-
stopIt
This method is called to stop SPI.- Throws:
UimaSpiException- - any problems while stopping the SPI
-
getUimaMessageDispatcher
Returns SPI Dispatcher- Returns:
- - instance of SPI Dispatcher
- Throws:
UimaSpiException- - any problems while fetching Dispatcher
-
getUimaMessageListener
- Throws:
UimaSpiException
-
getUimaMessageDispatcher
- Throws:
UimaSpiException
-
produceUimaMessageListener
- Throws:
UimaSpiException
-
produceUimaMessageDispatcher
UimaMessageDispatcher produceUimaMessageDispatcher(UimaTransport aTransport) throws UimaSpiException - Throws:
UimaSpiException
-
produceMessage
UimaVmMessage produceMessage() -
produceMessage
-
registerWithJMX
-