3 #include <zk/config.hpp> 28 using size_type = std::size_t;
31 using registration = std::shared_ptr<registration_info>;
58 size_type
size()
const;
63 return size() == size_type(0);
75 mutable std::mutex _protect;
76 std::shared_ptr<void> _lifetime;
77 std::map<std::string, std::string> _registrations;
size_type size() const
How many registrations have been registered?
Controls the import of the optional and nullopt_t types, as well as the nullopt constexpr.
optional< std::string > find_newest_classpath() const
Get the classpath for running the newest registered server version.
bool unregister_server(registration reg)
Attempt to unregister the server associated with the provided registration.
The package registry tracks configuration of classpaths and JARs needed to run various ZooKeeper vers...
registration register_classpath_server(std::string version, std::string classpath)
Register a server that can be created via the specified Java classpath.
bool empty() const
Is this registry empty?
Represents a version of the data.