public abstract class ServerLoading extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerLoading.ServerLoadingException
Simple Exception extension representing a server loading error
|
| Constructor and Description |
|---|
ServerLoading() |
| Modifier and Type | Method and Description |
|---|---|
static io.grpc.ManagedChannel |
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
|
static UUID |
getServerId(SiLAServiceGrpc.SiLAServiceBlockingStub siLAService)
Get Unique Identifier from SiLA Server
|
static String |
getServerName(SiLAServiceGrpc.SiLAServiceBlockingStub siLAService)
Gets the configurable Server Name from SiLA Server
|
static void |
loadServer(@NonNull Server server,
@NonNull io.grpc.ManagedChannel managedChannel)
Load SiLA Server from SiLA Service
|
public static void loadServer(@NonNull
@NonNull Server server,
@NonNull
@NonNull io.grpc.ManagedChannel managedChannel)
throws ServerLoading.ServerLoadingException
server - Server to provide SiLA Server informationmanagedChannel - Connection to call the SiLA ServerServerLoading.ServerLoadingExceptionpublic static io.grpc.ManagedChannel attemptConnectionWithServer(@NonNull
@NonNull Server server,
@NonNull
@NonNull Optional<io.grpc.ClientInterceptor> clientInterceptor,
boolean allowInsecure,
@Nullable
X509Certificate certificate)
throws ServerConnectionException
server - The server to try to connect toServerConnectionException - if unable to retrieve the UUID of the serverpublic static UUID getServerId(@NonNull SiLAServiceGrpc.SiLAServiceBlockingStub siLAService)
siLAService - SiLA Service Blocking Stubpublic static String getServerName(@NonNull SiLAServiceGrpc.SiLAServiceBlockingStub siLAService)
siLAService - SiLA Service Blocking StubCopyright © 2024 SiLA Java Developers. All rights reserved.