Revision 0a2f18a7 include/ReplicaThread.h

View differences:

include/ReplicaThread.h
155 155
    FedReplicaManager * frm;
156 156
};
157 157

  
158
// -----------------------------------------------------------------------------
159
// Thread to send hearbeats to each follower
160
// -----------------------------------------------------------------------------
161
class HeartBeatThread : public ReplicaThread
162
{
163
public:
164
    HeartBeatThread(int follower_id);
165

  
166
    virtual ~HeartBeatThread(){};
167

  
168
private:
169
    /**
170
     *  Error statistics for follower
171
     */
172
    time_t last_error;
173

  
174
    int num_errors;
175

  
176
    /**
177
     * Specific logic for the replicate process
178
     */
179
    int replicate();
180

  
181
    /**
182
     * Pointers to other components
183
     */
184
    RaftManager * raftm;
185
};
186

  
158 187
#endif

Also available in: Unified diff