public class UimacppServiceController extends AnalysisEngineControllerAdapter implements ControllerLifecycle, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
protected UimacppServiceManagement |
mbean |
protected ServerSocket |
server |
protected Process |
uimacppProcess |
AEInstanceCount, CasPoolSize| Constructor and Description |
|---|
UimacppServiceController(org.apache.uima.util.Logger uimaLogger,
String aeDescriptorFileName,
String queueName,
String mqHostName,
int mqPort,
String mqChannel,
String mqQueueMgr,
int numInstances,
Map<String,String> envVarMap,
int processCasErrorThreshhold,
int processCasErrorWindow,
boolean terminateOnCPCError,
JmxManagement jmxManagement) |
UimacppServiceController(org.apache.uima.util.Logger uimaLogger,
String aeDescriptorFileName,
String queueName,
String mqHostName,
int mqPort,
String mqChannel,
String mqQueueMgr,
int numInstances,
Map<String,String> envVarMap,
int processCasErrorThreshhold,
int processCasErrorWindow,
boolean terminateOnCPCError,
JmxManagement jmxManagement,
int initialFsHeapSize)
Configure and start a Uima C++ service that connects to an WebSphereMQ queue broker.
|
UimacppServiceController(String aeDescriptorFileName,
String queueName,
String brokerURL,
int numInstances,
int prefetchSize,
Map<String,String> envVarMap,
int processCasErrorThreshhold,
int processCasErrorWindow,
boolean terminateOnCPCError) |
UimacppServiceController(String aeDescriptorFileName,
String queueName,
String brokerURL,
int numInstances,
int prefetchSize,
Map<String,String> envVarMap,
int processCasErrorThreshhold,
int processCasErrorWindow,
boolean terminateOnCPCError,
int initialFsHeapSize)
Configure and start a Uima C++ service that connects to an ActiveMQ queue broker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addControllerCallbackListener(ControllerCallbackListener aListener)
Register one or more listeners through which the controller can send notification of events.
|
void |
destroy()
Runs when spring undeploys this bean.
|
void |
dumpState(StringBuffer buffer,
String lbl1) |
ArrayList<ControllerCallbackListener> |
getCallbackListeners() |
String |
getKey() |
String |
getStatistics() |
protected void |
handleConnection(Socket inSock) |
boolean |
isStopped()
Returns true if the AnalysisEngineController has been (or is in the process of) shutdown.
|
static void |
main(String[] args)
test
|
void |
quiesceAndStop() |
void |
removeControllerCallbackListener(ControllerCallbackListener aListener)
Removes named application listener.
|
void |
resetStatistics() |
void |
setStopped()
Called to set the state of the AnalysisEngineController to STOPPED.
|
void |
shutdown()
Shuts down the UIMA C++ service process.
|
void |
terminate()
Runs when UIMA EE client API undeploys this service.
|
addAbortedCasReferenceId, addEndpointToDoNotProcessList, addInputChannel, addServiceInfo, addTimeSnapshot, beginProcess, cacheClientEndpoint, changeState, collectionProcessComplete, dropCAS, dropCAS, dropStats, endProcess, evictExpiredEntries, forceTimeoutOnPendingCases, getAnalysisTime, getCasManagerWrapper, getCasStatistics, getChildUimaContext, getClientEndpoint, getComponentName, getControllerLatch, getCpuTime, getDeadClientMap, getErrorHandlerChain, getEventListener, getIdleTime, getIdleTimeBetweenProcessCalls, getIndex, getInProcessCache, getInputChannel, getInputChannel, getJmxContext, getJMXDomain, getLocalCache, getManagementInterface, getMonitor, getName, getOutputChannel, getParentController, getReplyInputChannel, getReplyTime, getServiceEndpointName, getServiceErrors, getServiceInfo, getServicePerformance, getState, getStats, getTime, getTimeSnapshot, getTransport, getTransport, getUimaEEAdminContext, getUimaMessageListener, handleDelegateLifeCycleEvent, incrementDeserializationTime, incrementSerializationTime, initialize, initializeVMTransport, isAwaitingCacheCallbackNotification, isCasMultiplier, isEndpointOnDontProcessList, isPrimitive, isTopLevelComponent, notifyListenersWithInitializationStatus, onInitialize, process, process, process, registerVmQueueWithJMX, releaseNextCas, saveReplyTime, saveTime, sendMetadata, setCasManager, setDeployDescriptor, setInputChannel, setOutputChannel, setUimaEEAdminContext, stop, takeActionprotected ServerSocket server
protected Process uimacppProcess
protected UimacppServiceManagement mbean
public UimacppServiceController(String aeDescriptorFileName, String queueName, String brokerURL, int numInstances, int prefetchSize, Map<String,String> envVarMap, int processCasErrorThreshhold, int processCasErrorWindow, boolean terminateOnCPCError, int initialFsHeapSize) throws org.apache.uima.resource.ResourceInitializationException
aeDescriptorFileName - - UIMA analysis engine descriptor file.queueName - - input queue namebrokerURL - - queue broker URLnumInstances - - number of instance of AEs to start in the service.prefetchSize - - number of message to prefetchenvVarMap - - enviroment variables to be set. These settings are valid only for the new process in
which C++ service will run.org.apache.uima.UIMAExceptionorg.apache.uima.resource.ResourceInitializationExceptionpublic UimacppServiceController(String aeDescriptorFileName, String queueName, String brokerURL, int numInstances, int prefetchSize, Map<String,String> envVarMap, int processCasErrorThreshhold, int processCasErrorWindow, boolean terminateOnCPCError) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationExceptionpublic UimacppServiceController(org.apache.uima.util.Logger uimaLogger,
String aeDescriptorFileName,
String queueName,
String mqHostName,
int mqPort,
String mqChannel,
String mqQueueMgr,
int numInstances,
Map<String,String> envVarMap,
int processCasErrorThreshhold,
int processCasErrorWindow,
boolean terminateOnCPCError,
JmxManagement jmxManagement,
int initialFsHeapSize)
throws org.apache.uima.resource.ResourceInitializationException
uimaLogger - aeDescriptorFileName - mqQueueName - mqHostName - mqPort - mqChannel - mqQueueMgr - numInstances - envVarMap - processCasErrorThreshhold - processCasErrorWindow - terminateOnCPCError - mBeanServer - org.apache.uima.resource.ResourceInitializationExceptionpublic UimacppServiceController(org.apache.uima.util.Logger uimaLogger,
String aeDescriptorFileName,
String queueName,
String mqHostName,
int mqPort,
String mqChannel,
String mqQueueMgr,
int numInstances,
Map<String,String> envVarMap,
int processCasErrorThreshhold,
int processCasErrorWindow,
boolean terminateOnCPCError,
JmxManagement jmxManagement)
throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationExceptionpublic void shutdown()
throws IOException,
InterruptedException
force - - force or allow service to shutdown gracefully.IOExceptionInterruptedExceptionpublic String getStatistics() throws IOException
IOExceptionpublic void resetStatistics()
throws IOException
IOExceptionprotected void handleConnection(Socket inSock) throws IOException
IOExceptionpublic static void main(String[] args)
args - public void terminate()
terminate in interface ControllerLifecycleterminate in class AnalysisEngineControllerAdapterpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanpublic void addControllerCallbackListener(ControllerCallbackListener aListener)
ControllerLifecycleaddControllerCallbackListener in interface ControllerLifecycleaddControllerCallbackListener in class AnalysisEngineControllerAdapteraListener - - application listener object to registerpublic void removeControllerCallbackListener(ControllerCallbackListener aListener)
ControllerLifecycleremoveControllerCallbackListener in interface ControllerLifecycleremoveControllerCallbackListener in class AnalysisEngineControllerAdapteraListener - - application listener to removepublic void quiesceAndStop()
quiesceAndStop in interface AnalysisEngineControllerquiesceAndStop in class AnalysisEngineControllerAdapterpublic boolean isStopped()
AnalysisEngineControllerisStopped in interface AnalysisEngineControllerisStopped in class AnalysisEngineControllerAdapterpublic void setStopped()
AnalysisEngineControllersetStopped in interface AnalysisEngineControllersetStopped in class AnalysisEngineControllerAdapterpublic ArrayList<ControllerCallbackListener> getCallbackListeners()
public String getKey()
getKey in interface AnalysisEngineControllerpublic void dumpState(StringBuffer buffer, String lbl1)
dumpState in interface AnalysisEngineControllerCopyright © 2016. All rights reserved.