public class FileInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
crc32 |
protected Date |
create_timestamp |
protected long |
file_size |
protected String |
source_ip_addr |
Constructor and Description |
---|
FileInfo(long file_size,
int create_timestamp,
int crc32,
String source_ip_addr)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
protected String source_ip_addr
protected long file_size
protected Date create_timestamp
protected int crc32
public FileInfo(long file_size, int create_timestamp, int crc32, String source_ip_addr)
file_size
- the file sizecreate_timestamp
- create timestamp in secondscrc32
- the crc32 signaturesource_ip_addr
- the source storage ip addresspublic void setSourceIpAddr(String source_ip_addr)
source_ip_addr
- the source ip addresspublic 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 Date getCreateTimestamp()
public void setCrc32(int crc32)
crc32
- the crc32 signaturepublic long getCrc32()
Copyright © 2018 lodsve. All rights reserved.