org.apache.hadoop.hbase.exceptions
Class RegionMovedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hbase.NotServingRegionException
org.apache.hadoop.hbase.exceptions.RegionMovedException
- All Implemented Interfaces:
- Serializable
@InterfaceAudience.Private
@InterfaceStability.Evolving
public class RegionMovedException
- extends NotServingRegionException
Subclass if the server knows the region is now on another server.
This allows the client to call the new region server without calling the master.
- See Also:
- Serialized Form
RegionMovedException
public RegionMovedException(ServerName serverName,
long locationSeqNum)
RegionMovedException
public RegionMovedException(String s)
- For hadoop.ipc internal call. Do NOT use.
We have to parse the hostname to recreate the exception.
The input is the one generated by
getMessage()
getHostname
public String getHostname()
getPort
public int getPort()
getServerName
public ServerName getServerName()
getLocationSeqNum
public long getLocationSeqNum()
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.