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, wait
getRegex, getServiceInfos, getType, getWeight, isEnable, isRead, setEnable, setRead
public CEPCore getCepCore()
public void setCepCore(CEPCore cepCore)
EventProcessor
setCepCore
in interface EventProcessor
public String getId()
EventProcessor
getId
in interface EventProcessor
getId
in interface ChannelInterface
public void setId(String id)
public boolean canProcess(String nodeString)
EventProcessor
canProcess
in interface EventProcessor
public List<EventFilter> getSendEventFilters()
public List<EventFilter> getReceiveEventFilters()
public List<EventListener> getSendEventListeners()
public List<EventListener> getReceiveEventListeners()
public void addSendEventListener(EventListener eventListener)
ChannelInterface
addSendEventListener
in interface ChannelInterface
public void addReceiveEventListener(EventListener eventListener)
ChannelInterface
addReceiveEventListener
in interface ChannelInterface
public void addSendEventFilter(EventFilter eventFilter)
ChannelInterface
addSendEventFilter
in interface ChannelInterface
public void addReceiveEventFilter(EventFilter eventFilter)
ChannelInterface
addReceiveEventFilter
in interface ChannelInterface
public void sendEvent(Event event)
ChannelInterface
sendEvent
in interface ChannelInterface
public void process(Event event)
process
in interface EventProcessor
protected abstract void receive(Event event)
public void start()
ChannelInterface
start
in interface ChannelInterface
public void stop()
ChannelInterface
stop
in interface ChannelInterface
Copyright © 2006–2018 TinyGroup. All rights reserved.