public class SiLAServerBase extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static SiLAServerBase |
withConfig(Path configurationFile,
ServerInformation serverInformation,
Map<String,String> featureDefinitions,
int port,
String interfaceName,
io.grpc.BindableService... bindableServices)
Create and start a Base Server with a persistent configuration file to expose the SiLA Features
|
static SiLAServerBase |
withoutConfig(ServerInformation serverInformation,
Map<String,String> featureDefinitions,
int port,
String interfaceName,
io.grpc.BindableService... bindableServices)
Create and start a Base Server with a non-persistent configuration to expose the SiLA Features
|
public static SiLAServerBase withoutConfig(@NonNull ServerInformation serverInformation, @NonNull Map<String,String> featureDefinitions, int port, @NonNull String interfaceName, io.grpc.BindableService... bindableServices) throws IOException
serverInformation - Meta server information defined by the server implementerfeatureDefinitions - Map with FeatureIdentifier as Keys and and the
Filepath or Content of the FDL as Valuesport - Port on which the server runs.interfaceName - Name of network interface to use discoverybindableServices - Variadic inputs of Service Implementations to bindIOExceptionpublic static SiLAServerBase withConfig(@NonNull Path configurationFile, @NonNull ServerInformation serverInformation, @NonNull Map<String,String> featureDefinitions, int port, @NonNull String interfaceName, io.grpc.BindableService... bindableServices) throws IOException
configurationFile - The file persisting the server name and UUID data for that server instanceserverInformation - Meta server information defined by the server implementerfeatureDefinitions - Map with FeatureIdentifier as Keys and and the
Filepath or Content of the FDL as Valuesport - Port on which the server runs.interfaceName - Name of network interface to use discoverybindableServices - Variadic inputs of Service Implementations to bindIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2019. All rights reserved.