|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.cluster.deploy.FileMessage
Contains the data for a file being transferred over TCP, this is essentially a fragment of a file, read and written by the FileMessageFactory
| Field Summary |
| Fields inherited from interface org.apache.catalina.cluster.ClusterMessage |
FLAG_ALLOWED, FLAG_DEFAULT, FLAG_FORBIDDEN |
| Constructor Summary | |
FileMessage(Member source,
java.lang.String fileName,
java.lang.String contextPath)
|
|
| Method Summary | |
Member |
getAddress()
Get the address that this message originated from. |
int |
getCompress()
Each message can made the desicion that compress is allowed or not or handle by default. |
java.lang.String |
getContextPath()
|
byte[] |
getData()
|
int |
getDataLength()
|
java.lang.String |
getFileName()
|
int |
getMessageNumber()
|
int |
getResend()
Each message can made the desicion that resend is allowed or not or handle by default. |
long |
getTimestamp()
Timestamp message. |
long |
getTotalLength()
|
long |
getTotalNrOfMsgs()
|
java.lang.String |
getUniqueId()
Each message must have a unique ID, in case of using async replication, and a smart queue, this id is used to replace messages not yet sent. |
void |
setAddress(Member address)
Called by the cluster before sending it to the other nodes. |
void |
setCompress(int compress)
set desicion that compress is allowed or not or handle by default. |
void |
setData(byte[] data,
int length)
|
void |
setDataLength(int dataLength)
|
void |
setFileName(java.lang.String fileName)
|
void |
setMessageNumber(int messageNumber)
|
void |
setResend(int resend)
set desicion that resend is allowed or not or handle by default. |
void |
setTimestamp(long timestamp)
Called by the cluster before sending out the message. |
void |
setTotalLength(long totalLength)
|
void |
setTotalNrOfMsgs(long totalNrOfMsgs)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileMessage(Member source,
java.lang.String fileName,
java.lang.String contextPath)
| Method Detail |
public int getMessageNumber()
public void setMessageNumber(int messageNumber)
public long getTotalNrOfMsgs()
public void setTotalNrOfMsgs(long totalNrOfMsgs)
public byte[] getData()
public void setData(byte[] data,
int length)
public int getDataLength()
public void setDataLength(int dataLength)
public long getTotalLength()
public void setTotalLength(long totalLength)
public Member getAddress()
ClusterMessage
getAddress in interface ClusterMessagepublic void setAddress(Member address)
ClusterMessage
setAddress in interface ClusterMessageaddress - Memberpublic java.lang.String getUniqueId()
ClusterMessage
getUniqueId in interface ClusterMessagepublic long getTimestamp()
ClusterMessage
getTimestamp in interface ClusterMessagepublic void setTimestamp(long timestamp)
ClusterMessage
setTimestamp in interface ClusterMessagetimestamp - The timestamppublic java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public java.lang.String getContextPath()
public int getCompress()
ClusterMessage
getCompress in interface ClusterMessagepublic void setCompress(int compress)
ClusterMessage
setCompress in interface ClusterMessagecompress - The compress to set.public int getResend()
ClusterMessage
getResend in interface ClusterMessagepublic void setResend(int resend)
ClusterMessage
setResend in interface ClusterMessageresend - The resend to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||