Package org.apache.iotdb.db.service
Class RPCService
- java.lang.Object
-
- org.apache.iotdb.commons.service.ThriftService
-
- org.apache.iotdb.db.service.RPCService
-
- All Implemented Interfaces:
org.apache.iotdb.commons.service.IService,RPCServiceMBean
public class RPCService extends org.apache.iotdb.commons.service.ThriftService implements RPCServiceMBean
A service to handle RPC request from client.
-
-
Constructor Summary
Constructors Constructor Description RPCService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBindIP()intgetBindPort()org.apache.iotdb.commons.service.ServiceTypegetID()static RPCServicegetInstance()intgetRPCPort()voidinitThriftServiceThread()voidinitTProcessor()-
Methods inherited from class org.apache.iotdb.commons.service.ThriftService
getRPCServiceStatus, initAsyncedServiceImpl, initSyncedServiceImpl, restartService, start, startService, stop, stopService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.iotdb.db.service.RPCServiceMBean
getRPCServiceStatus, restartService, startService, stopService
-
-
-
-
Method Detail
-
getInstance
public static RPCService getInstance()
-
initTProcessor
public void initTProcessor() throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException- Specified by:
initTProcessorin classorg.apache.iotdb.commons.service.ThriftService- Throws:
java.lang.ClassNotFoundExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetException
-
initThriftServiceThread
public void initThriftServiceThread() throws java.lang.IllegalAccessException- Specified by:
initThriftServiceThreadin classorg.apache.iotdb.commons.service.ThriftService- Throws:
java.lang.IllegalAccessException
-
getBindIP
public java.lang.String getBindIP()
- Specified by:
getBindIPin classorg.apache.iotdb.commons.service.ThriftService
-
getBindPort
public int getBindPort()
- Specified by:
getBindPortin classorg.apache.iotdb.commons.service.ThriftService
-
getID
public org.apache.iotdb.commons.service.ServiceType getID()
- Specified by:
getIDin interfaceorg.apache.iotdb.commons.service.IService
-
getRPCPort
public int getRPCPort()
- Specified by:
getRPCPortin interfaceRPCServiceMBean
-
-