Record Class OProfilerEntrySnapshot
java.lang.Object
java.lang.Record
com.orientechnologies.common.profiler.OProfilerEntrySnapshot
public record OProfilerEntrySnapshot(long entries, long last, long min, long max, long total, long firstExecution, long lastExecution, long lastResetEntries, long lastReset)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOProfilerEntrySnapshot(long entries, long last, long min, long max, long total, long firstExecution, long lastExecution, long lastResetEntries, long lastReset) Creates an instance of aOProfilerEntrySnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloataverage()longentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefirstExecutionrecord component.final inthashCode()Returns a hash code value for this object.longlast()Returns the value of thelastrecord component.longReturns the value of thelastExecutionrecord component.longReturns the value of thelastResetrecord component.longReturns the value of thelastResetEntriesrecord component.longmax()Returns the value of themaxrecord component.longmin()Returns the value of theminrecord component.static OProfilerEntrySnapshotreadNetwork(DataInput input) final StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.voidwriteNetwork(DataOutput out)
-
Constructor Details
-
OProfilerEntrySnapshot
-
OProfilerEntrySnapshot
public OProfilerEntrySnapshot(long entries, long last, long min, long max, long total, long firstExecution, long lastExecution, long lastResetEntries, long lastReset) Creates an instance of aOProfilerEntrySnapshotrecord class.- Parameters:
entries- the value for theentriesrecord componentlast- the value for thelastrecord componentmin- the value for theminrecord componentmax- the value for themaxrecord componenttotal- the value for thetotalrecord componentfirstExecution- the value for thefirstExecutionrecord componentlastExecution- the value for thelastExecutionrecord componentlastResetEntries- the value for thelastResetEntriesrecord componentlastReset- the value for thelastResetrecord component
-
-
Method Details
-
writeNetwork
- Throws:
IOException
-
readNetwork
- Throws:
IOException
-
toDocument
-
average
public float average() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
entries
public long entries()Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
last
public long last()Returns the value of thelastrecord component.- Returns:
- the value of the
lastrecord component
-
min
public long min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public long max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
firstExecution
public long firstExecution()Returns the value of thefirstExecutionrecord component.- Returns:
- the value of the
firstExecutionrecord component
-
lastExecution
public long lastExecution()Returns the value of thelastExecutionrecord component.- Returns:
- the value of the
lastExecutionrecord component
-
lastResetEntries
public long lastResetEntries()Returns the value of thelastResetEntriesrecord component.- Returns:
- the value of the
lastResetEntriesrecord component
-
lastReset
public long lastReset()Returns the value of thelastResetrecord component.- Returns:
- the value of the
lastResetrecord component
-