org.apache.accumulo.server.master.state
public class MetaDataStateStore extends TabletStateStore
Modifier and Type | Field and Description |
---|---|
protected TCredentials |
auths |
protected Instance |
instance |
protected CurrentState |
state |
Constructor and Description |
---|
MetaDataStateStore() |
MetaDataStateStore(Instance instance,
TCredentials auths,
CurrentState state) |
Modifier and Type | Method and Description |
---|---|
Iterator<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, unassign
protected final Instance instance
protected final CurrentState state
protected final TCredentials auths
public MetaDataStateStore(Instance instance, TCredentials auths, CurrentState state)
public MetaDataStateStore()
public Iterator<TabletLocationState> iterator()
TabletStateStore
iterator
in interface Iterable<TabletLocationState>
iterator
in class TabletStateStore
public void setLocations(Collection<Assignment> assignments) throws DistributedStoreException
TabletStateStore
setLocations
in class TabletStateStore
DistributedStoreException
public void setFutureLocations(Collection<Assignment> assignments) throws DistributedStoreException
TabletStateStore
setFutureLocations
in class TabletStateStore
DistributedStoreException
public void unassign(Collection<TabletLocationState> tablets) throws DistributedStoreException
TabletStateStore
unassign
in class TabletStateStore
tablets
- the tablets' current informationDistributedStoreException
public String name()
TabletStateStore
name
in class TabletStateStore
Copyright © 2015 Apache Accumulo Project. All Rights Reserved.