public abstract class AbstractManagedService extends org.apache.uima.ducc.common.component.AbstractDuccComponent implements ManagedService
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState |
currentState |
static String |
ManagedServiceNotificationInterval |
protected org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState |
previousState |
ServiceStateNotificationAdapter |
serviceAdapter |
boolean |
useJmx |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractManagedService(ServiceStateNotificationAdapter serviceAdapter,
org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
deploy(String[] args) |
long |
getNotificationInterval() |
org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState |
getServiceState()
Returns state of this process( INITIALIZING, RUNNING, FAILED, STOPPED )
|
void |
initialize() |
void |
notifyAgentWithStatus(org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState state) |
void |
notifyAgentWithStatus(org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState state,
String message) |
void |
notifyAgentWithStatus(List<org.apache.uima.ducc.transport.agent.IUimaPipelineAEComponent> pipeline) |
abstract void |
quiesceAndStop() |
void |
setNotificationInterval(long notificationInterval) |
void |
start(org.apache.uima.ducc.common.main.DuccService service,
String[] args) |
void |
stop() |
protected void |
stopIt() |
adjustTransportEndpoint, cleanup, getContext, getLogLevel, getProcessJmxUrl, handleAdminEvent, handleUncaughtException, handleUncaughtException, isStopping, loadProperties, onDuccAdminKillEvent, reloadProperties, setContext, setLogLevel, setLogLevel, start, startJmxAgent, uncaughtException, validateAdministratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkillService, onServiceStateChange, stopServicepublic static final String ManagedServiceNotificationInterval
protected org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState currentState
protected org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState previousState
public boolean useJmx
public ServiceStateNotificationAdapter serviceAdapter
protected AbstractManagedService(ServiceStateNotificationAdapter serviceAdapter, org.apache.camel.CamelContext context)
public abstract void quiesceAndStop()
public long getNotificationInterval()
public void setNotificationInterval(long notificationInterval)
notificationInterval - the notificationInterval to setpublic void notifyAgentWithStatus(org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState state)
public void notifyAgentWithStatus(org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState state,
String message)
public void notifyAgentWithStatus(List<org.apache.uima.ducc.transport.agent.IUimaPipelineAEComponent> pipeline)
protected void stopIt()
public org.apache.uima.ducc.transport.event.common.IProcessState.ProcessState getServiceState()
public void start(org.apache.uima.ducc.common.main.DuccService service,
String[] args)
throws Exception
start in class org.apache.uima.ducc.common.component.AbstractDuccComponentExceptionpublic void stop()
stop in interface org.apache.uima.ducc.common.component.DuccLifecyclestop in class org.apache.uima.ducc.common.component.AbstractDuccComponentCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.