public class ManagedUimaService extends AbstractManagedService implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
ServiceStateNotificationAdapter.| Modifier and Type | Class and Description |
|---|---|
static class |
ManagedUimaService.UimaAEJmxMonitor |
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.uima.ducc.common.utils.DuccLogger |
logger |
currentState, ManagedServiceNotificationInterval, previousState, serviceAdapter, useJmx| Constructor and Description |
|---|
ManagedUimaService(String saxonJarPath,
String dd2SpringXslPath,
ServiceStateNotificationAdapter serviceAdapter,
org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(String[] args)
deploys UIMA AS service
|
org.apache.uima.ducc.common.utils.DuccLogger |
getLogger() |
String[] |
getServiceArgs(String[] args)
Returns UIMA AS service arguments: saxonURL, xslt parser
|
void |
killService() |
static void |
main(String[] args) |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
onServiceStateChange(org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState state) |
void |
quiesceAndStop() |
void |
setAgentStateUpdateEndpoint(String agentUpdateEndpoint) |
void |
setConfigFactory(UimaAsServiceConfiguration configFactory) |
void |
stopService() |
void |
terminate() |
void |
updateAgent(List<org.apache.uima.ducc.transport.agent.IUimaPipelineAEComponent> pipeline) |
getNotificationInterval, getServiceState, initialize, notifyAgentWithStatus, notifyAgentWithStatus, notifyAgentWithStatus, setNotificationInterval, start, stop, stopItadjustTransportEndpoint, cleanup, getContext, getLogLevel, getProcessJmxUrl, handleAdminEvent, handleUncaughtException, handleUncaughtException, isStopping, loadProperties, onDuccAdminKillEvent, reloadProperties, setContext, setLogLevel, setLogLevel, start, startJmxAgent, uncaughtException, validateAdministratorpublic ManagedUimaService(String saxonJarPath, String dd2SpringXslPath, ServiceStateNotificationAdapter serviceAdapter, org.apache.camel.CamelContext context)
public static void main(String[] args)
public org.apache.uima.ducc.common.utils.DuccLogger getLogger()
getLogger in interface org.apache.uima.ducc.common.component.DuccComponentpublic void onServiceStateChange(org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState state)
onServiceStateChange in interface ManagedServicepublic void setConfigFactory(UimaAsServiceConfiguration configFactory)
public void setAgentStateUpdateEndpoint(String agentUpdateEndpoint)
public void quiesceAndStop()
quiesceAndStop in class AbstractManagedServicepublic void terminate()
public void killService()
killService in interface ManagedServicepublic void stopService()
stopService in interface ManagedServicepublic String[] getServiceArgs(String[] args) throws Exception
args - - commandline argsExceptionpublic void deploy(String[] args) throws Exception
deploy in class AbstractManagedServiceExceptionpublic void updateAgent(List<org.apache.uima.ducc.transport.agent.IUimaPipelineAEComponent> pipeline)
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.