Package codes.grow.packages.skywalking
Record Class TopologyOptions
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.TopologyOptions
- Record Components:
service- only this service's neighbourhood (getServiceTopology)layer- only this layer (global topology)
Narrows
SkyWalkingQueryClient.topology().-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TopologyOptionsThe global topology of every layer. -
Constructor Summary
ConstructorsConstructorDescriptionTopologyOptions(Optional<String> service, Optional<String> layer) Normalises nulls. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static TopologyOptionsThe global topology of one layer.static TopologyOptionsforService(String service) One service's neighbourhood.final inthashCode()Returns a hash code value for this object.layer()Returns the value of thelayerrecord component.service()Returns the value of theservicerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
GLOBAL
The global topology of every layer.
-
-
Constructor Details
-
TopologyOptions
Normalises nulls.- Parameters:
service- servicelayer- layer
-
-
Method Details
-
forService
One service's neighbourhood.- Parameters:
service- service name- Returns:
- options
-
forLayer
The global topology of one layer.- Parameters:
layer- layer, e.g.GENERAL- Returns:
- options
-
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). -
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-
layer
Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-