This page contains basic information on how to write client applications that use the RAMCloud storage system.
The file src/ClientMain.cc
in the RAMCloud source directory contains a simple RAMCloud application. Here are a few general hints about writing applications:
RamCloud.h
, which is in the RAMCloud source directory. This file also includes many other RAMCloud include files.RAMCloud::RamCloud
object. The arguments to the constructor provide information about how to connect with the cluster; these are typically the same as command-line options passed to the cluster coordinator when it was started.RamCloud
object, you can use its methods to invoke RAMCloud operations.Here is an example command for compiling a RAMCloud client application:
g++ -Lobj.master -lramcloud -Isrc -Iobj.master -o TestClient TestClient.cc
This assumes the following:
If the application is in a different directory, or if the RAMCloud sources are not using the master branch, you will need to adjust the command line accordingly.