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