def initialize(self, runtime):
if self.is_alive():<EOL><INDENT>raise IllegalState('<STR_LIT>')<EOL><DEDENT>if not JSON_CLIENT.is_json_client_set() and runtime is not None:<EOL><INDENT>JSON_CLIENT.set_json_client(runtime)<EOL><DEDENT>try:<EOL><INDENT>cursor = JSON_CLIENT.json_client['<STR_LIT>']['<STR_LIT>'].find().sort('<STR_LIT>', DESCENDING).limit(-<NUM_LIT:1>)<EOL><DEDENT>except TypeError:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>self.last_timestamp = cursor.next()['<STR_LIT>']<EOL><DEDENT>except StopIteration:<EOL><INDENT>self.last_timestamp = Timestamp(<NUM_LIT:0>, <NUM_LIT:0>)<EOL><DEDENT><DEDENT>
Initialize this listener. Finds most recent timestamp