Class CMFileSyncEventRequestNewFiles
java.lang.Object
kr.ac.konkuk.ccslab.cm.entity.CMObject
kr.ac.konkuk.ccslab.cm.event.CMEvent
kr.ac.konkuk.ccslab.cm.event.filesync.CMFileSyncEvent
kr.ac.konkuk.ccslab.cm.event.filesync.CMFileSyncEventRequestNewFiles
This class represents a CMFileSyncEvent with which the server requests
the transmission of new files for the synchronization from the client.
-
Field Summary
Fields inherited from class kr.ac.konkuk.ccslab.cm.event.filesync.CMFileSyncEvent
COMPLETE_FILE_SYNC, COMPLETE_NEW_FILE, COMPLETE_UPDATE_FILE, END_FILE_BLOCK_CHECKSUM, END_FILE_BLOCK_CHECKSUM_ACK, END_FILE_LIST, END_FILE_LIST_ACK, END_LOCAL_MODE_LIST, END_LOCAL_MODE_LIST_ACK, END_ONLINE_MODE_LIST, END_ONLINE_MODE_LIST_ACK, FILE_BLOCK_CHECKSUM, FILE_ENTRIES, FILE_ENTRIES_ACK, LOCAL_MODE_LIST, LOCAL_MODE_LIST_ACK, ONLINE_MODE_LIST, ONLINE_MODE_LIST_ACK, REQUEST_NEW_FILES, SKIP_UPDATE_FILE, START_FILE_BLOCK_CHECKSUM, START_FILE_BLOCK_CHECKSUM_ACK, START_FILE_LIST, START_FILE_LIST_ACK, UPDATE_EXISTING_FILEFields inherited from class kr.ac.konkuk.ccslab.cm.event.CMEvent
m_bytes, m_nByteNum, m_nID, m_strDistributionGroup, m_strDistributionSession, m_strHandlerGroup, m_strHandlerSession, m_strReceiver, m_strSender -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintgets the number of requested new files.gets the list of new file paths that will be transferred.gets the requester (server) nameinthashCode()protected voidvoidsetNumRequestedFiles(int numRequestedFiles) voidsetRequestedFileList(List<Path> requestedFileList) voidsetRequesterName(String requesterName) toString()protected voidunmarshallBody(ByteBuffer msg) Methods inherited from class kr.ac.konkuk.ccslab.cm.event.CMEvent
allocate, getDistributionGroup, getDistributionSession, getHandlerGroup, getHandlerSession, getID, getInt2BytesFromByteBuffer, getReceiver, getSender, getStringFromByteBuffer, marshall, marshallHeader, putInt2BytesToByteBuffer, putStringToByteBuffer, setByteNum, setDistributionGroup, setDistributionSession, setHandlerGroup, setHandlerSession, setID, setReceiver, setSender, unmarshall, unmarshallHeader
-
Constructor Details
-
CMFileSyncEventRequestNewFiles
public CMFileSyncEventRequestNewFiles() -
CMFileSyncEventRequestNewFiles
-
-
Method Details
-
getByteNum
public int getByteNum()- Overrides:
getByteNumin classCMEvent
-
marshallBody
protected void marshallBody()- Specified by:
marshallBodyin classCMEvent
-
unmarshallBody
- Specified by:
unmarshallBodyin classCMEvent
-
toString
-
equals
-
hashCode
public int hashCode() -
getRequesterName
gets the requester (server) name- Returns:
- requester (server) name
-
setRequesterName
-
getNumRequestedFiles
public int getNumRequestedFiles()gets the number of requested new files.- Returns:
- number of requested new files
-
setNumRequestedFiles
public void setNumRequestedFiles(int numRequestedFiles) -
getRequestedFileList
gets the list of new file paths that will be transferred.- Returns:
- a list of new file paths.
The path is an absolute path of the file sender.
-
setRequestedFileList
-