MCPcopy Create free account
hub / github.com/apache/mesos / URL

Class URL

include/mesos/zookeeper/url.hpp:46–72  ·  view source on GitHub ↗

Describes a ZooKeeper URL of the form: zk://username:password@servers/path Where username:password is for the 'digest' scheme (see ZooKeeper documentation regarding "access controls using ACLs") and servers is of the form: host1:port1,host2:port2,host3:port3 Note that in the future we may want to support authentication mechanisms other than 'digest' and have a URL of the following form. zk://

Source from the content-addressed store, hash-verified

44//
45// zk://scheme:credentials@servers/path
46class URL
47{
48public:
49 static Try<URL> parse(const std::string& url);
50
51 static const char* scheme()
52 {
53 return "zk://";
54 }
55
56 const Option<Authentication> authentication;
57 const std::string servers;
58 const std::string path;
59
60private:
61 URL(const std::string& _servers,
62 const std::string& _path)
63 : servers(_servers),
64 path(_path) {}
65
66 URL(const std::string& credentials,
67 const std::string& _servers,
68 const std::string& _path)
69 : authentication(Authentication("digest", credentials)),
70 servers(_servers),
71 path(_path) {}
72};
73
74
75inline Try<URL> URL::parse(const std::string& url)

Callers 6

parseMethod · 0.70
detectedMethod · 0.50
mainFunction · 0.50
MesosProcessMethod · 0.50
urlMethod · 0.50

Calls

no outgoing calls

Tested by 2

urlMethod · 0.40