0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Hypertable::ClusterDefinitionFile::ToJson Class Reference

Compiles a cluster definition file into an executable bash script. More...

#include <ToJson.h>

Collaboration diagram for Hypertable::ClusterDefinitionFile::ToJson:
Collaboration graph
[legend]

Public Member Functions

 ToJson (const string &fname)
 Constructor. More...
 
string str ()
 Returns pathname of output script. More...
 

Private Attributes

string m_definition_file
 Cluster definition file. More...
 
string m_str
 Output JSON string. More...
 

Detailed Description

Compiles a cluster definition file into an executable bash script.

Definition at line 45 of file ToJson.h.

Constructor & Destructor Documentation

ToJson::ToJson ( const string &  fname)

Constructor.

Initializes m_definition_file with fname and initializes #m_output_script with the pathname of the output script constructed as follows:

${HOME} + "/.cluster/" + m_definition_file + ".sh"

It then calls compilation_needed() to determine if the script needs to be rebuilt and, if so, calls make().

Parameters
fnamePathname of cluster definition file

Definition at line 184 of file ToJson.cc.

Member Function Documentation

string Hypertable::ClusterDefinitionFile::ToJson::str ( )
inline

Returns pathname of output script.

Returns
Pathname of output script

Definition at line 62 of file ToJson.h.

Member Data Documentation

string Hypertable::ClusterDefinitionFile::ToJson::m_definition_file
private

Cluster definition file.

Definition at line 67 of file ToJson.h.

string Hypertable::ClusterDefinitionFile::ToJson::m_str
private

Output JSON string.

Definition at line 70 of file ToJson.h.


The documentation for this class was generated from the following files: