@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 BackupRunStatspublic Optional<Instant> endTime()
endTime in interface BackupRunStatspublic long numCanceledTasks()
numCanceledTasks in interface BackupRunStatspublic long numFailedTasks()
numFailedTasks in interface BackupRunStatspublic long numSuccessfulTasks()
numSuccessfulTasks in interface BackupRunStatspublic Instant startTime()
startTime in interface BackupRunStatspublic Optional<Duration> timeTaken()
timeTaken in interface BackupRunStatspublic long totalBytesReadFromSource()
totalBytesReadFromSource in interface BackupRunStatspublic long totalBytesToReadFromSource()
totalBytesToReadFromSource in interface BackupRunStatspublic long totalLogicalBackupSizeBytes()
totalLogicalBackupSizeBytes in interface BackupRunStatspublic long totalPhysicalBackupSizeBytes()
totalPhysicalBackupSizeBytes in interface BackupRunStatspublic long totalSourceSizeBytes()
totalSourceSizeBytes in interface BackupRunStatspublic 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) // optional admittedTime
.endTime(java.time.Instant) // optional endTime
.numCanceledTasks(long) // required numCanceledTasks
.numFailedTasks(long) // required numFailedTasks
.numSuccessfulTasks(long) // required numSuccessfulTasks
.startTime(java.time.Instant) // required startTime
.timeTaken(java.time.Duration) // optional timeTaken
.totalBytesReadFromSource(long) // required totalBytesReadFromSource
.totalBytesToReadFromSource(long) // required totalBytesToReadFromSource
.totalLogicalBackupSizeBytes(long) // required totalLogicalBackupSizeBytes
.totalPhysicalBackupSizeBytes(long) // required totalPhysicalBackupSizeBytes
.totalSourceSizeBytes(long) // required totalSourceSizeBytes
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.