mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
39 lines
652 B
C++
39 lines
652 B
C++
// mms.h
|
|
|
|
#pragma once
|
|
|
|
#include "../stdafx.h"
|
|
#include "../util/background.h"
|
|
|
|
namespace mongo {
|
|
|
|
class MMS : public BackgroundJob {
|
|
public:
|
|
|
|
MMS();
|
|
~MMS();
|
|
|
|
/**
|
|
e.g. http://mms.10gen.com/ping/
|
|
*/
|
|
void setBaseUrl( const string& host );
|
|
|
|
void setToken( const string& s ){ token = s; }
|
|
void setName( const string& s ){ name = s; }
|
|
|
|
void setPingInterval( int seconds ){ secsToSleep = seconds; }
|
|
|
|
void run();
|
|
|
|
private:
|
|
string baseurl;
|
|
int secsToSleep;
|
|
|
|
string token;
|
|
string name;
|
|
|
|
};
|
|
|
|
extern MMS mms;
|
|
}
|