org.apache.accumulo.server.master.state
public class MetaDataStateStore extends TabletStateStore
| Modifier and Type | Field and Description |
|---|---|
protected Credentials |
credentials |
protected Instance |
instance |
protected CurrentState |
state |
| Modifier | Constructor and Description |
|---|---|
|
MetaDataStateStore() |
|
MetaDataStateStore(Instance instance,
Credentials credentials,
CurrentState state) |
protected |
MetaDataStateStore(Instance instance,
Credentials credentials,
CurrentState state,
String targetTableName) |
protected |
MetaDataStateStore(String tableName) |
| Modifier and Type | Method and Description |
|---|---|
ClosableIterator<TabletLocationState> |
iterator()
Scan the information about the tablets covered by this store
|
String |
name()
Identifying name for this tablet state store.
|
void |
setFutureLocations(Collection<Assignment> assignments)
Store the assigned locations in the data store.
|
void |
setLocations(Collection<Assignment> assignments)
Tablet servers will update the data store with the location when they bring the tablet online
|
void |
unassign(Collection<TabletLocationState> tablets)
Mark the tablets as having no known or future location.
|
setLocation, unassignprotected final Instance instance
protected final CurrentState state
protected final Credentials credentials
protected MetaDataStateStore(Instance instance, Credentials credentials, CurrentState state, String targetTableName)
public MetaDataStateStore(Instance instance, Credentials credentials, CurrentState state)
protected MetaDataStateStore(String tableName)
public MetaDataStateStore()
public ClosableIterator<TabletLocationState> iterator()
TabletStateStoreiterator in interface Iterable<TabletLocationState>iterator in class TabletStateStorepublic void setLocations(Collection<Assignment> assignments) throws DistributedStoreException
TabletStateStoresetLocations in class TabletStateStoreDistributedStoreExceptionpublic void setFutureLocations(Collection<Assignment> assignments) throws DistributedStoreException
TabletStateStoresetFutureLocations in class TabletStateStoreDistributedStoreExceptionpublic void unassign(Collection<TabletLocationState> tablets) throws DistributedStoreException
TabletStateStoreunassign in class TabletStateStoretablets - the tablets' current informationDistributedStoreExceptionpublic String name()
TabletStateStorename in class TabletStateStoreCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.