zookeeper-cpp
ZooKeeper Client for C++
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Groups
zk::server::classpath Class Referencefinal

Represents a collection of JARs or other Java entities that should be provided as the --classpath to the JVM. More...

#include <zk/server/classpath.hpp>

Public Member Functions

 classpath (std::vector< std::string > components) noexcept
 Create a classpath specification from the provided components. More...
 
std::string command_line () const
 Get the command-line representation of this classpath. This puts ':' characters between the components. More...
 

Static Public Member Functions

static classpath system_default ()
 Load the system-default classpath for ZooKeeper. More...
 

Friends

std::ostream & operator<< (std::ostream &, const classpath &)
 

Detailed Description

Represents a collection of JARs or other Java entities that should be provided as the --classpath to the JVM.

This is used to fetch both the ZooKeeper package (zookeeper.jar), but the required SLF JAR. If you do not know or care about what that second part means, just call system_default.

Definition at line 18 of file classpath.hpp.

Constructor & Destructor Documentation

zk::server::classpath::classpath ( std::vector< std::string >  components)
explicitnoexcept

Create a classpath specification from the provided components.

Definition at line 107 of file classpath.cpp.

Member Function Documentation

std::string zk::server::classpath::command_line ( ) const

Get the command-line representation of this classpath. This puts ':' characters between the components.

Definition at line 111 of file classpath.cpp.

classpath zk::server::classpath::system_default ( )
static

Load the system-default classpath for ZooKeeper.

This searches for zookeeper.jar nad slf4j-simple.jar in various standard locations.

Definition at line 101 of file classpath.cpp.


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