Package codes.grow.packages.skywalking
Record Class Topology
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.Topology
- Record Components:
nodes- servicescalls- edges
A service graph (
getGlobalTopology / getServiceTopology). OAP reports no call
counts here.-
Constructor Summary
ConstructorsConstructorDescriptionTopology(List<TopologyNode> nodes, List<TopologyCall> calls) Copies the lists. -
Method Summary
Modifier and TypeMethodDescriptioncalls()Returns the value of thecallsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.The name of a node id.nodes()Returns the value of thenodesrecord component.Dependency links: parent = source node name, child = target node name (the id when the node is unknown),callCount0 (the topology carries no counts); sorted by parent, then child.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Topology
Copies the lists.- Parameters:
nodes- nodescalls- calls
-
-
Method Details
-
nodeName
The name of a node id.- Parameters:
id- node id- Returns:
- the name, or
""when unknown
-
toDependencies
Dependency links: parent = source node name, child = target node name (the id when the node is unknown),callCount0 (the topology carries no counts); sorted by parent, then child.- Returns:
- the links
-
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). -
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
calls
Returns the value of thecallsrecord component.- Returns:
- the value of the
callsrecord component
-