Date: Tue, 19 Mar 2024 07:27:24 +0000 (UTC) Message-ID: <991830828.11.1710833244171@103071f01d6a> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10_1151812873.1710833244171" ------=_Part_10_1151812873.1710833244171 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This page contains basic information on how to write client appl= ications 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 i=
s in the RAMCloud source directory. This file also includes many other RAMC=
loud include files.RAMCloud::Ram=
Cloud
object. The arguments to the constructor provide information a=
bout how to connect with the cluster; these are typically the same as comma=
nd-line options passed to the cluster coordinator when it was started.RamCloud
object, you can use its methods t=
o invoke RAMCloud operations.Here is an example command for compiling a RAMCloud client application:<= /p>
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 sourc= es are not using the master branch, you will need to adjust the command lin= e accordingly.