Class RefreshHFilesClient
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.client.example.RefreshHFilesClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
@Private
public class RefreshHFilesClient
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool, Closeable
This client class is for invoking the refresh HFile function deployed on the Region Server side
via the RefreshHFilesService.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRefreshHFilesClient
(org.apache.hadoop.conf.Configuration cfg) Constructor with Conf object -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static void
void
refreshHFiles
(Table table) void
refreshHFiles
(TableName tableName) int
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
LOG
-
connection
-
-
Constructor Details
-
RefreshHFilesClient
Constructor with Conf object- Parameters:
cfg
- theConfiguration
object to use
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
refreshHFiles
- Throws:
Throwable
-
refreshHFiles
- Throws:
Throwable
-
run
- Specified by:
run
in interfaceorg.apache.hadoop.util.Tool
- Throws:
Exception
-
main
- Throws:
Exception
-