public class ServiceAdapter extends Object implements ServiceStateNotificationAdapter
| Constructor and Description |
|---|
ServiceAdapter(org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher dispatcher,
String duccProcessId,
String endpoint)
JMS based adapter C'tor
|
| Modifier and Type | Method and Description |
|---|---|
void |
notifyAgentWithStatus(org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState state) |
void |
notifyAgentWithStatus(org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState state,
String message) |
void |
notifyAgentWithStatus(List<org.apache.uima.ducc.transport.agent.IUimaPipelineAEComponent> pipeline) |
void |
notifyAgentWithStatus(org.apache.uima.ducc.transport.agent.ProcessStateUpdate state)
Called on UIMA AS status change.
|
void |
stop() |
public ServiceAdapter(org.apache.uima.ducc.transport.dispatcher.DuccEventDispatcher dispatcher,
String duccProcessId,
String endpoint)
dispatcher - - initialized instance of DuccEventDispatcherduccProcessId - - unique ID assigned by Ducc infrastructurepublic void notifyAgentWithStatus(org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState state)
notifyAgentWithStatus in interface ServiceStateNotificationAdapterpublic void notifyAgentWithStatus(org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState state,
String message)
notifyAgentWithStatus in interface ServiceStateNotificationAdapterpublic void notifyAgentWithStatus(org.apache.uima.ducc.transport.agent.ProcessStateUpdate state)
ProcessStateUpdateDuccEvent message
via configured dispatcher to a configured endpoint.public void notifyAgentWithStatus(List<org.apache.uima.ducc.transport.agent.IUimaPipelineAEComponent> pipeline)
notifyAgentWithStatus in interface ServiceStateNotificationAdapterpublic void stop()
throws Exception
stop in interface ServiceStateNotificationAdapterExceptionCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.