Class VmTransport
java.lang.Object
org.apache.uima.aae.spi.transport.vm.VmTransport
- All Implemented Interfaces:
UimaTransport
This class provides implementation for internal messaging between collocated Uima AS services. It
uses
UimaMessageDispatcher to send messages to UimaMessageListener.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSpiListener(SpiListener listener) This method registers a givenSpiListenerinstance with the SPI.voiddestroy()protected ThreadPoolExecutorReturns SPI DispatcherproduceMessage(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.
-
Constructor Details
-
VmTransport
-
-
Method Details
-
addSpiListener
Description copied from interface:UimaTransportThis 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.- Specified by:
addSpiListenerin interfaceUimaTransport- Parameters:
listener- - SPI listener to receive events
-
produceMessage
- Specified by:
produceMessagein interfaceUimaTransport
-
produceMessage
- Specified by:
produceMessagein interfaceUimaTransport
-
startIt
Description copied from interface:UimaTransportThis method is called to start SPI.- Specified by:
startItin interfaceUimaTransport- Throws:
UimaSpiException- - any problems while starting the SPI
-
stopIt
Description copied from interface:UimaTransportThis method is called to stop SPI.- Specified by:
stopItin interfaceUimaTransport- Throws:
UimaSpiException- - any problems while stopping the SPI
-
destroy
public void destroy() -
getExecutorInstance
-
registerWithJMX
- Specified by:
registerWithJMXin interfaceUimaTransport
-
getMessageDispatcher
- Throws:
UimaSpiException
-
getUimaMessageListener
- Specified by:
getUimaMessageListenerin interfaceUimaTransport
-
produceUimaMessageListener
- Specified by:
produceUimaMessageListenerin interfaceUimaTransport- Throws:
UimaSpiException
-
getUimaMessageDispatcher
Description copied from interface:UimaTransportReturns SPI Dispatcher- Specified by:
getUimaMessageDispatcherin interfaceUimaTransport- Returns:
- - instance of SPI Dispatcher
- Throws:
UimaSpiException- - any problems while fetching Dispatcher
-
getUimaMessageDispatcher
- Specified by:
getUimaMessageDispatcherin interfaceUimaTransport- Throws:
UimaSpiException
-
produceUimaMessageDispatcher
public UimaVmMessageDispatcher produceUimaMessageDispatcher(UimaTransport aTransport) throws UimaSpiException - Specified by:
produceUimaMessageDispatcherin interfaceUimaTransport- Throws:
UimaSpiException
-