public class ZooTabletStateStore extends TabletStateStore
| Constructor and Description |
|---|
ZooTabletStateStore() |
ZooTabletStateStore(DistributedStore store) |
| Modifier and Type | Method and Description |
|---|---|
ClosableIterator<TabletLocationState> |
iterator()
Scan the information about the tablets covered by this store
|
String |
name()
Identifying name for this tablet state store.
|
protected TServerInstance |
parse(byte[] current) |
void |
setFutureLocations(Collection<Assignment> assignments)
Store the assigned locations in the data store.
|
void |
setLocations(Collection<Assignment> assignments)
Tablet servers will update the data store with the location when they bring the tablet online
|
void |
suspend(Collection<TabletLocationState> tablets,
Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers,
long suspensionTimestamp)
Mark tablets as having no known or future location, but desiring to be returned to their
previous tserver.
|
void |
unassign(Collection<TabletLocationState> tablets,
Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers)
Mark the tablets as having no known or future location.
|
void |
unsuspend(Collection<TabletLocationState> tablets)
Remove a suspension marker for a collection of tablets, moving them to being simply unassigned.
|
getStoreForTablet, setLocation, suspend, unassignclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ZooTabletStateStore(DistributedStore store)
public ZooTabletStateStore()
throws DistributedStoreException
DistributedStoreExceptionpublic ClosableIterator<TabletLocationState> iterator()
TabletStateStoreiterator in interface Iterable<TabletLocationState>iterator in class TabletStateStoreprotected TServerInstance parse(byte[] current)
public void setFutureLocations(Collection<Assignment> assignments) throws DistributedStoreException
TabletStateStoresetFutureLocations in class TabletStateStoreDistributedStoreExceptionpublic void setLocations(Collection<Assignment> assignments) throws DistributedStoreException
TabletStateStoresetLocations in class TabletStateStoreDistributedStoreExceptionpublic void unassign(Collection<TabletLocationState> tablets, Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers) throws DistributedStoreException
TabletStateStoreunassign in class TabletStateStoretablets - the tablets' current informationlogsForDeadServers - a cache of logs in use by servers when they diedDistributedStoreExceptionpublic void suspend(Collection<TabletLocationState> tablets, Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers, long suspensionTimestamp) throws DistributedStoreException
TabletStateStoresuspend in class TabletStateStoreDistributedStoreExceptionpublic void unsuspend(Collection<TabletLocationState> tablets) throws DistributedStoreException
TabletStateStoreunsuspend in class TabletStateStoreDistributedStoreExceptionpublic String name()
TabletStateStorename in class TabletStateStoreCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.