|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.aae.spi.transport.vm.VmTransport
public class VmTransport
This class provides implementation for internal messaging between collocated Uima AS services. It
uses UimaMessageDispatcher to send messages to UimaMessageListener.
| Constructor Summary | |
|---|---|
VmTransport(UimaAsContext aContext,
AnalysisEngineController aController)
|
|
| Method Summary | |
|---|---|
void |
addSpiListener(SpiListener listener)
This method registers a given SpiListener instance with the SPI. |
void |
destroy()
|
protected java.util.concurrent.ThreadPoolExecutor |
getExecutorInstance()
|
UimaMessageDispatcher |
getMessageDispatcher()
|
UimaMessageDispatcher |
getUimaMessageDispatcher()
Returns SPI Dispatcher |
UimaMessageDispatcher |
getUimaMessageDispatcher(java.lang.String aKey)
|
UimaMessageListener |
getUimaMessageListener()
|
UimaVmMessage |
produceMessage()
|
UimaVmMessage |
produceMessage(int aCommand,
int aMessageType,
java.lang.String aMessageFrom)
|
UimaVmMessageDispatcher |
produceUimaMessageDispatcher(UimaTransport aTransport)
|
UimaMessageListener |
produceUimaMessageListener()
|
void |
registerWithJMX(AnalysisEngineController aController,
java.lang.String queueKind)
|
void |
startIt()
This method is called to start SPI. |
void |
stopIt()
This method is called to stop SPI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VmTransport(UimaAsContext aContext,
AnalysisEngineController aController)
| Method Detail |
|---|
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 UimaTransport
public UimaVmMessage produceMessage(int aCommand,
int aMessageType,
java.lang.String aMessageFrom)
produceMessage in interface UimaTransport
public void startIt()
throws UimaSpiException
UimaTransport
startIt in interface UimaTransportUimaSpiException - - any problems while starting the SPI
public void stopIt()
throws UimaSpiException
UimaTransport
stopIt in interface UimaTransportUimaSpiException - - any problems while stopping the SPIpublic void destroy()
protected java.util.concurrent.ThreadPoolExecutor getExecutorInstance()
public void registerWithJMX(AnalysisEngineController aController,
java.lang.String queueKind)
registerWithJMX in interface UimaTransport
public UimaMessageDispatcher getMessageDispatcher()
throws UimaSpiException
UimaSpiExceptionpublic UimaMessageListener getUimaMessageListener()
getUimaMessageListener in interface UimaTransport
public UimaMessageListener produceUimaMessageListener()
throws UimaSpiException
produceUimaMessageListener in interface UimaTransportUimaSpiException
public UimaMessageDispatcher getUimaMessageDispatcher()
throws UimaSpiException
UimaTransport
getUimaMessageDispatcher in interface UimaTransportUimaSpiException - - any problems while fetching Dispatcher
public UimaMessageDispatcher getUimaMessageDispatcher(java.lang.String aKey)
throws UimaSpiException
getUimaMessageDispatcher in interface UimaTransportUimaSpiException
public UimaVmMessageDispatcher produceUimaMessageDispatcher(UimaTransport aTransport)
throws UimaSpiException
produceUimaMessageDispatcher in interface UimaTransportUimaSpiException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||