ExternalMapDataSourceServer (API Reference)
Class ExternalMapDataSourceServer
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstart(String url, SDKNativeEngine engine, SslServerCredentialsOptions serviceCredential, ServerStartedCallback callback) Exposes map data source as GRPC service on given url forSDKNativeEngine.voidstop()Stops the exposed map data source GRPC service started usingstart(java.lang.String, com.here.sdk.core.engine.SDKNativeEngine, com.here.sdk.maploader.remote.connection.SslServerCredentialsOptions, com.here.sdk.maploader.remote.connection.ServerStartedCallback).
-
Constructor Details
-
ExternalMapDataSourceServer
Creates a new instance of this class.
- Throws:
InstantiationErrorException-Indicates what went wrong when the instantiation was attempted.
-
-
Method Details
-
start
public void start(@NonNull String url, @NonNull SDKNativeEngine engine, @Nullable SslServerCredentialsOptions serviceCredential, @NonNull ServerStartedCallback callback) Exposes map data source as GRPC service on given url for
SDKNativeEngine. The exposed service can be consumed with the help ofExternalMapDataSourceClient.configureRemoteConnectionAsync(java.lang.String, com.here.sdk.core.engine.SDKNativeEngine, com.here.sdk.maploader.remote.connection.SslClientCredentialsOptions, com.here.sdk.maploader.remote.connection.ConfigureConnectionCallback). It is a non-blocking function, and the result will be returned via a callback.ServerStartedCallback.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
- Parameters:
url-URL in the 'ip_address:port' format. Address will be used to bind to the GRPC server.
engine-Instance of an existing
SDKNativeEngine.serviceCredential-Instance of
SslServerCredentialsOptionscallback-Callback to retrieve an operation status on the main thread.
-
stop
Stops the exposed map data source GRPC service started using
start(java.lang.String, com.here.sdk.core.engine.SDKNativeEngine, com.here.sdk.maploader.remote.connection.SslServerCredentialsOptions, com.here.sdk.maploader.remote.connection.ServerStartedCallback).Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
- Throws:
ExternalMapDataSourceException-Indicates what went wrong when trying to stop exposed external map data source service.
-