org.apache.hadoop.yarn.server.resourcemanager.recovery
Class ZKStore
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKStore
- All Implemented Interfaces:
- ApplicationsStore, NodeStore, Store
public class ZKStore
- extends Object
- implements Store
|
Constructor Summary |
ZKStore(org.apache.hadoop.conf.Configuration conf)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZKStore
public ZKStore(org.apache.hadoop.conf.Configuration conf)
throws IOException
- Throws:
IOException
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.