org.apache.accumulo.server.master.state
Class TabletLocationState
java.lang.Object
org.apache.accumulo.server.master.state.TabletLocationState
public class TabletLocationState
- extends java.lang.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
extent
public final KeyExtent extent
future
public final TServerInstance future
current
public final TServerInstance current
last
public final TServerInstance last
walogs
public final java.util.Collection<java.util.Collection<java.lang.String>> walogs
TabletLocationState
public TabletLocationState(KeyExtent extent,
TServerInstance future,
TServerInstance current,
TServerInstance last,
java.util.Collection<java.util.Collection<java.lang.String>> walogs)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getServer
public TServerInstance getServer()
getState
public TabletState getState(java.util.Set<TServerInstance> liveServers)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.