Record Class SchedulerTrafficSnapshot
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.SchedulerTrafficSnapshot
- All Implemented Interfaces:
Serializable
public record SchedulerTrafficSnapshot(String type, boolean enabled, String activity, List<SchedulerTrafficSnapshot.Transfer> transfers)
extends Record
implements Serializable
Detached, read-only view of current Master scheduler workers.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSchedulerTrafficSnapshot(String type, boolean enabled, String activity, List<SchedulerTrafficSnapshot.Transfer> transfers) Creates an instance of aSchedulerTrafficSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactivity()Returns the value of theactivityrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetransfersrecord component.type()Returns the value of thetyperecord component.
-
Constructor Details
-
SchedulerTrafficSnapshot
public SchedulerTrafficSnapshot(String type, boolean enabled, String activity, List<SchedulerTrafficSnapshot.Transfer> transfers) Creates an instance of aSchedulerTrafficSnapshotrecord class.- Parameters:
type- the value for thetyperecord componentenabled- the value for theenabledrecord componentactivity- the value for theactivityrecord componenttransfers- the value for thetransfersrecord 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. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
activity
Returns the value of theactivityrecord component.- Returns:
- the value of the
activityrecord component
-
transfers
Returns the value of thetransfersrecord component.- Returns:
- the value of the
transfersrecord component
-