Record Class WeatherAutomation.Status
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherAutomation.Status
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherAutomation
public static record WeatherAutomation.Status(WeatherAutomation.Configuration configuration, long lastAttempt, long lastSuccess, long nextRun, int rows, int pages, boolean partial, String error, List<String> changes, boolean loaded, boolean running, int candidates, int added, int removed, List<WeatherDiscoveryStore.RejectedHost> rejectedHosts)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(WeatherAutomation.Configuration configuration, long lastAttempt, long lastSuccess, long nextRun, int rows, int pages, boolean partial, String error, List<String> changes, boolean loaded, boolean running, int candidates, int added, int removed, List<WeatherDiscoveryStore.RejectedHost> rejectedHosts) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintadded()Returns the value of theaddedrecord component.intReturns the value of thecandidatesrecord component.changes()Returns the value of thechangesrecord component.Returns the value of theconfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastAttemptrecord component.longReturns the value of thelastSuccessrecord component.booleanloaded()Returns the value of theloadedrecord component.longnextRun()Returns the value of thenextRunrecord component.intpages()Returns the value of thepagesrecord component.booleanpartial()Returns the value of thepartialrecord component.Returns the value of therejectedHostsrecord component.intremoved()Returns the value of theremovedrecord component.introws()Returns the value of therowsrecord component.booleanrunning()Returns the value of therunningrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(WeatherAutomation.Configuration configuration, long lastAttempt, long lastSuccess, long nextRun, int rows, int pages, boolean partial, String error, List<String> changes, boolean loaded, boolean running, int candidates, int added, int removed, List<WeatherDiscoveryStore.RejectedHost> rejectedHosts) Creates an instance of aStatusrecord class.- Parameters:
configuration- the value for theconfigurationrecord componentlastAttempt- the value for thelastAttemptrecord componentlastSuccess- the value for thelastSuccessrecord componentnextRun- the value for thenextRunrecord componentrows- the value for therowsrecord componentpages- the value for thepagesrecord componentpartial- the value for thepartialrecord componenterror- the value for theerrorrecord componentchanges- the value for thechangesrecord componentloaded- the value for theloadedrecord componentrunning- the value for therunningrecord componentcandidates- the value for thecandidatesrecord componentadded- the value for theaddedrecord componentremoved- the value for theremovedrecord componentrejectedHosts- the value for therejectedHostsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
lastAttempt
public long lastAttempt()Returns the value of thelastAttemptrecord component.- Returns:
- the value of the
lastAttemptrecord component
-
lastSuccess
public long lastSuccess()Returns the value of thelastSuccessrecord component.- Returns:
- the value of the
lastSuccessrecord component
-
nextRun
public long nextRun()Returns the value of thenextRunrecord component.- Returns:
- the value of the
nextRunrecord component
-
rows
public int rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
pages
public int pages()Returns the value of thepagesrecord component.- Returns:
- the value of the
pagesrecord component
-
partial
public boolean partial()Returns the value of thepartialrecord component.- Returns:
- the value of the
partialrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
changes
-
loaded
public boolean loaded()Returns the value of theloadedrecord component.- Returns:
- the value of the
loadedrecord component
-
running
public boolean running()Returns the value of therunningrecord component.- Returns:
- the value of the
runningrecord component
-
candidates
public int candidates()Returns the value of thecandidatesrecord component.- Returns:
- the value of the
candidatesrecord component
-
added
public int added()Returns the value of theaddedrecord component.- Returns:
- the value of the
addedrecord component
-
removed
public int removed()Returns the value of theremovedrecord component.- Returns:
- the value of the
removedrecord component
-
rejectedHosts
Returns the value of therejectedHostsrecord component.- Returns:
- the value of the
rejectedHostsrecord component
-