Class CMFileTransferManager

java.lang.Object
kr.ac.konkuk.ccslab.cm.manager.CMFileTransferManager

public class CMFileTransferManager extends Object
  • Constructor Details

    • CMFileTransferManager

      public CMFileTransferManager()
  • Method Details

    • init

      public static void init(CMInfo cmInfo)
    • terminate

      public static void terminate(CMInfo cmInfo)
    • requestPermitForPullFile

      public static boolean requestPermitForPullFile(String strFileName, String strFileOwner, CMInfo cmInfo)
    • requestPermitForPullFile

      public static boolean requestPermitForPullFile(String strFileName, String strFileOwner, byte byteFileAppend, CMInfo cmInfo)
    • requestPermitForPullFile

      public static boolean requestPermitForPullFile(String strFileName, String strFileOwner, byte byteFileAppend, int nContentID, CMInfo cmInfo)
    • isP2PFileTransfer

      public static boolean isP2PFileTransfer(CMFileEvent fe, CMInfo cmInfo)
    • replyPermitForPullFile

      public static boolean replyPermitForPullFile(CMFileEvent fe, int nReturnCode, CMInfo cmInfo)
    • cancelPullFile

      public static boolean cancelPullFile(String strFileSender, CMInfo cmInfo)
    • requestPermitForPushFile

      public static boolean requestPermitForPushFile(String strFilePath, String strFileReceiver, CMInfo cmInfo)
    • requestPermitForPushFile

      public static boolean requestPermitForPushFile(String strFilePath, String strFileReceiver, byte byteFileAppend, CMInfo cmInfo)
    • requestPermitForPushFile

      public static boolean requestPermitForPushFile(String strFilePath, String strFileReceiver, byte byteFileAppend, int nContentID, CMInfo cmInfo)
    • replyPermitForPushFile

      public static boolean replyPermitForPushFile(CMFileEvent fe, int nReturnCode, CMInfo cmInfo)
    • pushFile

      public static boolean pushFile(String strFilePath, String strReceiver, CMInfo cmInfo)
    • pushFile

      public static boolean pushFile(String strFilePath, String strReceiver, byte byteFileAppend, CMInfo cmInfo)
    • pushFile

      public static boolean pushFile(String strFilePath, String strReceiver, byte byteFileAppend, int nContentID, CMInfo cmInfo)
    • sendSTART_FILE_TRANSFER_CHAN

      public static boolean sendSTART_FILE_TRANSFER_CHAN(CMSendFileInfo sfInfo, CMInfo cmInfo)
    • cancelPushFile

      public static boolean cancelPushFile(String strFileReceiver, CMInfo cmInfo)
    • splitFile

      public static void splitFile(RandomAccessFile srcFile, long lOffset, long lSplitSize, String strSplitFile)
    • mergeFiles

      public static long mergeFiles(String[] strSplitFiles, int nSplitNum, String strMergeFile)
    • getFileNameFromPath

      public static String getFileNameFromPath(String strPath)
    • processEvent

      public static boolean processEvent(CMMessage msg, CMInfo cmInfo)