Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- register(String, MetricsRegistry)
- register(String, Function, Codec)
- register(String, Function)
- register(String, Function, Function)
- decode(BsonValue, ExtraInfo)
- encode(T, ExtraInfo)
- toSchema(SchemaContext)
- toMetricResults(T)
- dumpToBson(T)
- dumpToJson(T)
- dumpToJson(Path, T)
- createDumpPath(String)
- createDumpPath(Path, String)
- createDumpPath(String, String)
- createDatePath(Path, String, String)
Class MetricsRegistry<T>
java.lang.Object
com.hypixel.hytale.metrics.MetricsRegistry<T>
- All Implemented Interfaces:
Codec<T>, RawJsonCodec<T>, SchemaConvertable<T>
- Direct Known Subclasses:
ExecutorMetricsRegistry
-
Field Summary
FieldsFields inherited from interface Codec
BASE64_PATTERN, BOOLEAN, BSON_DOCUMENT, BYTE, BYTE_ARRAY, DOUBLE, DOUBLE_ARRAY, DURATION, DURATION_SECONDS, FLOAT, FLOAT_ARRAY, INSTANT, INT_ARRAY, INTEGER, LOG_LEVEL, LONG, LONG_ARRAY, NULLABLE_BOOLEAN, PATH, SHORT, STRING, STRING_ARRAY, UUID_BINARY, UUID_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathcreateDatePath(Path dir, String prefix, String suffix) static PathcreateDumpPath(String ext) static PathcreateDumpPath(String prefix, String ext) static PathcreateDumpPath(Path dir, String ext) org.bson.BsonValuedumpToBson(T t) voiddumpToJson(Path path, T t) dumpToJson(T t) org.bson.BsonValueregister(String id, MetricsRegistry<Void> metricsRegistry) <R extends MetricProvider>
MetricsRegistry<T> <R> MetricsRegistry<T> <R> MetricsRegistry<T> Deprecated.toMetricResults(T t) toSchema(SchemaContext context) Returns a schema object that represents this codec as JSON Schema.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Codec
decode, decodeJson, encodeMethods inherited from interface RawJsonCodec
decodeJsonMethods inherited from interface SchemaConvertable
toSchema
-
Field Details
-
JSON_SETTINGS
public static final org.bson.json.JsonWriterSettings JSON_SETTINGS
-
-
Constructor Details
-
MetricsRegistry
public MetricsRegistry() -
MetricsRegistry
-
-
Method Details
-
register
-
register
-
register
public <R extends MetricProvider> MetricsRegistry<T> register(String id, @Nonnull Function<T, R> func) -
register
@Deprecated public <R> MetricsRegistry<T> register(String id, Function<T, R> func, Function<R, MetricsRegistry<R>> codecFunc) Deprecated. -
decode
-
encode
-
toSchema
Description copied from interface:SchemaConvertableReturns a schema object that represents this codec as JSON Schema.- Specified by:
toSchemain interfaceSchemaConvertable<T>- Parameters:
context- A context to use to assist with creating the schema.- Returns:
- the generated schema.
-
toMetricResults
-
dumpToBson
-
dumpToJson
- Throws:
IOException
-
dumpToJson
- Throws:
IOException
-
createDumpPath
- Throws:
IOException
-
createDumpPath
-
createDumpPath
@Nonnull public static Path createDumpPath(@Nullable String prefix, @Nullable String ext) throws IOException - Throws:
IOException
-
createDatePath
-