public abstract class AbstractChannel extends Object implements ChannelInterface
TYPE_LOCAL, TYPE_REMOTE| Constructor and Description |
|---|
AbstractChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addReceiveEventFilter(EventFilter eventFilter)
添加接收事件过滤器
|
void |
addReceiveEventListener(EventListener eventListener)
添加接收事件监听器
|
void |
addSendEventFilter(EventFilter eventFilter)
添加发送事件过滤器
|
void |
addSendEventListener(EventListener eventListener)
添加发送事件监听器
|
boolean |
canProcess(String nodeString)
判断当前处理器是否能处理对应的节点
|
CEPCore |
getCepCore() |
String |
getId()
返回处理器ID,ID必须唯一
|
List<EventFilter> |
getReceiveEventFilters() |
List<EventListener> |
getReceiveEventListeners() |
List<EventFilter> |
getSendEventFilters() |
List<EventListener> |
getSendEventListeners() |
void |
process(Event event)
通道去处理一个事件
|
protected abstract void |
receive(Event event) |
void |
sendEvent(Event event)
发送事件
|
void |
setCepCore(CEPCore cepCore)
设置CEPCore
|
void |
setId(String id) |
void |
start()
开始通道
|
void |
stop()
通道停止
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRegex, getServiceInfos, getType, getWeight, isEnable, isRead, setEnable, setReadpublic CEPCore getCepCore()
public void setCepCore(CEPCore cepCore)
EventProcessorsetCepCore in interface EventProcessorpublic String getId()
EventProcessorgetId in interface EventProcessorgetId in interface ChannelInterfacepublic void setId(String id)
public boolean canProcess(String nodeString)
EventProcessorcanProcess in interface EventProcessorpublic List<EventFilter> getSendEventFilters()
public List<EventFilter> getReceiveEventFilters()
public List<EventListener> getSendEventListeners()
public List<EventListener> getReceiveEventListeners()
public void addSendEventListener(EventListener eventListener)
ChannelInterfaceaddSendEventListener in interface ChannelInterfacepublic void addReceiveEventListener(EventListener eventListener)
ChannelInterfaceaddReceiveEventListener in interface ChannelInterfacepublic void addSendEventFilter(EventFilter eventFilter)
ChannelInterfaceaddSendEventFilter in interface ChannelInterfacepublic void addReceiveEventFilter(EventFilter eventFilter)
ChannelInterfaceaddReceiveEventFilter in interface ChannelInterfacepublic void sendEvent(Event event)
ChannelInterfacesendEvent in interface ChannelInterfacepublic void process(Event event)
process in interface EventProcessorprotected abstract void receive(Event event)
public void start()
ChannelInterfacestart in interface ChannelInterfacepublic void stop()
ChannelInterfacestop in interface ChannelInterfaceCopyright © 2006–2018 TinyGroup. All rights reserved.