Record Class Job
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.model.Job
- Record Components:
etag- the entity's ETag (@odata.etag), forIf-Matchid- The ID of the job.description- The brief, human readable description of the job.state- The current state of the job.elapsedTime- The elapsed time since the creation of the job.waitTime- The wait time is the time elapsed since the job entered the waiting state.waitingOn- The list of jobs that block the current job. (when expanded) (since 12.3.0)session- The Session that this job is currently servicing. (when expanded)replica- The Replica that this job is currently running on. (when expanded)
@Generated("io.skipcheck.tm1.codegen")
@Since("12.2.0")
public record Job(@Nullable String etag, @Nullable String id, @Nullable String description, @Nullable JobState state, @Nullable Duration elapsedTime, @Nullable Duration waitTime, @Since("12.3.0") @Nullable List<Job> waitingOn, @Nullable Session session, @Nullable DatabaseReplica replica)
extends Record
Represents an active task on a specific database replica.
Generated from $metadata. Every component is nullable: $select can leave any property out, and navigation properties are only there when expanded. Null components aren't sent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ODataPropertyDescription, for queries: The brief, human readable description of the job.static final ODataPropertyElapsedTime, for queries: The elapsed time since the creation of the job.static final ODataPropertyID, for queries: The ID of the job.static final ODataPropertyReplica, for queries: The Replica that this job is currently running on.static final ODataPropertySession, for queries: The Session that this job is currently servicing.static final ODataPropertyState, for queries: The current state of the job.static final ODataPropertyWaitTime, for queries: The wait time is the time elapsed since the job entered the waiting state.static final ODataPropertyWaitingOn, for queries: The list of jobs that block the current job. -
Constructor Summary
ConstructorsConstructorDescriptionJob(@Nullable String etag, @Nullable String id, @Nullable String description, @Nullable JobState state, @Nullable Duration elapsedTime, @Nullable Duration waitTime, @Nullable List<Job> waitingOn, @Nullable Session session, @Nullable DatabaseReplica replica) Creates an instance of aJobrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thedescriptionrecord component.@Nullable DurationReturns the value of theelapsedTimerecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Stringetag()Returns the value of theetagrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringid()Returns the value of theidrecord component.@Nullable DatabaseReplicareplica()Returns the value of thereplicarecord component.@Nullable Sessionsession()Returns the value of thesessionrecord component.@Nullable JobStatestate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewaitingOnrecord component.@Nullable DurationwaitTime()Returns the value of thewaitTimerecord component.
-
Field Details
-
ID
ID, for queries: The ID of the job. -
DESCRIPTION
Description, for queries: The brief, human readable description of the job. -
STATE
State, for queries: The current state of the job. -
ELAPSED_TIME
ElapsedTime, for queries: The elapsed time since the creation of the job. -
WAIT_TIME
WaitTime, for queries: The wait time is the time elapsed since the job entered the waiting state. -
WAITING_ON
WaitingOn, for queries: The list of jobs that block the current job. (a navigation property, for$expand) -
SESSION
Session, for queries: The Session that this job is currently servicing. (a navigation property, for$expand) -
REPLICA
Replica, for queries: The Replica that this job is currently running on. (a navigation property, for$expand)
-
-
Constructor Details
-
Job
public Job(@Nullable String etag, @Nullable String id, @Nullable String description, @Nullable JobState state, @Nullable Duration elapsedTime, @Nullable Duration waitTime, @Nullable List<Job> waitingOn, @Nullable Session session, @Nullable DatabaseReplica replica) Creates an instance of aJobrecord class.- Parameters:
etag- the value for theetagrecord componentid- the value for theidrecord componentdescription- the value for thedescriptionrecord componentstate- the value for thestaterecord componentelapsedTime- the value for theelapsedTimerecord componentwaitTime- the value for thewaitTimerecord componentwaitingOn- the value for thewaitingOnrecord componentsession- the value for thesessionrecord componentreplica- the value for thereplicarecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
etag
-
id
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
state
-
elapsedTime
Returns the value of theelapsedTimerecord component.- Returns:
- the value of the
elapsedTimerecord component
-
waitTime
-
waitingOn
-
session
-
replica
-