public class ServiceHttpChannelEventProcessorImpl extends AbstractEventProcessor implements Configuration
TYPE_LOCAL, TYPE_REMOTE
Constructor and Description |
---|
ServiceHttpChannelEventProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
config(XmlNode applicationConfig,
XmlNode componentConfig)
设置配置信息,应用配置和组件配置内容合并
|
XmlNode |
getApplicationConfig()
获取应用配置信息
|
String |
getApplicationNodePath()
获取在application.xml中配置对象的相对路径
|
XmlNode |
getComponentConfig()
获取组件配置信息
|
String |
getComponentConfigPath()
返回该配置对象组件配置的相对路径,相对于classpath的路径。
|
ServiceHttpChannelManager |
getManager() |
List<String> |
getRegex()
返回正则
|
List<ServiceInfo> |
getServiceInfos()
返回当前处理器中的所有服务
|
int |
getWeight()
返回处理权重
|
boolean |
isRead()
获取是否已被读取状态
|
void |
process(Event event)
处理事件
|
void |
setCepCore(CEPCore cepCore)
设置CEPCore
|
void |
setManager(ServiceHttpChannelManager manager) |
void |
setRead(boolean read)
设置读取状态,当刷新时,将此状态设置为false,当注册完成后,设置为true
|
canProcess, getId, getType, isEnable, setEnable
public ServiceHttpChannelEventProcessorImpl()
public void process(Event event)
EventProcessor
process
in interface EventProcessor
public String getApplicationNodePath()
Configuration
getApplicationNodePath
in interface Configuration
public String getComponentConfigPath()
Configuration
getComponentConfigPath
in interface Configuration
public void config(XmlNode applicationConfig, XmlNode componentConfig)
Configuration
config
in interface Configuration
applicationConfig
- 应用配置节点componentConfig
- 组件配置节点public XmlNode getComponentConfig()
Configuration
getComponentConfig
in interface Configuration
public XmlNode getApplicationConfig()
Configuration
getApplicationConfig
in interface Configuration
public void setCepCore(CEPCore cepCore)
EventProcessor
setCepCore
in interface EventProcessor
public List<ServiceInfo> getServiceInfos()
EventProcessor
getServiceInfos
in interface EventProcessor
public int getWeight()
EventProcessor
getWeight
in interface EventProcessor
public List<String> getRegex()
EventProcessor
getRegex
in interface EventProcessor
public boolean isRead()
EventProcessor
isRead
in interface EventProcessor
public void setRead(boolean read)
EventProcessor
setRead
in interface EventProcessor
public ServiceHttpChannelManager getManager()
public void setManager(ServiceHttpChannelManager manager)
Copyright © 2006–2018 TinyGroup. All rights reserved.