3 #include <zk/config.hpp>
12 #include "classpath.hpp"
28 using size_type = std::size_t;
31 using registration = std::shared_ptr<registration_info>;
59 size_type
size()
const;
64 return size() == size_type(0);
71 mutable std::mutex _protect;
72 std::shared_ptr<void> _lifetime;
73 std::map<std::string, classpath> _registrations;
Represents a collection of JARs or other Java entities that should be provided as the --classpath to ...
size_type size() const
How many registrations have been registered?
Imports of optional and nullopt_t types, as well as the nullopt constexpr.
optional< classpath > find_newest_classpath() const
Get the classpath for running the newest registered server version.
registration register_classpath_server(std::string version, classpath packages)
Register a server that can be created via the specified Java classpath.
bool unregister_server(registration reg)
The package registry tracks configuration of classpaths and JARs needed to run various ZooKeeper vers...
package_registry()
Create an empty registry.
bool empty() const
Is this registry empty?
Represents a version of the data.