public class HelloSiLAServer extends Object implements Closeable
| Constructor and Description |
|---|
HelloSiLAServer(String interfaceName,
int serverPort,
Path config)
Create and start the server
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static void |
main(String[] args)
Simple main function that starts the server and keeps it alive
|
public HelloSiLAServer(@NonNull
String interfaceName,
int serverPort,
@Nullable
Path config)
interfaceName - Network Interface Name to expose Discovery onserverPort - Port to serve the SiLA Servicesconfig - (optional) Configuration File Path that is used to persist UUID and Server Namepublic void close()
close in interface Closeableclose in interface AutoCloseablepublic static void main(String[] args)
Copyright © 2019. All rights reserved.