HbMsgSerializer

org.eso.ias.heartbeat.HbMsgSerializer

HbPublisher trait for sending heartbeat

Implementers of this trait sends the heartbeat to the publisher framework, a file or any other

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def deserializeFromString(hbMessage: String): (Heartbeat, HeartbeatStatus, Map[String, String], Long)

Parse the passed string to return a tuple with the fields of the HB mesage

Parse the passed string to return a tuple with the fields of the HB mesage

Value parameters

A

string representation of the message with the timestamp

Attributes

Returns

a tuple with the full running id, the status, properties and the timestamp

def serializeToString(hb: Heartbeat, status: HeartbeatStatus, additionalProeprties: Map[String, String], timestamp: Long): String

Serialize the HB message to publish in a string

Serialize the HB message to publish in a string

Value parameters

hb

the heartbeat to publish

status

the status of the tool

timestamp

the timestamp to associate to the message

Attributes

Returns

A string representation of the message and the timestamp