org.apache.hadoop.yarn.server.resourcemanager.recovery
Class ZKStore

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKStore
All Implemented Interfaces:
ApplicationsStore, NodeStore, Store

public class ZKStore
extends Object
implements Store


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.server.resourcemanager.recovery.Store
Store.ApplicationInfo, Store.RMState
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.server.resourcemanager.recovery.ApplicationsStore
ApplicationsStore.ApplicationStore
 
Constructor Summary
ZKStore(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 ApplicationsStore.ApplicationStore createApplicationStore(org.apache.hadoop.yarn.api.records.ApplicationId application, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context)
           
protected  org.apache.zookeeper.Watcher createZKWatcher()
           
 void doneWithRecovery()
           
 org.apache.hadoop.yarn.api.records.NodeId getNextNodeId()
           
 boolean isLoggable()
           
 void removeApplication(org.apache.hadoop.yarn.api.records.ApplicationId application)
           
 void removeNode(RMNode node)
           
 Store.RMState restore()
           
 void storeNode(RMNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZKStore

public ZKStore(org.apache.hadoop.conf.Configuration conf)
        throws IOException
Throws:
IOException
Method Detail

createZKWatcher

protected org.apache.zookeeper.Watcher createZKWatcher()

storeNode

public void storeNode(RMNode node)
               throws IOException
Specified by:
storeNode in interface NodeStore
Throws:
IOException

removeNode

public void removeNode(RMNode node)
                throws IOException
Specified by:
removeNode in interface NodeStore
Throws:
IOException

getNextNodeId

public org.apache.hadoop.yarn.api.records.NodeId getNextNodeId()
                                                        throws IOException
Specified by:
getNextNodeId in interface NodeStore
Throws:
IOException

createApplicationStore

public ApplicationsStore.ApplicationStore createApplicationStore(org.apache.hadoop.yarn.api.records.ApplicationId application,
                                                                 org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context)
                                                          throws IOException
Specified by:
createApplicationStore in interface ApplicationsStore
Throws:
IOException

removeApplication

public void removeApplication(org.apache.hadoop.yarn.api.records.ApplicationId application)
                       throws IOException
Specified by:
removeApplication in interface ApplicationsStore
Throws:
IOException

isLoggable

public boolean isLoggable()
Specified by:
isLoggable in interface NodeStore

doneWithRecovery

public void doneWithRecovery()
Specified by:
doneWithRecovery in interface Store

restore

public Store.RMState restore()
                      throws IOException
Specified by:
restore in interface Store
Throws:
IOException


Copyright © 2012 Apache Software Foundation. All Rights Reserved.