org.apache.accumulo.server.master.state
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(Assignment assignment) |
abstract void |
setLocations(Collection<Assignment> assignments)
Tablet servers will update the data store with the location when they bring the tablet online
|
abstract void |
unassign(Collection<TabletLocationState> tablets)
Mark the tablets as having no known or future location.
|
static void |
unassign(TabletLocationState tls) |
public 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) throws DistributedStoreException
tablets - the tablets' current informationDistributedStoreExceptionpublic static void unassign(TabletLocationState tls) throws DistributedStoreException
DistributedStoreExceptionpublic static void setLocation(Assignment assignment) throws DistributedStoreException
DistributedStoreExceptionCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.