org.apache.accumulo.server.master.state
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
protected final Instance instance
state
protected final CurrentState state
auths
protected final TCredentials auths
MetaDataStateStore
public MetaDataStateStore(Instance instance,
TCredentials auths,
CurrentState state)
MetaDataStateStore
public MetaDataStateStore()
iterator
public Iterator<TabletLocationState> iterator()
- Description copied from class:
TabletStateStore
- Scan the information about the tablets covered by this store
- Specified by:
iterator
in interface Iterable<TabletLocationState>
- Specified by:
iterator
in class TabletStateStore
setLocations
public void setLocations(Collection<Assignment> assignments)
throws DistributedStoreException
- Description copied from class:
TabletStateStore
- Tablet servers will update the data store with the location when they bring the tablet online
- Specified by:
setLocations
in class TabletStateStore
- Throws:
DistributedStoreException
setFutureLocations
public void setFutureLocations(Collection<Assignment> assignments)
throws DistributedStoreException
- Description copied from class:
TabletStateStore
- Store the assigned locations in the data store.
- Specified by:
setFutureLocations
in class TabletStateStore
- Throws:
DistributedStoreException
unassign
public void unassign(Collection<TabletLocationState> tablets)
throws DistributedStoreException
- Description copied from class:
TabletStateStore
- Mark the tablets as having no known or future location.
- Specified by:
unassign
in class TabletStateStore
- Parameters:
tablets
- the tablets' current information
- Throws:
DistributedStoreException
name
public String name()
- Description copied from class:
TabletStateStore
- Identifying name for this tablet state store.
- Specified by:
name
in class TabletStateStore
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.