org.apache.hadoop.hbase.exceptions
Class RegionMovedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.hadoop.hbase.NotServingRegionException
                  extended by 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

Constructor Summary
RegionMovedException(ServerName serverName, long locationSeqNum)
           
RegionMovedException(String s)
          For hadoop.ipc internal call.
 
Method Summary
 String getHostname()
           
 long getLocationSeqNum()
           
 String getMessage()
           
 int getPort()
           
 ServerName getServerName()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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()

Method Detail

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.