Record Class ONodeStateNetwork
java.lang.Object
java.lang.Record
com.orientechnologies.orient.distributed.context.coordination.message.state.ONodeStateNetwork
public record ONodeStateNetwork(OTopologyStateNetwork topology, List<ODatabaseStateNetwork> databases, OTransactionSequenceStatus sequenceStatus)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionONodeStateNetwork(OTopologyStateNetwork topology, List<ODatabaseStateNetwork> databases, OTransactionSequenceStatus sequenceStatus) Creates an instance of aONodeStateNetworkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatabasesrecord component.final booleanIndicates whether some other object is "equal to" this one.static ONodeStateNetworkfromNetwork(DataInput input) final inthashCode()Returns a hash code value for this object.Returns the value of thesequenceStatusrecord component.topology()Returns the value of thetopologyrecord component.final StringtoString()Returns a string representation of this record class.voidwriteNetwork(DataOutput output)
-
Constructor Details
-
ONodeStateNetwork
public ONodeStateNetwork(OTopologyStateNetwork topology, List<ODatabaseStateNetwork> databases, OTransactionSequenceStatus sequenceStatus) Creates an instance of aONodeStateNetworkrecord class.- Parameters:
topology- the value for thetopologyrecord componentdatabases- the value for thedatabasesrecord componentsequenceStatus- the value for thesequenceStatusrecord component
-
-
Method Details
-
writeNetwork
- Throws:
IOException
-
fromNetwork
- Throws:
IOException
-
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 withObjects::equals(Object,Object). -
topology
Returns the value of thetopologyrecord component.- Returns:
- the value of the
topologyrecord component
-
databases
Returns the value of thedatabasesrecord component.- Returns:
- the value of the
databasesrecord component
-
sequenceStatus
Returns the value of thesequenceStatusrecord component.- Returns:
- the value of the
sequenceStatusrecord component
-