Package kr.ac.konkuk.ccslab.cm.manager
Class CMFileTransferManager
java.lang.Object
kr.ac.konkuk.ccslab.cm.manager.CMFileTransferManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
cancelPullFile
(String strFileSender, CMInfo cmInfo) static boolean
cancelPushFile
(String strFileReceiver, CMInfo cmInfo) static String
getFileNameFromPath
(String strPath) static void
static boolean
isP2PFileTransfer
(CMFileEvent fe, CMInfo cmInfo) static long
mergeFiles
(String[] strSplitFiles, int nSplitNum, String strMergeFile) static boolean
processEvent
(CMMessage msg, CMInfo cmInfo) static boolean
pushFile
(String strFilePath, String strReceiver, byte byteFileAppend, int nContentID, CMInfo cmInfo) static boolean
static boolean
static boolean
replyPermitForPullFile
(CMFileEvent fe, int nReturnCode, CMInfo cmInfo) static boolean
replyPermitForPushFile
(CMFileEvent fe, int nReturnCode, CMInfo cmInfo) static boolean
requestPermitForPullFile
(String strFileName, String strFileOwner, byte byteFileAppend, int nContentID, CMInfo cmInfo) static boolean
requestPermitForPullFile
(String strFileName, String strFileOwner, byte byteFileAppend, CMInfo cmInfo) static boolean
requestPermitForPullFile
(String strFileName, String strFileOwner, CMInfo cmInfo) static boolean
requestPermitForPushFile
(String strFilePath, String strFileReceiver, byte byteFileAppend, int nContentID, CMInfo cmInfo) static boolean
requestPermitForPushFile
(String strFilePath, String strFileReceiver, byte byteFileAppend, CMInfo cmInfo) static boolean
requestPermitForPushFile
(String strFilePath, String strFileReceiver, CMInfo cmInfo) static boolean
sendSTART_FILE_TRANSFER_CHAN
(CMSendFileInfo sfInfo, CMInfo cmInfo) static void
splitFile
(RandomAccessFile srcFile, long lOffset, long lSplitSize, String strSplitFile) static void
-
Constructor Details
-
CMFileTransferManager
public CMFileTransferManager()
-
-
Method Details
-
init
-
terminate
-
requestPermitForPullFile
-
requestPermitForPullFile
-
requestPermitForPullFile
-
isP2PFileTransfer
-
replyPermitForPullFile
-
cancelPullFile
-
requestPermitForPushFile
-
requestPermitForPushFile
-
requestPermitForPushFile
-
replyPermitForPushFile
-
pushFile
-
pushFile
-
pushFile
-
sendSTART_FILE_TRANSFER_CHAN
-
cancelPushFile
-
splitFile
public static void splitFile(RandomAccessFile srcFile, long lOffset, long lSplitSize, String strSplitFile) -
mergeFiles
-
getFileNameFromPath
-
processEvent
-