Package codes.grow.packages.skywalking
Record Class SkyWalkingInstance
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.SkyWalkingInstance
- Record Components:
id-serviceId + "_" + base64(name)name- instance namelanguage- agent language, may be emptyinstanceUUID- instance UUID, may be emptyattributes- reported properties
public record SkyWalkingInstance(String id, String name, String language, String instanceUUID, List<SkyWalkingInstance.Attribute> attributes)
extends Record
A service instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne reported instance property. -
Constructor Summary
ConstructorsConstructorDescriptionSkyWalkingInstance(String id, String name, String language, String instanceUUID, List<SkyWalkingInstance.Attribute> attributes) Copies the attributes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord 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.Returns the value of theinstanceUUIDrecord component.language()Returns the value of thelanguagerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
instanceUUID
Returns the value of theinstanceUUIDrecord component.- Returns:
- the value of the
instanceUUIDrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-