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 Iterator<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 Iterator<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(TabletLocationState tls) throws DistributedStoreException
DistributedStoreException
public static void setLocation(Assignment assignment) throws DistributedStoreException
DistributedStoreException
Copyright © 2015 Apache Accumulo Project. All Rights Reserved.