org.apache.accumulo.server.master.state
Class TabletLocationState
java.lang.Object
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.
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
TabletLocationState
public TabletLocationState(KeyExtent extent,
TServerInstance future,
TServerInstance current,
TServerInstance last,
Collection<Collection<String>> walogs,
boolean chopped)
throws TabletLocationState.BadLocationStateException
- Throws:
TabletLocationState.BadLocationStateException
toString
public String toString()
- Overrides:
toString
in class Object
getServer
public TServerInstance getServer()
getState
public TabletState getState(Set<TServerInstance> liveServers)
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.