Contents
Class TelemetryStorage
java.lang.Object
com.hypixel.hytale.server.core.telemetry.TelemetryStorage
Stores telemetry data in a local directory for users to be aware of what data is shared.
Each session creates a new JSONL file. Old files are compressed and deleted after 7 days.
-
Constructor Summary
ConstructorsConstructorDescriptionTelemetryStorage(String sessionId) Creates a new telemetry storage instance for the given session. -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the current session file and compresses it.voidwriteEntry(String json) Writes the provided JSON entry to the currently open session file.
-
Constructor Details
-
TelemetryStorage
Creates a new telemetry storage instance for the given session.- Parameters:
sessionId- The unique session identifier
-
-
Method Details
-
writeEntry
Writes the provided JSON entry to the currently open session file. Thread-safe.- Parameters:
json- The JSON string to write (one packet per line in JSONL format)
-
closeAndCompress
public void closeAndCompress()Closes the current session file and compresses it.
-