All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lavin.1.3.3.source-code.zookeeper__init.class Maven / Gradle / Ivy

The newest version!
????1#zookeeper__initjava/lang/Objectload()Vconst__0Lclojure/lang/Var;		clojure/lang/Var
getRawRoot()Ljava/lang/Object;

clojure/lang/IFnconst__1Lclojure/lang/AFn;	invoke&(Ljava/lang/Object;)Ljava/lang/Object;zookeeper$loading__4910__auto__
 clojure/lang/Symbol"const__2$	%equals(Ljava/lang/Object;)Z'(
#)zookeeper$fn__394+
,java/util/concurrent/Callable.clojure/lang/LockingTransaction0runInTransaction3(Ljava/util/concurrent/Callable;)Ljava/lang/Object;23
14const__36	7	const__129	:clojure/lang/IPersistentMap<setMeta (Lclojure/lang/IPersistentMap;)V>?
@zookeeper$connectB
CbindRoot(Ljava/lang/Object;)VEF
G	const__13I	J	const__16L	Mzookeeper$closeO
P	const__17R	S	const__20U	Vzookeeper$register_watcherX
Y	const__21[	\	const__24^	_zookeeper$statea
b	const__25d	e	const__28g	hzookeeper$existsj
k	const__29m	n	const__32p	qzookeeper$creates
t	const__33v	w	const__36y	zzookeeper$create_all|
}	const__37	?	const__40?	?zookeeper$children?
?	const__41?	?	const__44?	?$zookeeper$filter_children_by_pattern?
?	const__45?	?	const__48?	?#zookeeper$filter_children_by_prefix?
?	const__49?	?	const__52?	?#zookeeper$filter_children_by_suffix?
?	const__53?	?	const__56?	?zookeeper$delete?
?	const__57?	?	const__60?	?zookeeper$delete_all?
?	const__61?	?	const__64?	?zookeeper$delete_children?
?	const__65?	?	const__68?	?zookeeper$data?
?	const__69?	?	const__72?	?zookeeper$set_data?
?	const__73?	?	const__76?	?zookeeper$compare_and_set_data?
?	const__77?	?	const__80?	?zookeeper$get_acl?
?	const__81?	?	const__84?	?zookeeper$add_auth_info?
?	const__85?	?	const__88?	?zookeeper$acl_id?
?	const__89?	?	const__92?	?
zookeeper$acl?
?	const__93?	?	const__95	
const__100	
const__101	
const__104		
zookeeper$world_acl


const__105	
const__108	zookeeper$ip_acl

const__109	
const__112	zookeeper$host_acl

