Package io.deephaven.proto.util
Class ApplicationTicketHelper
java.lang.Object
io.deephaven.proto.util.ApplicationTicketHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
applicationFieldToBytes
(String applicationId, String fieldName) Convenience method to create the flight ticket bytes for the application field.applicationFieldToPath
(String applicationId, String fieldName) Convenience method to create the flight descriptor path for the application field.static String
toReadableString
(byte[] ticket) Convenience method to decode the application ticket bytes into a human-readable description.
-
Field Details
-
TICKET_PREFIX
public static final char TICKET_PREFIX- See Also:
-
FLIGHT_DESCRIPTOR_ROUTE
- See Also:
-
FIELD_PATH_SEGMENT
- See Also:
-
-
Constructor Details
-
ApplicationTicketHelper
public ApplicationTicketHelper()
-
-
Method Details
-
applicationFieldToPath
Convenience method to create the flight descriptor path for the application field.- Parameters:
applicationId
- the application IDfieldName
- the field name- Returns:
- the path
-
applicationFieldToBytes
Convenience method to create the flight ticket bytes for the application field.- Parameters:
applicationId
- the application IDfieldName
- the field name- Returns:
- the ticket bytes
-
toReadableString
Convenience method to decode the application ticket bytes into a human-readable description.- Parameters:
ticket
- the ticket bytes- Returns:
- the human-readable description
-