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

java.lang.Object
  extended by org.apache.accumulo.server.master.state.TabletStateStore
      extended by org.apache.accumulo.server.master.state.ZooTabletStateStore
All Implemented Interfaces:
Iterable<TabletLocationState>

public class ZooTabletStateStore
extends TabletStateStore


Constructor Summary
ZooTabletStateStore()
           
ZooTabletStateStore(DistributedStore store)
           
 
Method Summary
 Iterator<TabletLocationState> iterator()
          Scan the information about the tablets covered by this store
 String name()
          Identifying name for this tablet state store.
protected  TServerInstance parse(byte[] current)
           
 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
 

Constructor Detail

ZooTabletStateStore

public ZooTabletStateStore(DistributedStore store)

ZooTabletStateStore

public ZooTabletStateStore()
                    throws DistributedStoreException
Throws:
DistributedStoreException
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

parse

protected TServerInstance parse(byte[] current)

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

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

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 © 2012 The Apache Software Foundation. All Rights Reserved.