public class JmsOutputChannel extends Object implements OutputChannel
| Modifier and Type | Class and Description |
|---|---|
static class |
JmsOutputChannel.BrokerConnectionEntry |
protected class |
JmsOutputChannel.ConnectionTimer |
CloseAllChannels, InputChannels| Constructor and Description |
|---|
JmsOutputChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindWithClientEndpoint(Endpoint anEndpoint)
This method verifies that the destination (queue) exists.
|
void |
cancelTimers() |
AnalysisEngineController |
getAnalysisEngineController() |
org.apache.activemq.ActiveMQConnectionFactory |
getConnectionFactory() |
String |
getControllerInputEndpoint() |
String |
getName() |
String |
getServerURI() |
void |
initialize() |
void |
sendReply(InProcessCache.CacheEntry entry,
Endpoint anEndpoint) |
void |
sendReply(int aCommand,
Endpoint anEndpoint,
String aCasReferenceId,
boolean notifyOnJmsException) |
void |
sendReply(org.apache.uima.resource.metadata.ProcessingResourceMetaData aProcessingResourceMetadata,
Endpoint anEndpoint,
boolean serialize) |
void |
sendReply(Throwable t,
String aCasReferenceId,
String aParentCasReferenceId,
Endpoint anEndpoint,
int aCommand)
Sends JMS Reply Message to a given endpoint.
|
void |
sendRequest(int aCommand,
String aCasReferenceId,
Endpoint anEndpoint)
Sends request message to a delegate.
|
String |
serializeCAS(boolean isReply,
org.apache.uima.cas.CAS aCAS,
String aCasReferenceId,
String aSerializerKey)
Serializes CAS using indicated Serializer.
|
void |
setConnectionFactory(org.apache.activemq.ActiveMQConnectionFactory connectionFactory) |
void |
setController(AnalysisEngineController analysisEngineController) |
void |
setControllerInputEndpoint(String controllerInputEndpoint) |
protected void |
setFreeCasQueue(javax.jms.Destination destination) |
void |
setSecondaryInputQueue(String anEndpoint) |
void |
setServerURI(String aServerURI)
Sets the ActiveMQ Broker URI
|
void |
setServiceInputEndpoint(String anEnpoint) |
void |
stop() |
void |
stop(int channelsToClose) |
public void setServerURI(String aServerURI)
setServerURI in interface OutputChannelprotected void setFreeCasQueue(javax.jms.Destination destination)
public String getServerURI()
public void setConnectionFactory(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
connectionFactory - public void setServiceInputEndpoint(String anEnpoint)
public void setSecondaryInputQueue(String anEndpoint)
public org.apache.activemq.ActiveMQConnectionFactory getConnectionFactory()
public void initialize()
throws AsynchAEException
initialize in interface OutputChannelAsynchAEExceptionpublic String serializeCAS(boolean isReply, org.apache.uima.cas.CAS aCAS, String aCasReferenceId, String aSerializerKey) throws Exception
aCAS - - CAS instance to serializeaSerializerKey - - a key identifying which serializer to useExceptionpublic void bindWithClientEndpoint(Endpoint anEndpoint) throws Exception
bindWithClientEndpoint in interface OutputChannelExceptionpublic void sendRequest(int aCommand,
String aCasReferenceId,
Endpoint anEndpoint)
throws AsynchAEException
sendRequest in interface OutputChannelaCommand - - the type of request [Process|GetMeta]anEndpoint - - the destination where the delegate receives messagesAsynchAEExceptionpublic void sendReply(InProcessCache.CacheEntry entry, Endpoint anEndpoint) throws AsynchAEException
sendReply in interface OutputChannelAsynchAEExceptionpublic void sendReply(int aCommand,
Endpoint anEndpoint,
String aCasReferenceId,
boolean notifyOnJmsException)
throws AsynchAEException
sendReply in interface OutputChannelAsynchAEExceptionpublic void sendReply(Throwable t, String aCasReferenceId, String aParentCasReferenceId, Endpoint anEndpoint, int aCommand) throws AsynchAEException
sendReply in interface OutputChannelt - - Throwable to include in the reply messageanEndpoint - - an endpoint to receive the reply messageaCasReferenceId - - a unique CAS reference idAsynchAEExceptionpublic void sendReply(org.apache.uima.resource.metadata.ProcessingResourceMetaData aProcessingResourceMetadata,
Endpoint anEndpoint,
boolean serialize)
throws AsynchAEException
sendReply in interface OutputChannelaProcessingResourceMetadata - anEndpoint - serialize - AsynchAEExceptionpublic AnalysisEngineController getAnalysisEngineController()
public void setController(AnalysisEngineController analysisEngineController)
setController in interface OutputChannelpublic String getControllerInputEndpoint()
public void setControllerInputEndpoint(String controllerInputEndpoint)
public void stop()
stop in interface Channelstop in interface OutputChannelpublic void cancelTimers()
cancelTimers in interface OutputChannelCopyright © 2016. All rights reserved.