Class ThriftService

  • All Implemented Interfaces:
    IService

    public abstract class ThriftService
    extends java.lang.Object
    implements IService
    • Field Detail

      • mbeanName

        protected java.lang.String mbeanName
      • processor

        protected org.apache.thrift.TProcessor processor
    • Constructor Detail

      • ThriftService

        public ThriftService()
    • Method Detail

      • getRPCServiceStatus

        public java.lang.String getRPCServiceStatus()
      • stop

        public void stop()
        Description copied from interface: IService
        Stop current service. If current service uses thread or thread pool, current service should guarantee to putBack thread or thread pool.
        Specified by:
        stop in interface IService
      • initSyncedServiceImpl

        public void initSyncedServiceImpl​(java.lang.Object serviceImpl)
      • initAsyncedServiceImpl

        public void initAsyncedServiceImpl​(java.lang.Object serviceImpl)
      • initTProcessor

        public abstract void initTProcessor()
                                     throws java.lang.ClassNotFoundException,
                                            java.lang.IllegalAccessException,
                                            java.lang.InstantiationException,
                                            java.lang.NoSuchMethodException,
                                            java.lang.reflect.InvocationTargetException
        Throws:
        java.lang.ClassNotFoundException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
      • initThriftServiceThread

        public abstract void initThriftServiceThread()
                                              throws java.lang.IllegalAccessException,
                                                     java.lang.InstantiationException,
                                                     java.lang.ClassNotFoundException
        Throws:
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.ClassNotFoundException
      • getBindIP

        public abstract java.lang.String getBindIP()
      • getBindPort

        public abstract int getBindPort()
      • stopService

        public void stopService()