public class CGThriftServer extends Object
Constructor and Description |
---|
CGThriftServer(CGThriftServerHandler handler) |
Modifier and Type | Method and Description |
---|---|
boolean |
isServerAlive()
Returns if the server is still running
|
void |
start(String hostName,
int port,
int timeOut,
String keyStorePath,
String keyStorePassword,
String trustStorePath,
String trustStorePassword,
String taskName)
Start the thrift server
|
void |
stop()
Stop the server
|
public CGThriftServer(CGThriftServerHandler handler)
public void start(String hostName, int port, int timeOut, String keyStorePath, String keyStorePassword, String trustStorePath, String trustStorePassword, String taskName) throws org.apache.axis2.AxisFault
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 threadorg.apache.axis2.AxisFault
- throws in case of an starting errorpublic void stop()
public boolean isServerAlive()
Copyright © 2022 WSO2. All rights reserved.