APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.jfr.internal

public final Class MetadataDescriptor

extends Object
Class Inheritance
Imports
java.io.DataOutput, .IOException, java.util.ArrayList, .Collection, .Date, .List, .Locale, .TimeZone, jdk.jfr.EventType, jdk.jfr.internal.consumer.RecordingInput

Metadata about a chunk

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static record
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv long
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv final List<EventType>
pack-priv long
pack-priv String
public long
pack-priv MetadataDescriptor.Element
pack-priv final Collection<Type>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
public List<EventType>
public int
public String
public Collection<Type>
private static void
public static MetadataDescriptor
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

pack-priv static void
write(List<Type> types, DataOutput output)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ATTRIBUTE_CONSTANT_POOLback to summary
pack-priv static final String ATTRIBUTE_CONSTANT_POOL
ATTRIBUTE_DEFAULT_VALUEback to summary
pack-priv static final String ATTRIBUTE_DEFAULT_VALUE
ATTRIBUTE_DIMENSIONback to summary
pack-priv static final String ATTRIBUTE_DIMENSION
ATTRIBUTE_DSTback to summary
pack-priv static final String ATTRIBUTE_DST
ATTRIBUTE_GMT_OFFSETback to summary
pack-priv static final String ATTRIBUTE_GMT_OFFSET
ATTRIBUTE_IDback to summary
pack-priv static final String ATTRIBUTE_ID
ATTRIBUTE_LOCALEback to summary
pack-priv static final String ATTRIBUTE_LOCALE
ATTRIBUTE_NAMEback to summary
pack-priv static final String ATTRIBUTE_NAME
ATTRIBUTE_SIMPLE_TYPEback to summary
pack-priv static final String ATTRIBUTE_SIMPLE_TYPE
ATTRIBUTE_SUPER_TYPEback to summary
pack-priv static final String ATTRIBUTE_SUPER_TYPE
ATTRIBUTE_TYPE_IDback to summary
pack-priv static final String ATTRIBUTE_TYPE_ID
dstback to summary
pack-priv long dst
ELEMENT_ANNOTATIONback to summary
pack-priv static final String ELEMENT_ANNOTATION
ELEMENT_FIELDback to summary
pack-priv static final String ELEMENT_FIELD
ELEMENT_SETTINGback to summary
pack-priv static final String ELEMENT_SETTING
ELEMENT_TYPEback to summary
pack-priv static final String ELEMENT_TYPE
eventTypesback to summary
pack-priv final List<EventType> eventTypes
gmtOffsetback to summary
pack-priv long gmtOffset
localeback to summary
pack-priv String locale
metadataIdback to summary
public long metadataId
rootback to summary
pack-priv MetadataDescriptor.Element root
typesback to summary
pack-priv final Collection<Type> types

Constructor Detail

MetadataDescriptorback to summary
pack-priv MetadataDescriptor()

Method Detail

getDSTback to summary
public int getDST()
getEventTypesback to summary
public List<EventType> getEventTypes()
getGMTOffsetback to summary
public int getGMTOffset()
getLocaleback to summary
public String getLocale()
getTypesback to summary
public Collection<Type> getTypes()
prettyPrintXMLback to summary
private static void prettyPrintXML(Appendable sb, String indent, MetadataDescriptor.Element e) throws IOException
readback to summary
public static MetadataDescriptor read(RecordingInput input) throws IOException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
writeback to summary
pack-priv static void write(List<Type> types, DataOutput output) throws IOException
jdk.jfr.internal back to summary

pack-priv final Record MetadataDescriptor.Attribute

extends Record
Class Inheritance
Record Components
name:String 
value:String 

Field Summary

Modifier and TypeField and Description
private final String
name

Record Component accessed by name().

private final String
value

Record Component accessed by value().

Constructor Summary

AccessConstructor and Description
pack-priv
Attribute(String name, String value)

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
name()

Record Component getter of name.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public String
value()

Record Component getter of value.

Field Detail

nameback to summary
private final String name

Record Component accessed by name().

valueback to summary
private final String value

Record Component accessed by value().

Constructor Detail

Attributeback to summary
pack-priv Attribute(String name, String value)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

nameback to summary
public String name()

Record Component getter of name.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

valueback to summary
public String value()

Record Component getter of value.

jdk.jfr.internal back to summary

pack-priv final Class MetadataDescriptor.Element

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final List<MetadataDescriptor.Attribute>
pack-priv final List<MetadataDescriptor.Element>
pack-priv final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public void
pack-priv void
addAttribute(String name, Object value)

pack-priv String
pack-priv long
attribute(String name, long defaultValue)

pack-priv String
attribute(String name, String defaultValue)

pack-priv List<MetadataDescriptor.Element>
elements(String... names)

pack-priv long
pack-priv MetadataDescriptor.Element
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attributesback to summary
pack-priv final List<MetadataDescriptor.Attribute> attributes
elementsback to summary
pack-priv final List<MetadataDescriptor.Element> elements
nameback to summary
pack-priv final String name

Constructor Detail

Elementback to summary
pack-priv Element(String name)

Method Detail

addback to summary
pack-priv void add(MetadataDescriptor.Element element)
addArrayAttributeback to summary
public void addArrayAttribute(MetadataDescriptor.Element element, String name, Object value)
addAttributeback to summary
pack-priv void addAttribute(String name, Object value)
attributeback to summary
pack-priv String attribute(String name)
attributeback to summary
pack-priv long attribute(String name, long defaultValue)
attributeback to summary
pack-priv String attribute(String name, String defaultValue)
elementsback to summary
pack-priv List<MetadataDescriptor.Element> elements(String... names)
longValueback to summary
pack-priv long longValue(String name)
newChildback to summary
pack-priv MetadataDescriptor.Element newChild(String name)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override