Record Class ODistributedDatabaseInfo
java.lang.Object
java.lang.Record
com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseInfo
public record ODistributedDatabaseInfo(String name, ODatabaseId id, List<OMemberInfo> members, int quorum, OAllocationInfo allocation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionODistributedDatabaseInfo(String name, ODatabaseId id, List<OMemberInfo> members, int quorum, OAllocationInfo allocation) Creates an instance of aODistributedDatabaseInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallocationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.members()Returns the value of themembersrecord component.name()Returns the value of thenamerecord component.intquorum()Returns the value of thequorumrecord component.toResult()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ODistributedDatabaseInfo
public ODistributedDatabaseInfo(String name, ODatabaseId id, List<OMemberInfo> members, int quorum, OAllocationInfo allocation) Creates an instance of aODistributedDatabaseInforecord class.- Parameters:
name- the value for thenamerecord componentid- the value for theidrecord componentmembers- the value for themembersrecord componentquorum- the value for thequorumrecord componentallocation- the value for theallocationrecord component
-
-
Method Details
-
toResult
-
toLegacyResult
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
members
Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-
quorum
public int quorum()Returns the value of thequorumrecord component.- Returns:
- the value of the
quorumrecord component
-
allocation
Returns the value of theallocationrecord component.- Returns:
- the value of the
allocationrecord component
-