public class UIMA_Service extends Object implements org.springframework.context.ApplicationListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
serviceInitializationCompleted |
protected boolean |
serviceInitializationException |
protected Object |
serviceMonitor |
Constructor and Description |
---|
UIMA_Service() |
Modifier and Type | Method and Description |
---|---|
SpringContainerDeployer |
deploy(String[] springContextFiles)
Deploy Spring context files in a Spring Container.
|
SpringContainerDeployer |
deploy(String[] springContextFiles,
org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent> listener) |
protected void |
finalize() |
String[] |
initialize(String[] args)
Parse command args, run dd2spring on the deployment descriptors to generate Spring context
files.
|
static void |
main(String[] args)
The main routine for starting the deployment of a UIMA-AS instance.
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
startMonitor(long samplingFrequency)
Creates an instance of a
JmxMonitor , initializes it with the JMX Server URI and
checkpoint frequency, and finally starts the monitor. |
void |
stopMonitor()
Creates an instance of a
JmxMonitor , initializes it with the JMX Server URI and
checkpoint frequency, and finally starts the monitor. |
protected boolean serviceInitializationCompleted
protected boolean serviceInitializationException
protected Object serviceMonitor
public String[] initialize(String[] args) throws Exception
args
- - command line argumentsException
public SpringContainerDeployer deploy(String[] springContextFiles, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent> listener) throws Exception
Exception
public SpringContainerDeployer deploy(String[] springContextFiles) throws Exception
springContextFiles
- - array of Spring context filesException
public void startMonitor(long samplingFrequency) throws Exception
JmxMonitor
, initializes it with the JMX Server URI and
checkpoint frequency, and finally starts the monitor.samplingFrequency
- - how often the JmxMonitor should checkpoint to fetch service metricsException
- - error on monitor initialization or startuppublic void stopMonitor() throws Exception
JmxMonitor
, initializes it with the JMX Server URI and
checkpoint frequency, and finally starts the monitor.Exception
- - error on monitor initialization or startuppublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
public static void main(String[] args)
args
- Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.