Class FileSystemSize
- All Implemented Interfaces:
Serializable,Cloneable
This object provides the latest known metered size, in bytes, of data stored
in the file system, in its Value field, and the time at which
that size was determined in its Timestamp field. Note that the
value does not represent the size of a consistent snapshot of the file
system, but it is eventually consistent when there are no writes to the file
system. That is, the value will represent the actual size only if the file
system is not modified for a period longer than a couple of hours. Otherwise,
the value is not necessarily the exact size the file system was at any
instant in time.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe time at which the size of data, returned in theValuefield, was determined.getValue()The latest known metered size, in bytes, of data stored in the file system.inthashCode()voidsetTimestamp(Date timestamp) The time at which the size of data, returned in theValuefield, was determined.voidThe latest known metered size, in bytes, of data stored in the file system.toString()Returns a string representation of this object; useful for testing and debugging.withTimestamp(Date timestamp) The time at which the size of data, returned in theValuefield, was determined.The latest known metered size, in bytes, of data stored in the file system.
-
Constructor Details
-
FileSystemSize
public FileSystemSize()
-
-
Method Details
-
setValue
The latest known metered size, in bytes, of data stored in the file system.
- Parameters:
value- The latest known metered size, in bytes, of data stored in the file system.
-
getValue
The latest known metered size, in bytes, of data stored in the file system.
- Returns:
- The latest known metered size, in bytes, of data stored in the file system.
-
withValue
The latest known metered size, in bytes, of data stored in the file system.
- Parameters:
value- The latest known metered size, in bytes, of data stored in the file system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimestamp
The time at which the size of data, returned in the
Valuefield, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.- Parameters:
timestamp- The time at which the size of data, returned in theValuefield, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.
-
getTimestamp
The time at which the size of data, returned in the
Valuefield, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.- Returns:
- The time at which the size of data, returned in the
Valuefield, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.
-
withTimestamp
The time at which the size of data, returned in the
Valuefield, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.- Parameters:
timestamp- The time at which the size of data, returned in theValuefield, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-