|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csource.fastdfs.FileInfo
public class FileInfo
Server Info
Field Summary | |
---|---|
protected int |
crc32
|
protected java.util.Date |
create_timestamp
|
protected long |
file_size
|
protected java.lang.String |
source_ip_addr
|
Constructor Summary | |
---|---|
FileInfo(long file_size,
int create_timestamp,
int crc32)
Constructor |
Method Summary | |
---|---|
long |
getCrc32()
get the file CRC32 signature |
java.util.Date |
getCreateTimestamp()
get the create timestamp of the file |
long |
getFileSize()
get the file size |
java.lang.String |
getSourceIpAddr()
get the source ip address of the file uploaded to |
void |
setCrc32(int crc32)
set the create timestamp of the file |
void |
setCreateTimestamp(int create_timestamp)
set the create timestamp of the file |
void |
setFileSize(long file_size)
set the file size |
void |
setSourceIpAddr(java.lang.String source_ip_addr)
set the source ip address of the file uploaded to |
java.lang.String |
toString()
to string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String source_ip_addr
protected long file_size
protected java.util.Date create_timestamp
protected int crc32
Constructor Detail |
---|
public FileInfo(long file_size, int create_timestamp, int crc32)
file_size
- the file sizecreate_timestamp
- create timestamp in secondscrc32
- the crc32 signatureMethod Detail |
---|
public void setSourceIpAddr(java.lang.String source_ip_addr)
source_ip_addr
- the source ip addresspublic java.lang.String getSourceIpAddr()
public void setFileSize(long file_size)
file_size
- the file sizepublic long getFileSize()
public void setCreateTimestamp(int create_timestamp)
create_timestamp
- create timestamp in secondspublic java.util.Date getCreateTimestamp()
public void setCrc32(int crc32)
crc32
- the crc32 signaturepublic long getCrc32()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |