<commit_before>package org.neo4j.kernel.impl.ha;

import org.neo4j.graphdb.GraphDatabaseService;

public interface Broker
{
    Master getMaster();
    
    void setLastCommittedTxId( long txId );
    
    boolean thisIsMaster();
    
    int getMyMachineId();
    
    // I know... this isn't supposed to be here
    Object instantiateMasterServer( GraphDatabaseService graphDb );
    
    void shutdown();
}<commit_msg>Added invalidateMaster method to control that behaviour from outside<commit_after>package org.neo4j.kernel.impl.ha;

import org.neo4j.graphdb.GraphDatabaseService;

public interface Broker
{
    void invalidateMaster();
    
    Master getMaster();
    
    void setLastCommittedTxId( long txId );
    
    boolean thisIsMaster();
    
    int getMyMachineId();
    
    // I know... this isn't supposed to be here
    Object instantiateMasterServer( GraphDatabaseService graphDb );
    
    void shutdown();
}
{'fraction_non_alphanumeric': 0.08485499462943072, 'fraction_numerical': 0.004296455424274973, 'mean_word_length': 3.1607142857142856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1364767', 'n_tokens_mistral': 274, 'n_tokens_neox': 266, 'n_words': 72}