Class EventMeshHTTPServer
- java.lang.Object
-
- org.apache.eventmesh.runtime.boot.AbstractRemotingServer
-
- org.apache.eventmesh.runtime.boot.AbstractHTTPServer
-
- org.apache.eventmesh.runtime.boot.EventMeshHTTPServer
-
public class EventMeshHTTPServer extends AbstractHTTPServer
-
-
Field Summary
Fields Modifier and Type Field Description java.util.concurrent.ThreadPoolExecutoradminExecutorjava.util.concurrent.ThreadPoolExecutorbatchMsgExecutorjava.util.concurrent.ThreadPoolExecutorclientManageExecutorcom.google.common.eventbus.EventBuseventBusHTTPClientPoolhttpClientPooljava.util.concurrent.ConcurrentHashMap<java.lang.String,java.util.List<Client>>localClientInfoMappingjava.util.concurrent.ConcurrentHashMap<java.lang.String,ConsumerGroupConf>localConsumerGroupMappingjava.util.concurrent.ThreadPoolExecutorpushMsgExecutorjava.util.concurrent.ThreadPoolExecutorremoteMsgExecutorjava.util.concurrent.ThreadPoolExecutorreplyMsgExecutorjava.util.concurrent.ThreadPoolExecutorsendMsgExecutorServiceStateserviceStatejava.util.concurrent.ThreadPoolExecutorwebhookExecutor-
Fields inherited from class org.apache.eventmesh.runtime.boot.AbstractHTTPServer
asyncContextCompleteHandler, defaultHttpDataFactory, eventProcessorTable, handlerService, httpLogger, httpServerLogger, metrics, processorTable, useTrace
-
Fields inherited from class org.apache.eventmesh.runtime.boot.AbstractRemotingServer
bossGroup, ioGroup, logger, port, workerGroup
-
-
Constructor Summary
Constructors Constructor Description EventMeshHTTPServer(EventMeshServer eventMeshServer, EventMeshHTTPConfiguration eventMeshHttpConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ThreadPoolExecutorgetAdminExecutor()java.util.concurrent.ThreadPoolExecutorgetBatchMsgExecutor()com.google.common.util.concurrent.RateLimitergetBatchRateLimiter()java.util.concurrent.ThreadPoolExecutorgetClientManageExecutor()ConsumerManagergetConsumerManager()com.google.common.eventbus.EventBusgetEventBus()EventMeshHTTPConfigurationgetEventMeshHttpConfiguration()EventMeshServergetEventMeshServer()HttpRetryergetHttpRetryer()com.google.common.util.concurrent.RateLimitergetMsgRateLimiter()ProducerManagergetProducerManager()java.util.concurrent.ThreadPoolExecutorgetPushMsgExecutor()RegistrygetRegistry()java.util.concurrent.ThreadPoolExecutorgetReplyMsgExecutor()java.util.concurrent.ThreadPoolExecutorgetSendMsgExecutor()ServiceStategetServiceState()voidinit()voidinitThreadPool()booleanregister()voidregisterHTTPRequestProcessor()voidshutdown()voidshutdownThreadPool()voidstart()-
Methods inherited from class org.apache.eventmesh.runtime.boot.AbstractHTTPServer
init, registerProcessor, registerProcessor, sendError, sendResponse
-
-
-
-
Field Detail
-
serviceState
public ServiceState serviceState
-
localConsumerGroupMapping
public final java.util.concurrent.ConcurrentHashMap<java.lang.String,ConsumerGroupConf> localConsumerGroupMapping
-
localClientInfoMapping
public final java.util.concurrent.ConcurrentHashMap<java.lang.String,java.util.List<Client>> localClientInfoMapping
-
eventBus
public com.google.common.eventbus.EventBus eventBus
-
batchMsgExecutor
public java.util.concurrent.ThreadPoolExecutor batchMsgExecutor
-
sendMsgExecutor
public java.util.concurrent.ThreadPoolExecutor sendMsgExecutor
-
remoteMsgExecutor
public java.util.concurrent.ThreadPoolExecutor remoteMsgExecutor
-
replyMsgExecutor
public java.util.concurrent.ThreadPoolExecutor replyMsgExecutor
-
pushMsgExecutor
public java.util.concurrent.ThreadPoolExecutor pushMsgExecutor
-
clientManageExecutor
public java.util.concurrent.ThreadPoolExecutor clientManageExecutor
-
adminExecutor
public java.util.concurrent.ThreadPoolExecutor adminExecutor
-
webhookExecutor
public java.util.concurrent.ThreadPoolExecutor webhookExecutor
-
httpClientPool
public HTTPClientPool httpClientPool
-
-
Constructor Detail
-
EventMeshHTTPServer
public EventMeshHTTPServer(EventMeshServer eventMeshServer, EventMeshHTTPConfiguration eventMeshHttpConfiguration)
-
-
Method Detail
-
getEventMeshServer
public EventMeshServer getEventMeshServer()
-
shutdownThreadPool
public void shutdownThreadPool() throws java.lang.Exception- Throws:
java.lang.Exception
-
initThreadPool
public void initThreadPool() throws java.lang.Exception- Throws:
java.lang.Exception
-
getBatchMsgExecutor
public java.util.concurrent.ThreadPoolExecutor getBatchMsgExecutor()
-
getSendMsgExecutor
public java.util.concurrent.ThreadPoolExecutor getSendMsgExecutor()
-
getReplyMsgExecutor
public java.util.concurrent.ThreadPoolExecutor getReplyMsgExecutor()
-
getPushMsgExecutor
public java.util.concurrent.ThreadPoolExecutor getPushMsgExecutor()
-
getClientManageExecutor
public java.util.concurrent.ThreadPoolExecutor getClientManageExecutor()
-
getAdminExecutor
public java.util.concurrent.ThreadPoolExecutor getAdminExecutor()
-
getMsgRateLimiter
public com.google.common.util.concurrent.RateLimiter getMsgRateLimiter()
-
getBatchRateLimiter
public com.google.common.util.concurrent.RateLimiter getBatchRateLimiter()
-
getRegistry
public Registry getRegistry()
-
init
public void init() throws java.lang.Exception- Throws:
java.lang.Exception
-
start
public void start() throws java.lang.Exception- Overrides:
startin classAbstractHTTPServer- Throws:
java.lang.Exception
-
shutdown
public void shutdown() throws java.lang.Exception- Overrides:
shutdownin classAbstractHTTPServer- Throws:
java.lang.Exception
-
register
public boolean register()
-
registerHTTPRequestProcessor
public void registerHTTPRequestProcessor()
-
getConsumerManager
public ConsumerManager getConsumerManager()
-
getProducerManager
public ProducerManager getProducerManager()
-
getServiceState
public ServiceState getServiceState()
-
getEventMeshHttpConfiguration
public EventMeshHTTPConfiguration getEventMeshHttpConfiguration()
-
getEventBus
public com.google.common.eventbus.EventBus getEventBus()
-
getHttpRetryer
public HttpRetryer getHttpRetryer()
-
-