Class UIMA_Service
java.lang.Object
org.apache.uima.adapter.jms.service.UIMA_Service
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeploy Spring context files in a Spring Container.protected void
finalize()
String[]
initialize
(String[] args) Parse command args, run dd2spring on the deployment descriptors to generate Spring context files.static void
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 aJmxMonitor
, initializes it with the JMX Server URI and checkpoint frequency, and finally starts the monitor.
-
Field Details
-
serviceInitializationCompleted
protected boolean serviceInitializationCompleted -
serviceInitializationException
protected boolean serviceInitializationException -
serviceMonitor
-
-
Constructor Details
-
UIMA_Service
public UIMA_Service()
-
-
Method Details
-
initialize
Parse command args, run dd2spring on the deployment descriptors to generate Spring context files.- Parameters:
args
- - command line arguments- Returns:
- - an array of Spring context files generated from provided deployment descriptors
- Throws:
Exception
-
deploy
Deploy Spring context files in a Spring Container.- Parameters:
springContextFiles
- - array of Spring context files- Throws:
Exception
-
startMonitor
Creates an instance of aJmxMonitor
, initializes it with the JMX Server URI and checkpoint frequency, and finally starts the monitor.- Parameters:
samplingFrequency
- - how often the JmxMonitor should checkpoint to fetch service metrics- Throws:
Exception
- - error on monitor initialization or startup
-
finalize
protected void finalize() -
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener
-
main
The main routine for starting the deployment of a UIMA-AS instance. The args are either: 1 or more "paths" to Spring XML descriptors representing the information needed or some number of parameters, preceeded by a "-" sign. If the first arg doesn't start with a "-" it is presumed to be the first format. For the 2nd style, the arguments are: -saxonURL a-URL-to-the-saxon-jar usually starting with "file:", -xslt path-to-the-dd2spring.xsl file, -d path-to-UIMA-deployment-descriptor [-d path-to-another-dd ...] these arguments may be in any order) For the 3rd style, like #2 but with multiple dd-files following a single -dd Useful for calling from scripts.- Parameters:
args
-
-