Package codes.grow.packages.skywalking
Record Class TopologyCall
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.TopologyCall
- Record Components:
id- edge idsource- source node idtarget- target node iddetectPoints-CLIENTand/orSERVERsourceComponents- components seen on the source sidetargetComponents- components seen on the target side
public record TopologyCall(String id, String source, String target, List<String> detectPoints, List<String> sourceComponents, List<String> targetComponents)
extends Record
An edge of the service topology (node ids).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedetectPointsrecord 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.source()Returns the value of thesourcerecord component.Returns the value of thesourceComponentsrecord component.target()Returns the value of thetargetrecord component.Returns the value of thetargetComponentsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TopologyCall
public TopologyCall(String id, String source, String target, List<String> detectPoints, List<String> sourceComponents, List<String> targetComponents) Copies the lists.- Parameters:
id- idsource- sourcetarget- targetdetectPoints- detect pointssourceComponents- source componentstargetComponents- target components
-
-
Method Details
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
detectPoints
Returns the value of thedetectPointsrecord component.- Returns:
- the value of the
detectPointsrecord component
-
sourceComponents
Returns the value of thesourceComponentsrecord component.- Returns:
- the value of the
sourceComponentsrecord component
-
targetComponents
Returns the value of thetargetComponentsrecord component.- Returns:
- the value of the
targetComponentsrecord component
-