@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 SummaryStats
public long numCanceledRuns()
numCanceledRuns
in interface SummaryStats
public long numFailedRuns()
numFailedRuns
in interface SummaryStats
public long numSlaViolations()
numSlaViolations
in interface SummaryStats
public long numSuccessfulRuns()
numSuccessfulRuns
in interface SummaryStats
public Optional<Duration> averageRunTime()
averageRunTime
in interface SummaryStats
Optional
of Duration
public Optional<Duration> fastestRunTime()
fastestRunTime
in interface SummaryStats
Optional
of Duration
public Optional<Duration> slowestRunTime()
slowestRunTime
in interface SummaryStats
Optional
of Duration
public Duration totalRunTime()
totalRunTime
in interface SummaryStats
Duration
public long totalBytesReadFromSource()
totalBytesReadFromSource
in interface SummaryStats
public long totalLogicalBackupSizeBytes()
totalLogicalBackupSizeBytes
in interface SummaryStats
public long totalPhysicalBackupSizeBytes()
totalPhysicalBackupSizeBytes
in interface SummaryStats
public 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) // requirednumRunningRuns
.numCanceledRuns(long) // requirednumCanceledRuns
.numFailedRuns(long) // requirednumFailedRuns
.numSlaViolations(long) // requirednumSlaViolations
.numSuccessfulRuns(long) // requirednumSuccessfulRuns
.averageRunTime(java.time.Duration) // optionalaverageRunTime
.fastestRunTime(java.time.Duration) // optionalfastestRunTime
.slowestRunTime(java.time.Duration) // optionalslowestRunTime
.totalRunTime(java.time.Duration) // requiredtotalRunTime
.totalBytesReadFromSource(long) // requiredtotalBytesReadFromSource
.totalLogicalBackupSizeBytes(long) // requiredtotalLogicalBackupSizeBytes
.totalPhysicalBackupSizeBytes(long) // requiredtotalPhysicalBackupSizeBytes
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.