org.apache.uima.adapter.jms.service
public class UIMA_Service extends java.lang.Object implements org.springframework.context.ApplicationListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
serviceInitializationCompleted |
protected boolean |
serviceInitializationException |
protected java.lang.Object |
serviceMonitor |
Constructor and Description |
---|
UIMA_Service() |
Modifier and Type | Method and Description |
---|---|
SpringContainerDeployer |
deploy(java.lang.String[] springContextFiles)
Deploy Spring context files in a Spring Container.
|
protected void |
finalize() |
java.lang.String[] |
initialize(java.lang.String[] args)
Parse command args, run dd2spring on the deployment descriptors to generate Spring context
files.
|
static void |
main(java.lang.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. |
protected boolean serviceInitializationCompleted
protected boolean serviceInitializationException
protected java.lang.Object serviceMonitor
public java.lang.String[] initialize(java.lang.String[] args) throws java.lang.Exception
args
- - command line argumentsjava.lang.Exception
public SpringContainerDeployer deploy(java.lang.String[] springContextFiles) throws java.lang.Exception
springContextFiles
- - array of Spring context filesjava.lang.Exception
public void startMonitor(long samplingFrequency) throws java.lang.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 metricsjava.lang.Exception
- - error on monitor initialization or startupprotected void finalize()
finalize
in class java.lang.Object
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
public static void main(java.lang.String[] args)
args
- Copyright © 2014. All Rights Reserved.