forked from Qortal/qortal
Improved accuracy of statuses
- "NOT_STARTED" is now "DOWNLOADED" - "DOWNLOADING" is now "MISSING_DATA" - Removed "DOWNLOAD_FAILED" Some of these could be reintroduced once the system is able to support them.
This commit is contained in:
parent
73e609fa29
commit
75ec7723ef
@ -7,12 +7,10 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
public class ArbitraryResourceSummary {
|
||||
|
||||
public enum ArbitraryResourceStatus {
|
||||
NOT_STARTED,
|
||||
DOWNLOADING,
|
||||
DOWNLOADED,
|
||||
BUILDING,
|
||||
READY,
|
||||
DOWNLOAD_FAILED,
|
||||
MISSING_DATA,
|
||||
BUILD_FAILED,
|
||||
UNSUPPORTED,
|
||||
BLACKLISTED
|
||||
|
@ -63,7 +63,7 @@ public class ArbitraryDataResource {
|
||||
builder.process();
|
||||
|
||||
} catch (MissingDataException e) {
|
||||
return new ArbitraryResourceSummary(ArbitraryResourceStatus.DOWNLOADING);
|
||||
return new ArbitraryResourceSummary(ArbitraryResourceStatus.MISSING_DATA);
|
||||
|
||||
} catch (IOException | DataException e) {
|
||||
// Ignore for now
|
||||
@ -71,6 +71,6 @@ public class ArbitraryDataResource {
|
||||
|
||||
// FUTURE: support DOWNLOADED state once the build queue system has been upgraded
|
||||
|
||||
return new ArbitraryResourceSummary(ArbitraryResourceStatus.NOT_STARTED);
|
||||
return new ArbitraryResourceSummary(ArbitraryResourceStatus.DOWNLOADED);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user