public abstract class TabletStateStore extends Object implements Iterable<TabletLocationState>
Constructor and Description |
---|
TabletStateStore() |
Modifier and Type | Method and Description |
---|---|
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 |
unassign(AccumuloServerContext context,
TabletLocationState tls) |
abstract void |
unassign(Collection<TabletLocationState> tablets)
Mark the tablets as having no known or future location.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public abstract String name()
public abstract ClosableIterator<TabletLocationState> iterator()
iterator
in interface Iterable<TabletLocationState>
public abstract void setFutureLocations(Collection<Assignment> assignments) throws DistributedStoreException
DistributedStoreException
public abstract void setLocations(Collection<Assignment> assignments) throws DistributedStoreException
DistributedStoreException
public abstract void unassign(Collection<TabletLocationState> tablets) throws DistributedStoreException
tablets
- the tablets' current informationDistributedStoreException
public static void unassign(AccumuloServerContext context, TabletLocationState tls) throws DistributedStoreException
DistributedStoreException
public static void setLocation(AccumuloServerContext context, Assignment assignment) throws DistributedStoreException
DistributedStoreException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.