org.csource.fastdfs
类 FileInfo

java.lang.Object
  继承者 org.csource.fastdfs.FileInfo

public class FileInfo
extends Object

Server Info

版本:
Version 1.23
作者:
Happy Fish / YuQing

字段摘要
protected  int crc32
           
protected  Date create_timestamp
           
protected  long file_size
           
protected  String source_ip_addr
           
 
构造方法摘要
FileInfo(long file_size, int create_timestamp, int crc32, String source_ip_addr)
          Constructor
 
方法摘要
 long getCrc32()
          get the file CRC32 signature
 Date getCreateTimestamp()
          get the create timestamp of the file
 long getFileSize()
          get the file size
 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(String source_ip_addr)
          set the source ip address of the file uploaded to
 String toString()
          to string
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

source_ip_addr

protected String source_ip_addr

file_size

protected long file_size

create_timestamp

protected Date create_timestamp

crc32

protected int crc32
构造方法详细信息

FileInfo

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

参数:
file_size - the file size
create_timestamp - create timestamp in seconds
crc32 - the crc32 signature
source_ip_addr - the source storage ip address
方法详细信息

getSourceIpAddr

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

返回:
the source ip address of the file uploaded to

setSourceIpAddr

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

参数:
source_ip_addr - the source ip address

getFileSize

public long getFileSize()
get the file size

返回:
the file size

setFileSize

public void setFileSize(long file_size)
set the file size

参数:
file_size - the file size

getCreateTimestamp

public Date getCreateTimestamp()
get the create timestamp of the file

返回:
the create timestamp of the file

setCreateTimestamp

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

参数:
create_timestamp - create timestamp in seconds

getCrc32

public long getCrc32()
get the file CRC32 signature

返回:
the file CRC32 signature

setCrc32

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

参数:
crc32 - the crc32 signature

toString

public String toString()
to string

覆盖:
Object 中的 toString
返回:
string


Copyright © 2017. All rights reserved.