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 booleanaddSocketChannel(String strUserName, SelectableChannel ch, int nKey, boolean isBlock, CMMember loginUsers) static booleanbroadcastEvent(CMEvent cme, int opt, int nChNum, CMInfo cmInfo) static booleanbroadcastEvent(CMEvent cme, int opt, CMInfo cmInfo) static booleanbroadcastEvent(CMEvent cme, CMInfo cmInfo) static booleanstatic booleanstatic booleanstatic SelectableChannelfindSocketChannel(String strUserName, int nKey, boolean isBlock, CMMember loginUsers) static ByteBuffermarshallEvent(CMEvent cmEvent) static booleanmulticastEvent(CMEvent cme, String strSessionName, String strGroupName, CMInfo cmInfo) static booleanmulticastEvent(CMEvent cme, DatagramChannel dc, String strMA, int nPort, CMInfo cmInfo) static booleanremoveAllAddedSocketChannels(String strUserName, int nDefaultKey, boolean isBlock, CMMember loginUsers) static booleanremoveAllSocketChannels(String strUserName, boolean isBlock, CMMember loginUsers) static booleanremoveSocketChannel(String strUserName, SelectableChannel ch, int nKey, boolean isBlock, CMMember loginUsers) static booleanremoveSocketChannel(SelectableChannel ch, boolean isBlock, CMMember loginUsers) static CMEventReceiverstartReceivingEvent(CMInfo cmInfo) static booleanunicastEvent(CMEvent cme, String strReceiver, int opt, int nKey, boolean isBlock, CMInfo cmInfo) static booleanunicastEvent(CMEvent cme, String strReceiver, int opt, int nKey, int nRecvPort, boolean isBlock, CMInfo cmInfo) static booleanunicastEvent(CMEvent cme, String strReceiver, int opt, int nKey, CMInfo cmInfo) static booleanunicastEvent(CMEvent cme, String strReceiver, int opt, CMInfo cmInfo) static booleanunicastEvent(CMEvent cme, String strReceiver, CMInfo cmInfo) static booleanunicastEvent(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)
-