org.apache.hadoop.hbase.master
Class AssignmentManager.RegionState
java.lang.Object
org.apache.hadoop.hbase.master.AssignmentManager.RegionState
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Enclosing class:
- AssignmentManager
public static class AssignmentManager.RegionState
- extends Object
- implements org.apache.hadoop.io.Writable
State of a Region while undergoing transitions.
AssignmentManager.RegionState
public AssignmentManager.RegionState()
update
public void update(AssignmentManager.RegionState.State state,
long stamp,
ServerName serverName)
update
public void update(AssignmentManager.RegionState.State state)
updateTimestamp
public void updateTimestamp(long stamp)
updateTimestampToNow
public void updateTimestampToNow()
getState
public AssignmentManager.RegionState.State getState()
getStamp
public long getStamp()
getRegion
public HRegionInfo getRegion()
getServerName
public ServerName getServerName()
isClosing
public boolean isClosing()
isClosed
public boolean isClosed()
isPendingClose
public boolean isPendingClose()
isOpening
public boolean isOpening()
isOpened
public boolean isOpened()
isPendingOpen
public boolean isPendingOpen()
isOffline
public boolean isOffline()
isSplitting
public boolean isSplitting()
isSplit
public boolean isSplit()
toString
public String toString()
- Overrides:
toString
in class Object
toDescriptiveString
public String toDescriptiveString()
- A slower (but more easy-to-read) stringification
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.