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

java.lang.Object
  extended by org.apache.accumulo.server.master.state.TabletLocationState

public class TabletLocationState
extends Object

When a tablet is assigned, we mark its future location. When the tablet is opened, we set its current location. A tablet should never have both a future and current location. A tablet server is always associated with a unique session id. If the current tablet server has a different session, we know the location information is out-of-date.


Field Summary
 boolean chopped
           
 TServerInstance current
           
 KeyExtent extent
           
 TServerInstance future
           
 TServerInstance last
           
 Collection<Collection<String>> walogs
           
 
Constructor Summary
TabletLocationState(KeyExtent extent, TServerInstance future, TServerInstance current, TServerInstance last, Collection<Collection<String>> walogs, boolean chopped)
           
 
Method Summary
 TServerInstance getServer()
           
 TabletState getState(Set<TServerInstance> liveServers)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

extent

public final KeyExtent extent

future

public final TServerInstance future

current

public final TServerInstance current

last

public final TServerInstance last

walogs

public final Collection<Collection<String>> walogs

chopped

public final boolean chopped
Constructor Detail

TabletLocationState

public TabletLocationState(KeyExtent extent,
                           TServerInstance future,
                           TServerInstance current,
                           TServerInstance last,
                           Collection<Collection<String>> walogs,
                           boolean chopped)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getServer

public TServerInstance getServer()

getState

public TabletState getState(Set<TServerInstance> liveServers)


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