@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableBackupRunStats extends Object implements BackupRunStats
BackupRunStats
.
Use the builder to create immutable instances:
ImmutableBackupRunStats.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableBackupRunStats.Builder
Builds instances of type
ImmutableBackupRunStats . |
Modifier and Type | Method and Description |
---|---|
Optional<Instant> |
admittedTime()
Specifies the time the task was unqueued from the queue to start running.
|
static ImmutableBackupRunStats.Builder |
builder()
Creates a builder for
ImmutableBackupRunStats . |
static ImmutableBackupRunStats |
copyOf(BackupRunStats instance)
Creates an immutable copy of a
BackupRunStats value. |
Optional<Instant> |
endTime()
Specifies the end time of the backup group run.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableBackupRunStats that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
admittedTime , endTime , numCanceledTasks , numFailedTasks , numSuccessfulTasks , startTime , timeTaken , totalBytesReadFromSource , totalBytesToReadFromSource , totalLogicalBackupSizeBytes , totalPhysicalBackupSizeBytes , totalSourceSizeBytes . |
long |
numCanceledTasks()
Specifies the number of backup tasks that were canceled.
|
long |
numFailedTasks()
Specifies the number of backup tasks that failed.
|
long |
numSuccessfulTasks()
Specifies the number of backup tasks that completed successfully.
|
Instant |
startTime()
Specifies the start time of the backup group run.
|
Optional<Duration> |
timeTaken()
Specifies the actual execution time for the protection run to complete the
backup task and the copy tasks.
|
String |
toString()
Prints the immutable value
BackupRunStats with attribute values. |
long |
totalBytesReadFromSource()
Specifies the total amount of data read from the source (so far).
|
long |
totalBytesToReadFromSource()
Specifies the total amount of data expected to be read from the source.
|
long |
totalLogicalBackupSizeBytes()
Specifies the size of the source object (such as a VM) protected by this
task on the primary storage after the snapshot is taken.
|
long |
totalPhysicalBackupSizeBytes()
Specifies the total amount of physical space used to store the protected
object after being reduced by change-block tracking, compression and
deduplication.
|
long |
totalSourceSizeBytes()
Specifies the size of the source object (such as a VM) protected by this
task on the primary storage before the snapshot is taken.
|
ImmutableBackupRunStats |
withAdmittedTime(Instant value)
Copy the current immutable object by setting a present value for the optional
admittedTime attribute. |
ImmutableBackupRunStats |
withAdmittedTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
admittedTime attribute. |
ImmutableBackupRunStats |
withEndTime(Instant value)
Copy the current immutable object by setting a present value for the optional
endTime attribute. |
ImmutableBackupRunStats |
withEndTime(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
endTime attribute. |
ImmutableBackupRunStats |
withNumCanceledTasks(long value)
Copy the current immutable object by setting a value for the
numCanceledTasks attribute. |
ImmutableBackupRunStats |
withNumFailedTasks(long value)
Copy the current immutable object by setting a value for the
numFailedTasks attribute. |
ImmutableBackupRunStats |
withNumSuccessfulTasks(long value)
Copy the current immutable object by setting a value for the
numSuccessfulTasks attribute. |
ImmutableBackupRunStats |
withStartTime(Instant value)
Copy the current immutable object by setting a value for the
startTime attribute. |
ImmutableBackupRunStats |
withTimeTaken(Duration value)
Copy the current immutable object by setting a present value for the optional
timeTaken attribute. |
ImmutableBackupRunStats |
withTimeTaken(Optional<? extends Duration> optional)
Copy the current immutable object by setting an optional value for the
timeTaken attribute. |
ImmutableBackupRunStats |
withTotalBytesReadFromSource(long value)
Copy the current immutable object by setting a value for the
totalBytesReadFromSource attribute. |
ImmutableBackupRunStats |
withTotalBytesToReadFromSource(long value)
Copy the current immutable object by setting a value for the
totalBytesToReadFromSource attribute. |
ImmutableBackupRunStats |
withTotalLogicalBackupSizeBytes(long value)
Copy the current immutable object by setting a value for the
totalLogicalBackupSizeBytes attribute. |
ImmutableBackupRunStats |
withTotalPhysicalBackupSizeBytes(long value)
Copy the current immutable object by setting a value for the
totalPhysicalBackupSizeBytes attribute. |
ImmutableBackupRunStats |
withTotalSourceSizeBytes(long value)
Copy the current immutable object by setting a value for the
totalSourceSizeBytes attribute. |
public Optional<Instant> admittedTime()
admittedTime
in interface BackupRunStats
public Optional<Instant> endTime()
endTime
in interface BackupRunStats
public long numCanceledTasks()
numCanceledTasks
in interface BackupRunStats
public long numFailedTasks()
numFailedTasks
in interface BackupRunStats
public long numSuccessfulTasks()
numSuccessfulTasks
in interface BackupRunStats
public Instant startTime()
startTime
in interface BackupRunStats
public Optional<Duration> timeTaken()
timeTaken
in interface BackupRunStats
public long totalBytesReadFromSource()
totalBytesReadFromSource
in interface BackupRunStats
public long totalBytesToReadFromSource()
totalBytesToReadFromSource
in interface BackupRunStats
public long totalLogicalBackupSizeBytes()
totalLogicalBackupSizeBytes
in interface BackupRunStats
public long totalPhysicalBackupSizeBytes()
totalPhysicalBackupSizeBytes
in interface BackupRunStats
public long totalSourceSizeBytes()
totalSourceSizeBytes
in interface BackupRunStats
public final ImmutableBackupRunStats withAdmittedTime(Instant value)
admittedTime
attribute.value
- The value for admittedTimethis
objectpublic final ImmutableBackupRunStats withAdmittedTime(Optional<? extends Instant> optional)
admittedTime
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for admittedTimethis
objectpublic final ImmutableBackupRunStats withEndTime(Instant value)
endTime
attribute.value
- The value for endTimethis
objectpublic final ImmutableBackupRunStats withEndTime(Optional<? extends Instant> optional)
endTime
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for endTimethis
objectpublic final ImmutableBackupRunStats withNumCanceledTasks(long value)
numCanceledTasks
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for numCanceledTasksthis
objectpublic final ImmutableBackupRunStats withNumFailedTasks(long value)
numFailedTasks
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for numFailedTasksthis
objectpublic final ImmutableBackupRunStats withNumSuccessfulTasks(long value)
numSuccessfulTasks
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for numSuccessfulTasksthis
objectpublic final ImmutableBackupRunStats withStartTime(Instant value)
startTime
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for startTimethis
objectpublic final ImmutableBackupRunStats withTimeTaken(Duration value)
timeTaken
attribute.value
- The value for timeTakenthis
objectpublic final ImmutableBackupRunStats withTimeTaken(Optional<? extends Duration> optional)
timeTaken
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for timeTakenthis
objectpublic final ImmutableBackupRunStats withTotalBytesReadFromSource(long value)
totalBytesReadFromSource
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for totalBytesReadFromSourcethis
objectpublic final ImmutableBackupRunStats withTotalBytesToReadFromSource(long value)
totalBytesToReadFromSource
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for totalBytesToReadFromSourcethis
objectpublic final ImmutableBackupRunStats withTotalLogicalBackupSizeBytes(long value)
totalLogicalBackupSizeBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for totalLogicalBackupSizeBytesthis
objectpublic final ImmutableBackupRunStats withTotalPhysicalBackupSizeBytes(long value)
totalPhysicalBackupSizeBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for totalPhysicalBackupSizeBytesthis
objectpublic final ImmutableBackupRunStats withTotalSourceSizeBytes(long value)
totalSourceSizeBytes
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for totalSourceSizeBytesthis
objectpublic boolean equals(@Nullable Object another)
ImmutableBackupRunStats
that have equal attribute values.public int hashCode()
admittedTime
, endTime
, numCanceledTasks
, numFailedTasks
, numSuccessfulTasks
, startTime
, timeTaken
, totalBytesReadFromSource
, totalBytesToReadFromSource
, totalLogicalBackupSizeBytes
, totalPhysicalBackupSizeBytes
, totalSourceSizeBytes
.public String toString()
BackupRunStats
with attribute values.public static ImmutableBackupRunStats copyOf(BackupRunStats instance)
BackupRunStats
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableBackupRunStats.Builder builder()
ImmutableBackupRunStats
.
ImmutableBackupRunStats.builder() .admittedTime(java.time.Instant) // optionaladmittedTime
.endTime(java.time.Instant) // optionalendTime
.numCanceledTasks(long) // requirednumCanceledTasks
.numFailedTasks(long) // requirednumFailedTasks
.numSuccessfulTasks(long) // requirednumSuccessfulTasks
.startTime(java.time.Instant) // requiredstartTime
.timeTaken(java.time.Duration) // optionaltimeTaken
.totalBytesReadFromSource(long) // requiredtotalBytesReadFromSource
.totalBytesToReadFromSource(long) // requiredtotalBytesToReadFromSource
.totalLogicalBackupSizeBytes(long) // requiredtotalLogicalBackupSizeBytes
.totalPhysicalBackupSizeBytes(long) // requiredtotalPhysicalBackupSizeBytes
.totalSourceSizeBytes(long) // requiredtotalSourceSizeBytes
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.