const__113!	"
const__116$	%zookeeper$auth_acl'
(
const__117*	+
const__120-	.zookeeper$digest_acl0
1const__4Lclojure/lang/Keyword;const__5const__6Ljava/lang/Object;const__7const__8const__9	const__10	const__11	const__14	const__15	const__18	const__19	const__22	const__23	const__26	const__27	const__30	const__31	const__34	const__35	const__38	const__39	const__42	const__43	const__46	const__47	const__50	const__51	const__54	const__55	const__58	const__59	const__62	const__63	const__66	const__67	const__70	const__71	const__74	const__75	const__78	const__79	const__82	const__83	const__86	const__87	const__90	const__91	const__94	const__96	const__97	const__98	const__99
const__102
const__103
const__106
const__107
const__110
const__111
const__114
const__115
const__118
const__119__init0clojure.coreuin-nswclojure/lang/RTyvar8(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Var;{|
z}	zookeeperintern;(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Symbol;??
#?clojure/lang/IObj?doc?keyword<(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Keyword;??
z??
    Zookeeper-clj is a Clojure DSL for Apache ZooKeeper, which "is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services."

Out of the box ZooKeeper provides name service, configuration, and group membership. From these core services, higher-level distributed concurrency abstractions can be built, including distributed locks, distributed queues, barriers, leader-election, and transaction services as described in ZooKeeper Recipes and Solutions and the paper "ZooKeeper: Wait-free coordination for Internet-scale systems".

  See examples:

  * http://developer.yahoo.com/blogs/hadoop/posts/2009/05/using_zookeeper_to_tame_system/
  * http://archive.cloudera.com/cdh/3/zookeeper/zookeeperProgrammers.pdf

?map2([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;??
z?withMeta2(Lclojure/lang/IPersistentMap;)Lclojure/lang/IObj;????clojure/lang/AFn?connect?file?clojure/lang/Keyword?34	?column?54	?java/lang/Integer?valueOf(I)Ljava/lang/Integer;??
??67	?line?84	?97	?arglists?:4	?connection-string?&?keys?timeout-msec?watcher?vector5([Ljava/lang/Object;)Lclojure/lang/IPersistentVector;??
z?or??java/lang/Long?(J)Ljava/lang/Long;??
??java/util/Arrays?asList%([Ljava/lang/Object;)Ljava/util/List;??
??clojure/lang/PersistentList?create0(Ljava/util/List;)Lclojure/lang/IPersistentList;??
??;7	?<4	?Returns a ZooKeeper client.?
zookeeper.clj?close?=7	?client?tag?	ZooKeeper?>7	?.Closes the connection to the ZooKeeper server.?register-watcher??7	?@7	?:Registers a default watcher function with this connection.?state?A7	?B7	?mReturns current state of client, including :CONNECTING,
   :ASSOCIATING, :CONNECTED, :CLOSED, or :AUTH_FAILED?existsC7	pathStringwatch?async?
callbackcontextjava/lang/BooleanFALSELjava/lang/Boolean;	D7	Returns the status of the given node, and nil
   if the node does not exist.

  Examples:

    (use 'zookeeper)
    (def client (connect "127.0.0.1:2181"
                         :wacher #(println "event received: " %)))

    (defn callback [result]
      (println "got callback result: " result))

    (exists client "/yadda" :watch? true)
    (create client "/yadda")
    (exists client "/yadda")
    (def p0 (exists client "/yadda" :async? true))
    @p0
    (def p1 (exists client "/yadda" :callback callback))
    @p1
?E7	dataaclpersistent?!sequential?#zi%acls'open-acl-unsafe)F7	+1 Creates a node, returning either the node's name, or a promise
    with a result map if either the :async? option is true or if a
    :callback function is provided. If the node already exists,
    create will return false.

  Options:

    :persistent? indicates if the node should be persistent
    :sequential? indicates if the node should be sequential
    :data data to associate with the node
    :acl access control, see the acls map
    :async? indicates that the create should occur asynchronously,
            a promise will be returned
    :callback indicates that the create should occur asynchronously
              and that this function should be called when it does,
              a promise will also be returned


  Example:

    (use 'zookeeper)
    (def client (connect "127.0.0.1:2181" :watcher #(println "event received: " %)))

    (defn callback [result]
      (println "got callback result: " result))

    ;; first delete the baz node if it exists
    (delete-all client "/baz")
    ;; now create a persistent parent node, /baz, and two child nodes
    (def p0 (create client "/baz" :callback callback :persistent? true))
    @p0
    (def p1 (create client "/baz/1" :callback callback))
    @p1
    (def p2 (create client "/baz/2-" :async? true :sequential? true))
    @p2
    (create client "/baz/3")

-
create-all/G7	1options3H7	5iCreate a node and all of its parents. The last node will be ephemeral,
   and its parents will be persistent. Option, like :persistent? :sequential?,
   :acl, will only be applied to the last child node.

  Examples:
  (delete-all client "/foo")
  (create-all client "/foo/bar/baz" :persistent? true)
  (create-all client "/foo/bar/baz/n-" :sequential? true)


7children9I7	;sort?=J7	?Returns a sequence of child node name for the given node, nil if it has no children and false if the node does not exist.

  Examples:

    (use 'zookeeper)
    (def client (connect "127.0.0.1:2181" :watcher #(println "event received: " %)))

    (defn callback [result]
      (println "got callback result: " result))

    (delete-all client "/foo")
    (create client "/foo" :persistent? true)
    (repeatedly 5 #(create client "/foo/child-" :sequential? true))

    (children client "/foo")
    (def p0 (children client "/foo" :async? true))
    @p0
    (def p1 (children client "/foo" :callback callback))
    @p1
    (def p2 (children client "/foo" :async? true :watch? true))
    @p2
    (def p3 (children client "/foo" :async? true :watcher #(println "watched event: " %)))
    @p3

Afilter-children-by-patternCK7	EdirGpatternIL7	KKReturns a sequence of child node names filtered by the given regex pattern.Mfilter-children-by-prefixOM7	QprefixSN7	UHReturns a sequence of child node names that start with the given prefix.Wfilter-children-by-suffixYO7	[suffix]P7	_FReturns a sequence of child node names that end with the given suffix.adeletecQ7	eversiong????????R7	k?Deletes the given node, if it exists

  Examples:

    (use 'zookeeper)
    (def client (connect "127.0.0.1:2181" :watch #(println "event received: " %)))

    (defn callback [result]
      (println "got callback result: " result))

    (create client "/foo" :persistent? true)
    (create client "/bar" :persistent? true)

    (delete client "/foo")
    (def p0 (delete client "/bar" :callback callback))
    @p0
m
delete-alloS7	qT7	s'Deletes a node and all of its children.udelete-childrenwU7	yV7	{#Deletes all of the node's children.}W7	X7	??Returns a map with two fields, :data and :stat. The :stat field is the same map returned by the exists function, the :data field is a byte array of data from the given node.

  Examples:

    (use 'zookeeper)
    (def client (connect "127.0.0.1:2181" :watcher #(println "event received: " %)))

    (defn callback [result]
      (println "got callback result: " result))

    (delete-all client "/foo")
    (create client "/foo" :persistent? true :data (.getBytes "Hello World" "UTF-8"))
    (def result (data client "/foo"))
    (String. (:data result))
    (:stat result)

    (def p0 (data client "/foo" :async? true))
    @p0
    (String. (:data @p0))

    (def p1 (data client "/foo" :watch? true :callback callback))
    @p1
    (String. (:data @p1))

    (create client "/foobar" :persistent? true :data (.getBytes (pr-str {:a 1, :b 2, :c 3} "UTF-8")))
    (read-string (String. (:data (data client "/foobar"))))

?set-data?Y7	?Z7	??Sets the value of the data field of the given node.

  Examples:

    (use 'zookeeper)
    (def client (connect "127.0.0.1:2181" :watcher #(println "event received: " %)))

    (defn callback [result]
      (println "got callback result: " result))

    (delete-all client "/foo")
    (create client "/foo" :persistent? true)

    (set-data client "/foo" (.getBytes "Hello World" "UTF-8") 0)
    (String. (:data (data client "/foo")))


    (def p0 (set-data client "/foo" (.getBytes "New Data" "UTF-8") 0 :async? true))
    @p0
    (String. (:data (data client "/foo")))

    (def p1 (set-data client "/foo" (.getBytes "Even Newer Data" "UTF-8") 1 :callback callback))
    @p1
    (String. (:data (data client "/foo")))

?compare-and-set-data?[7	?node?expected-value?	new-value?\7	?}Sets the data field of the given node, only if the current data
   byte-array equals (Arrays/equal) the given expected-value.?get-acl?]7	?^7	?+Returns a sequence of ACLs associated with the given node.

  Examples:

    (use 'zookeeper)
    (def client (connect "127.0.0.1:2181" :watcher #(println "event received: " %)))
    (add-auth-info client "digest" "david:secret")

    (defn callback [result]
      (println "got callback result: " result))

    (delete-all client "/foo")
    (create client "/foo" :acl [(acl "auth" "" :read :write :create :delete)])
    (get-acl client "/foo")

    (def p0 (get-acl client "/foo" :async? true))

    (def p1 (get-acl client "/foo" :callback callback))

?
add-auth-info?_7	?scheme?auth?`7	?Add auth info to connection.?acl-id?a7	?id-value?b7	?t
?
	java/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class;

getClassLoader()Ljava/lang/ClassLoader;

clojure/lang/CompilerpushNSandLoader(Ljava/lang/ClassLoader;)V

popThreadBindings
CodeLineNumberTable!y$63454678497:4;7<49I=7>7LR?7@7U[A7B7^dC7D7gmE7F7pvG7H7yI7J7??K7L7??M7N7??O7P7??Q7R7??S7T7??U7V7??W7X7??Y7Z7??[7\7??]7^7??_7`7??a7b7??c7d7??e7f4g4h4i4j7k7	l7m7n7o7!p7q7$*r7s7-	!?!Ȳ
?????Y???!??#?&?*??W?,Y?-?/?5W?8Y?;?=?AY?CY?D?H?KY?N?=?AY?PY?Q?H?TY?W?=?AY?YY?Z?H?]Y?`?=?AY?bY?c?H?fY?i?=?AY?kY?l?H?oY?r?=?AY?tY?u?H?xY?{?=?AY?}Y?~?H??Y???=?AY??Y???H??Y???=?AY??Y???H??Y???=?AY??Y???H??Y???=?AY??Y???H??Y???=?AY??Y???H??Y???=?AY??Y???H??Y???=?AY??Y???H??Y???=?AY??Y?ƶH??Y???=?AY??Y?϶H??Y???=?AY??Y?ضH??Y???=?AY??Y??H??Y???=?AY??Y??H??Y???=?AY??Y??H??Y???=?AY??Y???H??Y??=?AY??H?Y??=?AY?
Y??H?Y??=?AY?Y??H?Y??=?AY?Y? ?H?#Y?&?=?AY?(Y?)?H?,Y?/?=?AY?1Y?2?H?"  4	t!"?"?vx?~??
??????Y???SY?S???=?????v?????&???~??8?????????????????????????????????????Y?Y???SY???SY?Y???SY?Y???SY???S??SYƸ?SY?Y???SYǸ?S??S??S??S?Ӹٳ????????
?Y???SY?Y?Y???SY???SY?Y???SY?Y???SY???S??SYƸ?SY?Y???SYǸ?S??S??S??S?Ӹ?SY???SY??SY???SY?SY???SY??SY???SY	?S?????;??~??K%?????Y?Y?????Y??SY??S???=??S??S?Ӹٳ?
?Y???SY?Y?Y?????Y??SY??S???=??S??S?Ӹ?SY???SY??SY???SY?SY???SY%??SY???SY	?S?????N??~??T)?????Y?Y?????Y??SY??S???=??SY???S??S?Ӹٳ?
?Y???SY?Y?Y?????Y??SY??S???=??SY???S??S?Ӹ?SY???SY??SY???SY?SY???SY)??SY???SY	?S?????W???~??].?????Y?Y?????Y??SY??S???=??S??S?Ӹٳ?
?Y???SY?Y?Y?????Y??SY??S???=??S??S?Ӹ?SY???SY??SY???SY?SY???SY.??SY???SY	?S?????`??~??f6????Y?Y?????Y??SY??S???=??SY?????Y??SY??S???=??SY???SY?Y???SY?Y???SY	??SY??SY
??SY??S??SYƸ?SY?Y	??SY?SY??SY?SY??SY??S??S??S??S?Ӹٳ
?Y???SY?Y?Y?????Y??SY??S???=??SY?????Y??SY??S???=??SY???SY?Y???SY?Y???SY	??SY??SY
??SY??S??SYƸ?SY?Y	??SY?SY??SY?SY??SY??S??S??S??S?Ӹ?SY???SY??SY???SYSY???SY6??SY???SY	?S?????i??~??of????Y?Y??SY??SY???SY?Y???SY?Y??SY ??SY"??SY$??SY??SY
??SY??S??SYƸ?SY
?Y"??SY?SY$??SY?SY ??SY?Y&(??SY*??S?Ӹ????Y???SY???SY???SY??S???=??SY??SY??SY??SY	?S??S??S??S?Ӹٳ,
?Y???SY?Y?Y??SY??SY???SY?Y???SY?Y??SY ??SY"??SY$??SY??SY
??SY??S??SYƸ?SY
?Y"??SY?SY$??SY?SY ??SY?Y&(??SY*??S?Ӹ????Y???SY???SY???SY??S???=??SY??SY??SY??SY	?S??S??S??S?Ӹ?SY???SY??SY???SY.SY???SYf??SY???SY	?S?????r?0?~??x????2?Y?Y?????Y??SY??S???=??SY??SY???SY4??S??S?Ӹٳ6
?Y???SY?Y?Y?????Y??SY??S???=??SY??SY???SY4??S??S?Ӹ?SY???SY??SY???SY8SY???SY???SY???SY	?S?????{?:?~???????<?Y?Y?????Y??SY??S???=??SY??SY???SY?Y???SY?Y???SY	??SY??SY
??SY??SY>??S??SYƸ?SY?Y	??SY?SY??SY?SY??SY??S??S??S??S?Ӹٳ@
?Y???SY?Y?Y?????Y??SY??S???=??SY??SY???SY?Y???SY?Y???SY	??SY??SY
??SY??SY>??S??SYƸ?SY?Y	??SY?SY??SY?SY??SY??S??S??S??S?Ӹ?SY???SY??SY???SYBSY???SY???SY???SY	?S???????D?~??????F?Y?Y?????Y??SY??S???=??SYH??SYJ??S??S?ӸٳL
?Y???SY?Y?Y?????Y??SY??S???=??SYH??SYJ??S??S?Ӹ?SY???SY??SY???SYNSY???SY??SY???SY	?S???????P?~??????R?Y?Y?????Y??SY??S???=??SYH??SYT??S??S?ӸٳV
?Y???SY?Y?Y?????Y??SY??S???=??SYH??SYT??S??S?Ӹ?SY???SY??SY???SYXSY???SY??SY???SY	?S???????Z?~???????\?Y?Y?????Y??SY??S???=??SYH??SY^??S??S?Ӹٳ`
?Y???SY?Y?Y?????Y??SY??S???=??SYH??SY^??S??S?Ӹ?SY???SY??SY???SYbSY???SY???SY???SY	?S???????d?~???????f?Y?Y?????Y??SY??S???=??SY??SY???SY?Y???SY?Yh??SY??SY
??SY??S??SYƸ?SY?Yh??SYi??SY??SY?SY??SY??S??S??S??S?Ӹٳl
?Y???SY?Y?Y?????Y??SY??S???=??SY??SY???SY?Y???SY?Yh??SY??SY
??SY??S??SYƸ?SY?Yh??SYi??SY??SY?SY??SY??S??S??S??S?Ӹ?SY???SY??SY???SYnSY???SY???SY???SY	?S???????p?~???#???r?Y?Y?????Y??SY??S???=??SY??SY???SY4??S??S?Ӹٳt
?Y???SY?Y?Y?????Y??SY??S???=??SY??SY???SY4??S??S?Ӹ?SY???SY??SY???SYvSY???SY#??SY???SY	?S???????x?~???+???z?Y?Y?????Y??SY??S???=??SY??SY???SY4??S??S?Ӹٳ|
?Y???SY?Y?Y?????Y??SY??S???=??SY??SY???SY4??S??S?Ӹ?SY???SY??SY???SY~SY???SY+??SY???SY	?S????????~???6?????Y?Y?????Y??SY??S???=??SY??SY???SY?Y???SY?Y???SY	??SY??SY
??SY??S??SYƸ?SY?Y	??SY?SY??SY?SY??SY??S??S??S??S?Ӹٳ?
?Y???SY?Y?Y?????Y??SY??S???=??SY??SY???SY?Y???SY?Y???SY	??SY??SY
??SY??S??SYƸ?SY?Y	??SY?SY??SY?SY??SY??S??S??S??S?Ӹ?SY???SY??SY???SY?SY???SY6??SY???SY	?S?????????~???d?????Y?Y?????Y??SY??S???=??SY??SY??SYh??SY???SY?Y???SY?Y??SY
??SY??S??SYƸ?SY?Y??SY?SY??SY??S??S??S??S?Ӹٳ?
?Y???SY?Y?Y?????Y??SY??S???=??SY??SY??SYh??SY???SY?Y???SY?Y??SY
??SY??S??SYƸ?SY?Y??SY?SY??SY??S??S??S??S?Ӹ?SY???SY??SY???SY?SY???SYd??SY???SY	?S?????????~?????????Y?Y?????Y??SY??S???=??SY???SY???SY???S??S?Ӹٳ?
?Y???SY?Y?Y?????Y??SY??S???=??SY???SY???SY???S??S?Ӹ?SY???SY??SY???SY?SY???SY???SY???SY	?S?????????~?????????Y?Y?????Y??SY??S???=??SY??SY???SY?Y???SY?Y??SY
??SY??S??SYƸ?SY?Y??SY?SY??SY??S??S??S??S?Ӹٳ?
?Y???SY?Y?Y?????Y??SY??S???=??SY??SY???SY?Y???SY?Y??SY
??SY??S??SYƸ?SY?Y??SY?SY??SY??S??S??S??S?Ӹ?SY???SY??SY???SY?SY???SY???SY???SY	?S?????????~?????????Y?Y?????Y??SY??S???=??SY???SY???S??S?Ӹٳ?
?Y???SY?Y?Y?????Y??SY??S???=??SY???SY???S??S?Ӹ?SY???SY??SY???SY?SY???SY???SY???SY	?S?????????~???Ǹ????Y?Y???SY???S??S?Ӹٳ?
?Y???SY?Y?Y???SY???S??S?Ӹ?SY???SY??SY???SY?SY???SYǸ?SY???SY	?S??????? ?~???̸????Y?Y???SY???SY???SY???SY???S??S?Ӹٳ?
?Y???SY?Y?Y???SY???SY???SY???SY???S??S?Ӹ?SY???SY??SY???SY?SY???SY̸?SY???SY	?S???????ĸ~????????Y???SY??SY???SY??SY???SY?S?????ȸ?????̸???????????d?????ұ	?!???Yȸ?SY̸?SY??SYd??S??????ո~???????Y?Y???SYٸ?S??S?Ӹٳ?
?Y???SY?Y?Y???SYٸ?S??S?Ӹ?SY???SY??SY???SY?SY???SY??SY???SY	?S??????߸~???????Y?Y??SY???SYٸ?S??S?Ӹٳ?
?Y???SY?Y?Y??SY???SYٸ?S??S?Ӹ?SY???SY??SY???SY?SY???SY??SY???SY	?S???????~????????Y?Y???SY???SYٸ?S??S?Ӹٳ?
?Y???SY?Y?Y???SY???SYٸ?S??S?Ӹ?SY???SY??SY???SY?SY???SY???SY???SY	?S???????~??#??????Y?Y???SYٸ?S??S?Ӹٳ?
?Y???SY?Y?Y???SYٸ?S??S?Ӹ?SY???SY??SY???SY?SY???SY???SY???SY	?S?????&???~??,??????Y?Y???SY??SY???SYٸ?S??S?Ӹٳ
?Y???SY?Y?Y???SY??SY???SYٸ?S??S?Ӹ?SY???SY??SY???SYSY???SY???SY???SY	?S?????/?	!4 ??
????? ?? ??




© 2015 - 2024 Weber Informatics LLC | Privacy Policy