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:
java.lang.Iterable<TabletLocationState>
Direct Known Subclasses:
RootTabletStateStore

public class MetaDataStateStore
extends TabletStateStore


Field Summary
protected  CurrentState state
           
 
Constructor Summary
MetaDataStateStore(CurrentState state)
           
 
Method Summary
 java.util.Iterator<TabletLocationState> iterator()
          Scan the information about the tablets covered by this store
 java.lang.String name()
          Identifying name for this tablet state store.
 void setFutureLocations(java.util.Collection<Assignment> assignments)
          Store the assigned locations in the data store.
 void setLocations(java.util.Collection<Assignment> assignments)
          Tablet servers will update the data store with the location when they bring the tablet online
 void unassign(java.util.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

state

protected final CurrentState state
Constructor Detail

MetaDataStateStore

public MetaDataStateStore(CurrentState state)
Method Detail

iterator

public java.util.Iterator<TabletLocationState> iterator()
Description copied from class: TabletStateStore
Scan the information about the tablets covered by this store

Specified by:
iterator in interface java.lang.Iterable<TabletLocationState>
Specified by:
iterator in class TabletStateStore

setLocations

public void setLocations(java.util.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(java.util.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(java.util.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
Throws:
DistributedStoreException

name

public java.lang.String name()
Description copied from class: TabletStateStore
Identifying name for this tablet state store.

Specified by:
name in class TabletStateStore


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.