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 booleancancelPullFile(String strFileSender, CMInfo cmInfo) static booleancancelPushFile(String strFileReceiver, CMInfo cmInfo) static StringgetFileNameFromPath(String strPath) static voidstatic booleanisP2PFileTransfer(CMFileEvent fe, CMInfo cmInfo) static longmergeFiles(String[] strSplitFiles, int nSplitNum, String strMergeFile) static booleanprocessEvent(CMMessage msg, CMInfo cmInfo) static booleanpushFile(String strFilePath, String strReceiver, byte byteFileAppend, int nContentID, CMInfo cmInfo) static booleanstatic booleanstatic booleanreplyPermitForPullFile(CMFileEvent fe, int nReturnCode, CMInfo cmInfo) static booleanreplyPermitForPushFile(CMFileEvent fe, int nReturnCode, CMInfo cmInfo) static booleanrequestPermitForPullFile(String strFileName, String strFileOwner, byte byteFileAppend, int nContentID, CMInfo cmInfo) static booleanrequestPermitForPullFile(String strFileName, String strFileOwner, byte byteFileAppend, CMInfo cmInfo) static booleanrequestPermitForPullFile(String strFileName, String strFileOwner, CMInfo cmInfo) static booleanrequestPermitForPushFile(String strFilePath, String strFileReceiver, byte byteFileAppend, int nContentID, CMInfo cmInfo) static booleanrequestPermitForPushFile(String strFilePath, String strFileReceiver, byte byteFileAppend, CMInfo cmInfo) static booleanrequestPermitForPushFile(String strFilePath, String strFileReceiver, CMInfo cmInfo) static booleansendSTART_FILE_TRANSFER_CHAN(CMSendFileInfo sfInfo, CMInfo cmInfo) static voidsplitFile(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
-