Class MetaDataStateStore
- java.lang.Object
-
- org.apache.accumulo.server.master.state.TabletStateStore
-
- org.apache.accumulo.server.master.state.MetaDataStateStore
-
- All Implemented Interfaces:
Iterable<TabletLocationState>
- Direct Known Subclasses:
RootTabletStateStore
public class MetaDataStateStore extends TabletStateStore
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientContextcontextprotected CurrentStatestate
-
Constructor Summary
Constructors Modifier Constructor Description MetaDataStateStore(ClientContext context, CurrentState state)protectedMetaDataStateStore(ClientContext context, CurrentState state, String targetTableName)MetaDataStateStore(ServerContext context)protectedMetaDataStateStore(ServerContext context, String tableName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClosableIterator<TabletLocationState>iterator()Scan the information about the tablets covered by this storeStringname()Identifying name for this tablet state store.voidsetFutureLocations(Collection<Assignment> assignments)Store the assigned locations in the data store.voidsetLocations(Collection<Assignment> assignments)Tablet servers will update the data store with the location when they bring the tablet onlinevoidsuspend(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.voidunassign(Collection<TabletLocationState> tablets, Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers)Mark the tablets as having no known or future location.voidunsuspend(Collection<TabletLocationState> tablets)Remove a suspension marker for a collection of tablets, moving them to being simply unassigned.-
Methods inherited from class org.apache.accumulo.server.master.state.TabletStateStore
getStoreForTablet, setLocation, suspend, unassign
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
context
protected final ClientContext context
-
state
protected final CurrentState state
-
-
Constructor Detail
-
MetaDataStateStore
protected MetaDataStateStore(ClientContext context, CurrentState state, String targetTableName)
-
MetaDataStateStore
public MetaDataStateStore(ClientContext context, CurrentState state)
-
MetaDataStateStore
protected MetaDataStateStore(ServerContext context, String tableName)
-
MetaDataStateStore
public MetaDataStateStore(ServerContext context)
-
-
Method Detail
-
iterator
public ClosableIterator<TabletLocationState> iterator()
Description copied from class:TabletStateStoreScan the information about the tablets covered by this store- Specified by:
iteratorin interfaceIterable<TabletLocationState>- Specified by:
iteratorin classTabletStateStore
-
setLocations
public void setLocations(Collection<Assignment> assignments) throws DistributedStoreException
Description copied from class:TabletStateStoreTablet servers will update the data store with the location when they bring the tablet online- Specified by:
setLocationsin classTabletStateStore- Throws:
DistributedStoreException
-
setFutureLocations
public void setFutureLocations(Collection<Assignment> assignments) throws DistributedStoreException
Description copied from class:TabletStateStoreStore the assigned locations in the data store.- Specified by:
setFutureLocationsin classTabletStateStore- Throws:
DistributedStoreException
-
unassign
public void unassign(Collection<TabletLocationState> tablets, Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers) throws DistributedStoreException
Description copied from class:TabletStateStoreMark the tablets as having no known or future location.- Specified by:
unassignin classTabletStateStore- Parameters:
tablets- the tablets' current informationlogsForDeadServers- a cache of logs in use by servers when they died- Throws:
DistributedStoreException
-
suspend
public void suspend(Collection<TabletLocationState> tablets, Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers, long suspensionTimestamp) throws DistributedStoreException
Description copied from class:TabletStateStoreMark tablets as having no known or future location, but desiring to be returned to their previous tserver.- Specified by:
suspendin classTabletStateStore- Throws:
DistributedStoreException
-
unsuspend
public void unsuspend(Collection<TabletLocationState> tablets) throws DistributedStoreException
Description copied from class:TabletStateStoreRemove a suspension marker for a collection of tablets, moving them to being simply unassigned.- Specified by:
unsuspendin classTabletStateStore- Throws:
DistributedStoreException
-
name
public String name()
Description copied from class:TabletStateStoreIdentifying name for this tablet state store.- Specified by:
namein classTabletStateStore
-
-