org.csource.fastdfs
Class FileInfo

java.lang.Object
  extended by org.csource.fastdfs.FileInfo

public class FileInfo
extends java.lang.Object

Server Info

Version:
Version 1.18
Author:
Happy Fish / YuQing

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

source_ip_addr

protected java.lang.String source_ip_addr

file_size

protected long file_size

create_timestamp

protected java.util.Date create_timestamp

crc32

protected int crc32
Constructor Detail

FileInfo

public FileInfo(long file_size,
                int create_timestamp,
                int crc32)
Constructor

Parameters:
file_size - the file size
create_timestamp - create timestamp in seconds
crc32 - the crc32 signature
Method Detail

setSourceIpAddr

public void setSourceIpAddr(java.lang.String source_ip_addr)
set the source ip address of the file uploaded to

Parameters:
source_ip_addr - the source ip address

getSourceIpAddr

public java.lang.String getSourceIpAddr()
get the source ip address of the file uploaded to

Returns:
the source ip address of the file uploaded to

setFileSize

public void setFileSize(long file_size)
set the file size

Parameters:
file_size - the file size

getFileSize

public long getFileSize()
get the file size

Returns:
the file size

setCreateTimestamp

public void setCreateTimestamp(int create_timestamp)
set the create timestamp of the file

Parameters:
create_timestamp - create timestamp in seconds

getCreateTimestamp

public java.util.Date getCreateTimestamp()
get the create timestamp of the file

Returns:
the create timestamp of the file

setCrc32

public void setCrc32(int crc32)
set the create timestamp of the file

Parameters:
crc32 - the crc32 signature

getCrc32

public long getCrc32()
get the file CRC32 signature

Returns:
the file CRC32 signature

toString

public java.lang.String toString()
to string

Overrides:
toString in class java.lang.Object
Returns:
string