|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.accumulo.server.master.state.TabletStateStore
public abstract class TabletStateStore
Interface for storing information about tablet assignments. There are three implementations: ZooTabletStateStore: information about the root tablet is stored in ZooKeeper MetaDataStateStore: information about the other tablets are stored in the metadata table
Constructor Summary | |
---|---|
TabletStateStore()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TabletStateStore()
Method Detail |
---|
public abstract String name()
public abstract Iterator<TabletLocationState> iterator()
iterator
in interface Iterable<TabletLocationState>
public abstract void setFutureLocations(Collection<Assignment> assignments) throws DistributedStoreException
assignments
-
DistributedStoreException
public abstract void setLocations(Collection<Assignment> assignments) throws DistributedStoreException
assignments
-
DistributedStoreException
public abstract void unassign(Collection<TabletLocationState> tablets) throws DistributedStoreException
tablets
- the tablets' current information
DistributedStoreException
public static void unassign(TabletLocationState tls) throws DistributedStoreException
DistributedStoreException
public static void setLocation(Assignment assignment) throws DistributedStoreException
DistributedStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |