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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TabletLocationState.BadLocationStateException
-
Field Summary
Fields Modifier and Type Field Description boolean
chopped
TServerInstance
current
KeyExtent
extent
TServerInstance
future
TServerInstance
last
SuspendingTServer
suspend
Collection<Collection<String>>
walogs
-
Constructor Summary
Constructors Constructor Description TabletLocationState(KeyExtent extent, TServerInstance future, TServerInstance current, TServerInstance last, SuspendingTServer suspend, Collection<Collection<String>> walogs, boolean chopped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TServerInstance
futureOrCurrent()
TServerInstance
getServer()
TabletState
getState(Set<TServerInstance> liveServers)
String
toString()
-
-
-
Field Detail
-
extent
public final KeyExtent extent
-
future
public final TServerInstance future
-
current
public final TServerInstance current
-
last
public final TServerInstance last
-
suspend
public final SuspendingTServer suspend
-
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, SuspendingTServer suspend, Collection<Collection<String>> walogs, boolean chopped) throws TabletLocationState.BadLocationStateException
-
-
Method Detail
-
futureOrCurrent
public TServerInstance futureOrCurrent()
-
getServer
public TServerInstance getServer()
-
getState
public TabletState getState(Set<TServerInstance> liveServers)
-
-