zookeeper-cpp
ZooKeeper Client for C++
|
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 &) |
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.
|
explicitnoexcept |
Create a classpath specification from the provided components.
Definition at line 107 of file classpath.cpp.
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.
|
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.