public class GenericServiceServer extends ServiceServer
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<Map<String,String>> |
metaDataMap |
condition, lock, paused| Constructor and Description |
|---|
GenericServiceServer(GrpcServerConfigs grpcServerConfigs,
AbstractGrpcSource relevantSource,
Class requestClass,
String siddhiAppName,
String streamID) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addServicesAndBuildServer(String siddhiAppName,
String streamID) |
protected io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder |
addTrustStore(String filePath,
String password,
String algorithm,
io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder sslContextBuilder,
String storeType,
String siddhiAppName,
String streamID) |
void |
connectServer(org.apache.log4j.Logger logger,
io.siddhi.core.stream.input.source.Source.ConnectionCallback connectionCallback,
String siddhiAppName,
String streamID) |
void |
disconnectServer(org.apache.log4j.Logger logger,
String siddhiAppName,
String streamID) |
io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder |
getSslContextBuilder(String filePath,
String password,
String algorithm,
String storeType,
String siddhiAppName,
String streamID) |
protected void |
setServerPropertiesToBuilder(String siddhiAppName,
String streamID) |
handlePause, pause, resumepublic static ThreadLocal<Map<String,String>> metaDataMap
public GenericServiceServer(GrpcServerConfigs grpcServerConfigs, AbstractGrpcSource relevantSource, Class requestClass, String siddhiAppName, String streamID)
protected void setServerPropertiesToBuilder(String siddhiAppName, String streamID)
setServerPropertiesToBuilder in class ServiceServerprotected void addServicesAndBuildServer(String siddhiAppName, String streamID)
addServicesAndBuildServer in class ServiceServerpublic void connectServer(org.apache.log4j.Logger logger,
io.siddhi.core.stream.input.source.Source.ConnectionCallback connectionCallback,
String siddhiAppName,
String streamID)
connectServer in class ServiceServerpublic void disconnectServer(org.apache.log4j.Logger logger,
String siddhiAppName,
String streamID)
disconnectServer in class ServiceServerpublic io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder getSslContextBuilder(String filePath, String password, String algorithm, String storeType, String siddhiAppName, String streamID) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException
getSslContextBuilder in class ServiceServerKeyStoreExceptionNoSuchAlgorithmExceptionCertificateExceptionUnrecoverableKeyExceptionprotected io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder addTrustStore(String filePath, String password, String algorithm, io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder sslContextBuilder, String storeType, String siddhiAppName, String streamID) throws NoSuchAlgorithmException, KeyStoreException, CertificateException
addTrustStore in class ServiceServerNoSuchAlgorithmExceptionKeyStoreExceptionCertificateExceptionCopyright © 2019 WSO2. All rights reserved.