| Package | Description |
|---|---|
| sila_java.library.manager | |
| sila_java.library.manager.server_management |
| Modifier and Type | Method and Description |
|---|---|
Server |
ServerManager.addServer(@NonNull String host,
int port,
String certificate)
Add a server into the manager
|
| Modifier and Type | Method and Description |
|---|---|
List<Server> |
ServerFinder.find()
Find and return all the servers that match the filters
|
Optional<Server> |
ServerFinder.findOne()
Attempt to find one server that match the filters
|
Map<UUID,Server> |
ServerManager.getServers()
Get the map of servers
|
Optional<Server> |
ServerFinder.scanAndFindOne(@NonNull Duration timeout)
Attempt to find one server that match the filters while scanning the network for new servers
|
| Modifier and Type | Method and Description |
|---|---|
default void |
ServerListener.onServerAdded(UUID uuid,
Server server)
Server was added to the server manager either manually or through discovery
|
default void |
ServerListener.onServerChange(UUID uuid,
Server server)
Server was changed
Example:
- The status from Online to Offline
- The server become Invalid / Valid
|
default void |
ServerListener.onServerRemoved(UUID uuid,
Server server)
Server was removed (can only happen manually)
|
| Modifier and Type | Method and Description |
|---|---|
static io.grpc.ManagedChannel |
ServerLoading.attemptConnectionWithServer(@NonNull Server server,
@NonNull Optional<io.grpc.ClientInterceptor> clientInterceptor,
boolean allowInsecure,
X509Certificate certificate)
Attempt to connect to a server by trying to retrieve his UUID and return the channel used
|
void |
Connection.loadFeaturesFromServer(Server server)
Convert and validate the server features into
Descriptors.FileDescriptor and save them in Connection.fileDescriptorMap and Connection.featureMap |
static void |
ServerLoading.loadServer(@NonNull Server server,
@NonNull io.grpc.ManagedChannel managedChannel)
Load SiLA Server from SiLA Service
|
| Constructor and Description |
|---|
Connection(@NonNull Server server,
@NonNull AutoCloseable closeable)
Constructor
|
Connection(@NonNull Server server,
@NonNull io.grpc.ManagedChannel managedChannel)
Create a new SiLA Connection
|
ServerConnectionException(@NonNull Server server)
Constructor
|
ServerConnectionException(@NonNull Server server,
Exception exception) |
ServerConnectionException(@NonNull Server server,
@NonNull String reason)
Constructor
|
Copyright © 2024 SiLA Java Developers. All rights reserved.