@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSummaryStats extends Object implements SummaryStats
SummaryStats.
Use the builder to create immutable instances:
ImmutableSummaryStats.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSummaryStats.Builder
Builds instances of type
ImmutableSummaryStats. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Duration> |
averageRunTime()
Specifies the average run time of all successful backup runs.
|
static ImmutableSummaryStats.Builder |
builder()
Creates a builder for
ImmutableSummaryStats. |
static ImmutableSummaryStats |
copyOf(SummaryStats instance)
Creates an immutable copy of a
SummaryStats value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSummaryStats that have equal attribute values. |
Optional<Duration> |
fastestRunTime()
Specifies the time taken for a fastest successful backup run so far.
|
int |
hashCode()
Computes a hash code from attributes:
numRunningRuns, numCanceledRuns, numFailedRuns, numSlaViolations, numSuccessfulRuns, averageRunTime, fastestRunTime, slowestRunTime, totalRunTime, totalBytesReadFromSource, totalLogicalBackupSizeBytes, totalPhysicalBackupSizeBytes. |
long |
numCanceledRuns()
Specifies the number of runs that were canceled.
|
long |
numFailedRuns()
Specifies the number of runs that failed to finish.
|
long |
numRunningRuns()
Specifies the number of runs that are still running.
|
long |
numSlaViolations()
Specifies the number of runs having SLA violations.
|
long |
numSuccessfulRuns()
Specifies the number of runs that finished successfully.
|
Optional<Duration> |
slowestRunTime()
Specifies the time taken for a slowest successful backup run so far.
|
String |
toString()
Prints the immutable value
SummaryStats with attribute values. |
long |
totalBytesReadFromSource()
Specifies the total amount of data read from the source (so far).
|
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.
|
Duration |
totalRunTime()
The total run time taken by all successful backup runs.
|
ImmutableSummaryStats |
withAverageRunTime(Duration value)
Copy the current immutable object by setting a present value for the optional
averageRunTime attribute. |
ImmutableSummaryStats |
withAverageRunTime(Optional<? extends Duration> optional)
Copy the current immutable object by setting an optional value for the
averageRunTime attribute. |
ImmutableSummaryStats |
withFastestRunTime(Duration value)
Copy the current immutable object by setting a present value for the optional
fastestRunTime attribute. |
ImmutableSummaryStats |
withFastestRunTime(Optional<? extends Duration> optional)
Copy the current immutable object by setting an optional value for the
fastestRunTime attribute. |
ImmutableSummaryStats |
withNumCanceledRuns(long value)
Copy the current immutable object by setting a value for the
numCanceledRuns attribute. |
ImmutableSummaryStats |
withNumFailedRuns(long value)
Copy the current immutable object by setting a value for the
numFailedRuns attribute. |
ImmutableSummaryStats |
withNumRunningRuns(long value)
Copy the current immutable object by setting a value for the
numRunningRuns attribute. |
ImmutableSummaryStats |
withNumSlaViolations(long value)
Copy the current immutable object by setting a value for the
numSlaViolations attribute. |
ImmutableSummaryStats |
withNumSuccessfulRuns(long value)
Copy the current immutable object by setting a value for the
numSuccessfulRuns attribute. |
ImmutableSummaryStats |
withSlowestRunTime(Duration value)
Copy the current immutable object by setting a present value for the optional
slowestRunTime attribute. |
ImmutableSummaryStats |
withSlowestRunTime(Optional<? extends Duration> optional)
Copy the current immutable object by setting an optional value for the
slowestRunTime attribute. |
ImmutableSummaryStats |
withTotalBytesReadFromSource(long value)
Copy the current immutable object by setting a value for the
totalBytesReadFromSource attribute. |
ImmutableSummaryStats |
withTotalLogicalBackupSizeBytes(long value)
Copy the current immutable object by setting a value for the
totalLogicalBackupSizeBytes attribute. |
ImmutableSummaryStats |
withTotalPhysicalBackupSizeBytes(long value)
Copy the current immutable object by setting a value for the
totalPhysicalBackupSizeBytes attribute. |
ImmutableSummaryStats |
withTotalRunTime(Duration value)
Copy the current immutable object by setting a value for the
totalRunTime attribute. |
public long numRunningRuns()
numRunningRuns in interface SummaryStatspublic long numCanceledRuns()
numCanceledRuns in interface SummaryStatspublic long numFailedRuns()
numFailedRuns in interface SummaryStatspublic long numSlaViolations()
numSlaViolations in interface SummaryStatspublic long numSuccessfulRuns()
numSuccessfulRuns in interface SummaryStatspublic Optional<Duration> averageRunTime()
averageRunTime in interface SummaryStatsOptional of Durationpublic Optional<Duration> fastestRunTime()
fastestRunTime in interface SummaryStatsOptional of Durationpublic Optional<Duration> slowestRunTime()
slowestRunTime in interface SummaryStatsOptional of Durationpublic Duration totalRunTime()
totalRunTime in interface SummaryStatsDurationpublic long totalBytesReadFromSource()
totalBytesReadFromSource in interface SummaryStatspublic long totalLogicalBackupSizeBytes()
totalLogicalBackupSizeBytes in interface SummaryStatspublic long totalPhysicalBackupSizeBytes()
totalPhysicalBackupSizeBytes in interface SummaryStatspublic final ImmutableSummaryStats withNumRunningRuns(long value)
numRunningRuns attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for numRunningRunsthis objectpublic final ImmutableSummaryStats withNumCanceledRuns(long value)
numCanceledRuns attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for numCanceledRunsthis objectpublic final ImmutableSummaryStats withNumFailedRuns(long value)
numFailedRuns attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for numFailedRunsthis objectpublic final ImmutableSummaryStats withNumSlaViolations(long value)
numSlaViolations attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for numSlaViolationsthis objectpublic final ImmutableSummaryStats withNumSuccessfulRuns(long value)
numSuccessfulRuns attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for numSuccessfulRunsthis objectpublic final ImmutableSummaryStats withAverageRunTime(Duration value)
averageRunTime attribute.value - The value for averageRunTimethis objectpublic final ImmutableSummaryStats withAverageRunTime(Optional<? extends Duration> optional)
averageRunTime 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 averageRunTimethis objectpublic final ImmutableSummaryStats withFastestRunTime(Duration value)
fastestRunTime attribute.value - The value for fastestRunTimethis objectpublic final ImmutableSummaryStats withFastestRunTime(Optional<? extends Duration> optional)
fastestRunTime 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 fastestRunTimethis objectpublic final ImmutableSummaryStats withSlowestRunTime(Duration value)
slowestRunTime attribute.value - The value for slowestRunTimethis objectpublic final ImmutableSummaryStats withSlowestRunTime(Optional<? extends Duration> optional)
slowestRunTime 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 slowestRunTimethis objectpublic final ImmutableSummaryStats withTotalRunTime(Duration value)
totalRunTime attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for totalRunTimethis objectpublic final ImmutableSummaryStats 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 ImmutableSummaryStats 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 ImmutableSummaryStats 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 boolean equals(@Nullable Object another)
ImmutableSummaryStats that have equal attribute values.public int hashCode()
numRunningRuns, numCanceledRuns, numFailedRuns, numSlaViolations, numSuccessfulRuns, averageRunTime, fastestRunTime, slowestRunTime, totalRunTime, totalBytesReadFromSource, totalLogicalBackupSizeBytes, totalPhysicalBackupSizeBytes.public String toString()
SummaryStats with attribute values.public static ImmutableSummaryStats copyOf(SummaryStats instance)
SummaryStats 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 ImmutableSummaryStats.Builder builder()
ImmutableSummaryStats.
ImmutableSummaryStats.builder()
.numRunningRuns(long) // required numRunningRuns
.numCanceledRuns(long) // required numCanceledRuns
.numFailedRuns(long) // required numFailedRuns
.numSlaViolations(long) // required numSlaViolations
.numSuccessfulRuns(long) // required numSuccessfulRuns
.averageRunTime(java.time.Duration) // optional averageRunTime
.fastestRunTime(java.time.Duration) // optional fastestRunTime
.slowestRunTime(java.time.Duration) // optional slowestRunTime
.totalRunTime(java.time.Duration) // required totalRunTime
.totalBytesReadFromSource(long) // required totalBytesReadFromSource
.totalLogicalBackupSizeBytes(long) // required totalLogicalBackupSizeBytes
.totalPhysicalBackupSizeBytes(long) // required totalPhysicalBackupSizeBytes
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.