public abstract class TabletStateStore extends Object implements Iterable<TabletLocationState>
| Constructor and Description |
|---|
TabletStateStore() |
| Modifier and Type | Method and Description |
|---|---|
protected static TabletStateStore |
getStoreForTablet(KeyExtent extent,
AccumuloServerContext context) |
abstract ClosableIterator<TabletLocationState> |
iterator()
Scan the information about the tablets covered by this store
|
abstract String |
name()
Identifying name for this tablet state store.
|
abstract void |
setFutureLocations(Collection<Assignment> assignments)
Store the assigned locations in the data store.
|
static void |
setLocation(AccumuloServerContext context,
Assignment assignment) |
abstract void |
setLocations(Collection<Assignment> assignments)
Tablet servers will update the data store with the location when they bring the tablet online
|
static void |
suspend(AccumuloServerContext context,
TabletLocationState tls,
Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers,
long suspensionTimestamp) |
abstract 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.
|
static void |
unassign(AccumuloServerContext context,
TabletLocationState tls,
Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers) |
abstract void |
unassign(Collection<TabletLocationState> tablets,
Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers)
Mark the tablets as having no known or future location.
|
abstract void |
unsuspend(Collection<TabletLocationState> tablets)
Remove a suspension marker for a collection of tablets, moving them to being simply unassigned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic abstract String name()
public abstract ClosableIterator<TabletLocationState> iterator()
iterator in interface Iterable<TabletLocationState>public abstract void setFutureLocations(Collection<Assignment> assignments) throws DistributedStoreException
DistributedStoreExceptionpublic abstract void setLocations(Collection<Assignment> assignments) throws DistributedStoreException
DistributedStoreExceptionpublic abstract void unassign(Collection<TabletLocationState> tablets, Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers) throws DistributedStoreException
tablets - the tablets' current informationlogsForDeadServers - a cache of logs in use by servers when they diedDistributedStoreExceptionpublic abstract void suspend(Collection<TabletLocationState> tablets, Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers, long suspensionTimestamp) throws DistributedStoreException
DistributedStoreExceptionpublic abstract void unsuspend(Collection<TabletLocationState> tablets) throws DistributedStoreException
DistributedStoreExceptionpublic static void unassign(AccumuloServerContext context, TabletLocationState tls, Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers) throws DistributedStoreException
DistributedStoreExceptionpublic static void suspend(AccumuloServerContext context, TabletLocationState tls, Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers, long suspensionTimestamp) throws DistributedStoreException
DistributedStoreExceptionpublic static void setLocation(AccumuloServerContext context, Assignment assignment) throws DistributedStoreException
DistributedStoreExceptionprotected static TabletStateStore getStoreForTablet(KeyExtent extent, AccumuloServerContext context) throws DistributedStoreException
DistributedStoreExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.