public class VmTransport extends Object implements UimaTransport
UimaMessageDispatcher to send messages to UimaMessageListener.| Constructor and Description |
|---|
VmTransport(UimaAsContext aContext,
AnalysisEngineController aController) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSpiListener(SpiListener listener)
This method registers a given
SpiListener instance with the SPI. |
void |
destroy() |
protected ThreadPoolExecutor |
getExecutorInstance() |
UimaMessageDispatcher |
getMessageDispatcher() |
UimaMessageDispatcher |
getUimaMessageDispatcher()
Returns SPI Dispatcher
|
UimaMessageDispatcher |
getUimaMessageDispatcher(String aKey) |
UimaMessageListener |
getUimaMessageListener() |
UimaVmMessage |
produceMessage() |
UimaVmMessage |
produceMessage(int aCommand,
int aMessageType,
String aMessageFrom) |
UimaVmMessageDispatcher |
produceUimaMessageDispatcher(UimaTransport aTransport) |
UimaMessageListener |
produceUimaMessageListener() |
void |
registerWithJMX(AnalysisEngineController aController,
String queueKind) |
void |
startIt()
This method is called to start SPI.
|
void |
stopIt()
This method is called to stop SPI.
|
public VmTransport(UimaAsContext aContext, AnalysisEngineController aController)
public void addSpiListener(SpiListener listener)
UimaTransportSpiListener instance 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.addSpiListener in interface UimaTransportlistener - - SPI listener to receive eventspublic UimaVmMessage produceMessage()
produceMessage in interface UimaTransportpublic UimaVmMessage produceMessage(int aCommand, int aMessageType, String aMessageFrom)
produceMessage in interface UimaTransportpublic void startIt()
throws UimaSpiException
UimaTransportstartIt in interface UimaTransportUimaSpiException - - any problems while starting the SPIpublic void stopIt()
throws UimaSpiException
UimaTransportstopIt in interface UimaTransportUimaSpiException - - any problems while stopping the SPIpublic void destroy()
protected ThreadPoolExecutor getExecutorInstance()
public void registerWithJMX(AnalysisEngineController aController, String queueKind)
registerWithJMX in interface UimaTransportpublic UimaMessageDispatcher getMessageDispatcher() throws UimaSpiException
UimaSpiExceptionpublic UimaMessageListener getUimaMessageListener()
getUimaMessageListener in interface UimaTransportpublic UimaMessageListener produceUimaMessageListener() throws UimaSpiException
produceUimaMessageListener in interface UimaTransportUimaSpiExceptionpublic UimaMessageDispatcher getUimaMessageDispatcher() throws UimaSpiException
UimaTransportgetUimaMessageDispatcher in interface UimaTransportUimaSpiException - - any problems while fetching Dispatcherpublic UimaMessageDispatcher getUimaMessageDispatcher(String aKey) throws UimaSpiException
getUimaMessageDispatcher in interface UimaTransportUimaSpiExceptionpublic UimaVmMessageDispatcher produceUimaMessageDispatcher(UimaTransport aTransport) throws UimaSpiException
produceUimaMessageDispatcher in interface UimaTransportUimaSpiExceptionCopyright © 2016. All rights reserved.