Class 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.
    • Field Summary

      • Fields inherited from class org.apache.iotdb.commons.service.ThriftService

        mbeanName, processor, STATUS_DOWN, STATUS_UP, thriftServiceThread
    • Constructor Summary

      Constructors 
      Constructor Description
      RPCService()  
    • Constructor Detail

      • RPCService

        public RPCService()
    • 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:
        initTProcessor in class org.apache.iotdb.commons.service.ThriftService
        Throws:
        java.lang.ClassNotFoundException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
      • initThriftServiceThread

        public void initThriftServiceThread()
                                     throws java.lang.IllegalAccessException
        Specified by:
        initThriftServiceThread in class org.apache.iotdb.commons.service.ThriftService
        Throws:
        java.lang.IllegalAccessException
      • getBindIP

        public java.lang.String getBindIP()
        Specified by:
        getBindIP in class org.apache.iotdb.commons.service.ThriftService
      • getBindPort

        public int getBindPort()
        Specified by:
        getBindPort in class org.apache.iotdb.commons.service.ThriftService
      • getID

        public org.apache.iotdb.commons.service.ServiceType getID()
        Specified by:
        getID in interface org.apache.iotdb.commons.service.IService