Package kr.ac.konkuk.ccslab.cm.manager
Class CMEventManager
java.lang.Object
kr.ac.konkuk.ccslab.cm.manager.CMEventManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addSocketChannel
(String strUserName, SelectableChannel ch, int nKey, boolean isBlock, CMMember loginUsers) static boolean
broadcastEvent
(CMEvent cme, int opt, int nChNum, CMInfo cmInfo) static boolean
broadcastEvent
(CMEvent cme, int opt, CMInfo cmInfo) static boolean
broadcastEvent
(CMEvent cme, CMInfo cmInfo) static boolean
static boolean
static boolean
static SelectableChannel
findSocketChannel
(String strUserName, int nKey, boolean isBlock, CMMember loginUsers) static ByteBuffer
marshallEvent
(CMEvent cmEvent) static boolean
multicastEvent
(CMEvent cme, String strSessionName, String strGroupName, CMInfo cmInfo) static boolean
multicastEvent
(CMEvent cme, DatagramChannel dc, String strMA, int nPort, CMInfo cmInfo) static boolean
removeAllAddedSocketChannels
(String strUserName, int nDefaultKey, boolean isBlock, CMMember loginUsers) static boolean
removeAllSocketChannels
(String strUserName, boolean isBlock, CMMember loginUsers) static boolean
removeSocketChannel
(String strUserName, SelectableChannel ch, int nKey, boolean isBlock, CMMember loginUsers) static boolean
removeSocketChannel
(SelectableChannel ch, boolean isBlock, CMMember loginUsers) static CMEventReceiver
startReceivingEvent
(CMInfo cmInfo) static boolean
unicastEvent
(CMEvent cme, String strReceiver, int opt, int nKey, boolean isBlock, CMInfo cmInfo) static boolean
unicastEvent
(CMEvent cme, String strReceiver, int opt, int nKey, int nRecvPort, boolean isBlock, CMInfo cmInfo) static boolean
unicastEvent
(CMEvent cme, String strReceiver, int opt, int nKey, CMInfo cmInfo) static boolean
unicastEvent
(CMEvent cme, String strReceiver, int opt, CMInfo cmInfo) static boolean
unicastEvent
(CMEvent cme, String strReceiver, CMInfo cmInfo) static boolean
unicastEvent
(CMEvent cme, SocketChannel sc, CMInfo cmInfo) static CMEvent
-
Constructor Details
-
CMEventManager
public CMEventManager()
-
-
Method Details
-
startReceivingEvent
-
marshallEvent
-
unmarshallEvent
-
unicastEvent
-
unicastEvent
-
unicastEvent
-
unicastEvent
-
unicastEvent
-
unicastEvent
-
multicastEvent
-
multicastEvent
public static boolean multicastEvent(CMEvent cme, DatagramChannel dc, String strMA, int nPort, CMInfo cmInfo) -
broadcastEvent
-
broadcastEvent
-
broadcastEvent
-
castEvent
-
castEvent
-
castEvent
-
addSocketChannel
public static boolean addSocketChannel(String strUserName, SelectableChannel ch, int nKey, boolean isBlock, CMMember loginUsers) -
removeSocketChannel
public static boolean removeSocketChannel(String strUserName, SelectableChannel ch, int nKey, boolean isBlock, CMMember loginUsers) -
removeSocketChannel
public static boolean removeSocketChannel(SelectableChannel ch, boolean isBlock, CMMember loginUsers) -
removeAllSocketChannels
-
removeAllAddedSocketChannels
-
findSocketChannel
public static SelectableChannel findSocketChannel(String strUserName, int nKey, boolean isBlock, CMMember loginUsers)
-