Class CGThriftServer
- java.lang.Object
-
- org.wso2.carbon.cloud.gateway.transport.server.CGThriftServer
-
public class CGThriftServer extends Object
The thirft server implementation for csg transport
-
-
Constructor Summary
Constructors Constructor Description CGThriftServer(CGThriftServerHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isServerAlive()
Returns if the server is still runningvoid
start(String hostName, int port, int timeOut, String keyStorePath, String keyStorePassword, String trustStorePath, String trustStorePassword, String taskName)
Start the thrift servervoid
stop()
Stop the server
-
-
-
Constructor Detail
-
CGThriftServer
public CGThriftServer(CGThriftServerHandler handler)
-
-
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 hostnameport
- thrift server porttimeOut
- the client timeoutkeyStorePath
- the path of the key storekeyStorePassword
- the password of the key storetrustStorePath
- the path of the trust storetrustStorePassword
- the password of the trust storetaskName
- 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
-
-