org.apache.accumulo.server.master.state
Class MetaDataStateStore

java.lang.Object
  extended by org.apache.accumulo.server.master.state.TabletStateStore
      extended by org.apache.accumulo.server.master.state.MetaDataStateStore
All Implemented Interfaces:
Iterable<TabletLocationState>
Direct Known Subclasses:
RootTabletStateStore

public class MetaDataStateStore
extends TabletStateStore


Field Summary
protected  TCredentials auths
           
protected  Instance instance
           
protected  CurrentState state
           
 
Constructor Summary
MetaDataStateStore()
           
MetaDataStateStore(Instance instance, TCredentials auths, CurrentState state)
           
 
Method Summary
 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.
 
Methods inherited from class org.apache.accumulo.server.master.state.TabletStateStore
setLocation, unassign
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected final Instance instance

state

protected final CurrentState state

auths

protected final TCredentials auths
Constructor Detail

MetaDataStateStore

public MetaDataStateStore(Instance instance,
                          TCredentials auths,
                          CurrentState state)

MetaDataStateStore

public MetaDataStateStore()
Method Detail

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.