Package org.apache.catalina.ha.deploy
Class FileMessage
java.lang.Object
org.apache.catalina.ha.ClusterMessageBase
org.apache.catalina.ha.deploy.FileMessage
- All Implemented Interfaces:
Serializable
,ClusterMessage
Contains the data for a file being transferred over TCP, this is essentially a fragment of a file, read and written
by the FileMessageFactory.
- See Also:
-
Field Summary
Fields inherited from class org.apache.catalina.ha.ClusterMessageBase
address
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
int
int
long
void
setData
(byte[] data, int length) void
setMessageNumber
(int messageNumber) void
setTotalNrOfMsgs
(long totalNrOfMsgs) Methods inherited from class org.apache.catalina.ha.ClusterMessageBase
getAddress, getTimestamp, setAddress, setTimestamp
-
Constructor Details
-
FileMessage
-
-
Method Details
-
getMessageNumber
public int getMessageNumber() -
setMessageNumber
public void setMessageNumber(int messageNumber) -
getTotalNrOfMsgs
public long getTotalNrOfMsgs() -
setTotalNrOfMsgs
public void setTotalNrOfMsgs(long totalNrOfMsgs) -
getData
public byte[] getData() -
setData
public void setData(byte[] data, int length) -
getDataLength
public int getDataLength() -
getUniqueId
- Returns:
- the unique id of the message
-
getFileName
-
getContextName
-