Class CGThriftServer


  • public class CGThriftServer
    extends Object
    The thirft server implementation for csg transport
    • Method Detail

      • start

        public void start​(String hostName,
                          int port,
                          int timeOut,
                          String keyStorePath,
                          String keyStorePassword,
                          String trustStorePath,
                          String trustStorePassword,
                          String taskName)
                   throws org.apache.axis2.AxisFault
        Start the thrift server
        Parameters:
        hostName - the hostname
        port - thrift server port
        timeOut - the client timeout
        keyStorePath - the path of the key store
        keyStorePassword - the password of the key store
        trustStorePath - the path of the trust store
        trustStorePassword - the password of the trust store
        taskName - the name of the main server thread
        Throws:
        org.apache.axis2.AxisFault - throws in case of an starting error
      • stop

        public void stop()
        Stop the server
      • isServerAlive

        public boolean isServerAlive()
        Returns if the server is still running
        Returns:
        true if server is running