#include <Client.h>
Public Member Functions | |
virtual bool | get (const string &key, string &val)=0 |
virtual void | set (const string &key, const string &val)=0 |
virtual void | put (const string &key, const string &delta)=0 |
virtual void | begin_putNget (const string &key, const string &val)=0 |
virtual bool | remove (const string &key, string &val)=0 |
virtual void | wait_for_all ()=0 |
Provides barrier functionality. | |
virtual void | wait_till_done ()=0 |
The interface to be implemented by any client for the Distributed Map service
virtual void Client::begin_putNget | ( | const string & | key, | |
const string & | val | |||
) | [pure virtual] |
Asynchronous put and get operation. It begins with a put. The call back in Synchronizer_Helper is called which creates the effect of a get
Implemented in DM_Client.
virtual bool Client::get | ( | const string & | key, | |
string & | val | |||
) | [pure virtual] |
Gets the serialized val stored for the key in the Distributed Map. Returns true if key exists and false otherwise
Implemented in DM_Client.
virtual void Client::put | ( | const string & | key, | |
const string & | delta | |||
) | [pure virtual] |
Adds delta to the serialized value for the key in the Distributed Map. This has accumulator semantics. The accumulator logic is provided by the Server_Helper.
Implemented in DM_Client.
virtual bool Client::remove | ( | const string & | key, | |
string & | val | |||
) | [pure virtual] |
Remove the key from the Distributed Map returning the serialized value stored as val. Returns true if key exists and false otherwise
Implemented in DM_Client.
virtual void Client::set | ( | const string & | key, | |
const string & | val | |||
) | [pure virtual] |
Sets val as the serialized value for the key in the Distributed Map. This has replace semantics
Implemented in DM_Client.
virtual void Client::wait_for_all | ( | ) | [pure virtual] |
Provides barrier functionality.
Implemented in DM_Client.
virtual void Client::wait_till_done | ( | ) | [pure virtual] |
Provides functionality to wait for any asynchronous communication to end
Implemented in DM_Client.