public class ClusterEventControl extends Object implements JDSEventDispatcher
Title: JDS系统管理系统
Description: 服务系统事件控制核心,所有引擎事件都在这里中转处理
Copyright: Copyright (c) 2020
Company: www.justdos.net
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<String,Long> |
dataEventMap |
static Map<String,ExpressionTempBean> |
listenerBeanMap |
static Map<Class,List<ExpressionTempBean>> |
listenerMap |
| 限定符 | 构造器和说明 |
|---|---|
protected |
ClusterEventControl() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> void |
dispatchClusterEvent(String objStr,
String eventName,
String event,
String systemCode) |
void |
dispatchEvent(JDSEvent event)
分发事件方法,实现此方法的类需要根据事件类型决定如何分发和处理此事件!
|
void |
dispatchServerEvent(ServerEvent event)
分发服务器事件
|
void |
dispatchServiceEvent(ServiceEvent event) |
static ClusterEventControl |
getInstance() |
static List<ExpressionTempBean> |
getListenerTempBeanByType(Class<? extends EventListener> listenerClass) |
boolean |
repeatEvent(JDSEvent event,
String msgId) |
public static Map<Class,List<ExpressionTempBean>> listenerMap
public static Map<String,ExpressionTempBean> listenerBeanMap
public static ClusterEventControl getInstance()
public void dispatchEvent(JDSEvent event) throws JDSException
JDSEventDispatcherdispatchEvent 在接口中 JDSEventDispatcherJDSExceptionpublic void dispatchServerEvent(ServerEvent event) throws JDSException
event - 核心活动事件JDSExceptionpublic void dispatchServiceEvent(ServiceEvent event) throws JDSException
JDSExceptionpublic boolean repeatEvent(JDSEvent event, String msgId) throws JDSException
JDSExceptionpublic <T> void dispatchClusterEvent(String objStr, String eventName, String event, String systemCode) throws JDSException
JDSExceptionpublic static List<ExpressionTempBean> getListenerTempBeanByType(Class<? extends EventListener> listenerClass)
Copyright © 2023 onecode. All rights reserved.