Author: billie
Date: Tue Sep 25 19:34:40 2012
New Revision: 1390096
URL: http://svn.apache.org/viewvc?rev=1390096&view=rev
Log:
ACCUMULO-765 reintroduced org.apache.accumulo.core.zookeeper.ZooCache (now
deprecated) to avoid breaking API compatibility
Added:
accumulo/trunk/core/src/main/java/org/apache/accumulo/core/zookeeper/ZooCache.java
Added:
accumulo/trunk/core/src/main/java/org/apache/accumulo/core/zookeeper/ZooCache.java
URL:
http://svn.apache.org/viewvc/accumulo/trunk/core/src/main/java/org/apache/accumulo/core/zookeeper/ZooCache.java?rev=1390096&view=auto
==============================================================================
---
accumulo/trunk/core/src/main/java/org/apache/accumulo/core/zookeeper/ZooCache.java
(added)
+++
accumulo/trunk/core/src/main/java/org/apache/accumulo/core/zookeeper/ZooCache.java
Tue Sep 25 19:34:40 2012
@@ -0,0 +1,39 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.accumulo.core.zookeeper;
+
+import org.apache.accumulo.fate.zookeeper.ZooReader;
+import org.apache.zookeeper.Watcher;
+
+/**
+ * This class remains here for backwards compatibility.
+ *
+ * @deprecated since 1.5, replaced by {@link
org.apache.accumulo.fate.zookeeper.ZooCache}
+ */
+public class ZooCache extends org.apache.accumulo.fate.zookeeper.ZooCache {
+ public ZooCache(String zooKeepers, int sessionTimeout) {
+ super(zooKeepers, sessionTimeout);
+ }
+
+ public ZooCache(String zooKeepers, int sessionTimeout, Watcher watcher) {
+ super(zooKeepers, sessionTimeout, watcher);
+ }
+
+ public ZooCache(ZooReader reader, Watcher watcher) {
+ super(reader, watcher);
+ }
+}