org.fusesource.fabric.jaas
Class ZookeeperProperties

java.lang.Object
  extended by java.util.AbstractMap<java.lang.String,java.lang.String>
      extended by org.apache.felix.utils.properties.Properties
          extended by org.fusesource.fabric.jaas.ZookeeperProperties
All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.String>, org.apache.zookeeper.Watcher, org.linkedin.zookeeper.client.LifecycleListener

public class ZookeeperProperties
extends org.apache.felix.utils.properties.Properties
implements org.linkedin.zookeeper.client.LifecycleListener, org.apache.zookeeper.Watcher


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.felix.utils.properties.Properties
org.apache.felix.utils.properties.Properties.Layout, org.apache.felix.utils.properties.Properties.PropertiesReader, org.apache.felix.utils.properties.Properties.PropertiesWriter
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher
org.apache.zookeeper.Watcher.Event
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
protected  java.lang.String path
           
protected  org.linkedin.zookeeper.client.IZKClient zooKeeper
           
 
Constructor Summary
ZookeeperProperties(org.linkedin.zookeeper.client.IZKClient zooKeeper, java.lang.String path)
           
 
Method Summary
protected  void fetchData()
           
 void onConnected()
           
 void onDisconnected()
           
 void process(org.apache.zookeeper.WatchedEvent watchedEvent)
           
 void save()
           
 
Methods inherited from class org.apache.felix.utils.properties.Properties
clear, contains, entrySet, escapeJava, getFooter, getHeader, hex, load, load, load, load, loadLayout, put, remove, save, save, save, saveLayout, setFooter, setHeader, unescapeJava
 
Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

path

protected java.lang.String path

zooKeeper

protected org.linkedin.zookeeper.client.IZKClient zooKeeper
Constructor Detail

ZookeeperProperties

public ZookeeperProperties(org.linkedin.zookeeper.client.IZKClient zooKeeper,
                           java.lang.String path)
                    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

save

public void save()
          throws java.io.IOException
Overrides:
save in class org.apache.felix.utils.properties.Properties
Throws:
java.io.IOException

process

public void process(org.apache.zookeeper.WatchedEvent watchedEvent)
Specified by:
process in interface org.apache.zookeeper.Watcher

fetchData

protected void fetchData()
                  throws java.lang.Exception
Throws:
java.lang.Exception

onConnected

public void onConnected()
Specified by:
onConnected in interface org.linkedin.zookeeper.client.LifecycleListener

onDisconnected

public void onDisconnected()
Specified by:
onDisconnected in interface org.linkedin.zookeeper.client.LifecycleListener


Copyright © 2012 FuseSource. All Rights Reserved.