public class UpdateStatus extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CREATED
Checksum file did not exist before and was created
|
static int |
ERROR
Error occured during update/creation of the checksum file
|
static int |
NONE
Nothing changed
|
static int |
UPDATED
Checksum file existed, but content differed
|
Constructor and Description |
---|
UpdateStatus(ChecksumAlgorithm algorithm) |
UpdateStatus(ChecksumAlgorithm algorithm,
int status) |
UpdateStatus(ChecksumAlgorithm algorithm,
Throwable error) |
Modifier and Type | Method and Description |
---|---|
ChecksumAlgorithm |
getAlgorithm()
Return the algorithm, this status is assigned to.
|
Throwable |
getError()
Return error, if exists, otherwise
null will be returned. |
int |
getValue()
Return the status value.
|
public static final int CREATED
public static final int UPDATED
public static final int NONE
public static final int ERROR
public UpdateStatus(ChecksumAlgorithm algorithm)
public UpdateStatus(ChecksumAlgorithm algorithm, int status)
public UpdateStatus(ChecksumAlgorithm algorithm, Throwable error)
public int getValue()
public Throwable getError()
null
will be returned.public ChecksumAlgorithm getAlgorithm()
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.