|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.adapter.jms.service.UIMA_Service
public class UIMA_Service
Field Summary | |
---|---|
protected boolean |
serviceInitializationCompleted
|
protected boolean |
serviceInitializationException
|
protected Object |
serviceMonitor
|
Constructor Summary | |
---|---|
UIMA_Service()
|
Method Summary | |
---|---|
SpringContainerDeployer |
deploy(String[] springContextFiles)
Deploy 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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean serviceInitializationCompleted
protected boolean serviceInitializationException
protected Object serviceMonitor
Constructor Detail |
---|
public UIMA_Service()
Method Detail |
---|
public String[] initialize(String[] args) throws Exception
args
- - command line arguments
Exception
public SpringContainerDeployer deploy(String[] springContextFiles) throws Exception
springContextFiles
- - array of Spring context files
Exception
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 metrics
Exception
- - 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.
samplingFrequency
- - how often the JmxMonitor should checkpoint to fetch service metrics
Exception
- - error on monitor initialization or startupprotected void finalize()
finalize
in class Object
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
public static void main(String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |