Package org.apache.hadoop.hbase.thrift
Class ThriftServerRunner
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.thrift.ThriftServerRunner
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Runnable
Run ThriftServer with passed arguments. Access the exception thrown after we complete run -- if
an exception thrown -- via
getRunException()
}. Call close to shutdown this Runner and
hosted ThriftServer
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String[]
(package private) Exception
private static final org.slf4j.Logger
private final org.apache.hadoop.hbase.thrift.ThriftServer
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionThriftServerRunner
(org.apache.hadoop.hbase.thrift.ThriftServer thriftServer, String[] args) -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
-
Field Details
-
LOG
-
exception
-
thriftServer
-
args
-
-
Constructor Details
-
ThriftServerRunner
ThriftServerRunner(org.apache.hadoop.hbase.thrift.ThriftServer thriftServer, String[] args)
-
-
Method Details
-
getThriftServer
org.apache.hadoop.hbase.thrift.ThriftServer getThriftServer() -
getRunException
Returns Empty unlessrun()
threw an exception; if it did, access it here. -
run
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-