Class AetherCloudClient
java.lang.Object
io.aether.cloud.client.AetherCloudClient
- All Implemented Interfaces:
io.aether.utils.interfaces.Destroyable
public final class AetherCloudClient
extends Object
implements io.aether.utils.interfaces.Destroyable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal io.aether.utils.Destroyerfinal AtomicBooleanfinal io.aether.utils.slots.EventConsumer<MessageNode> final io.aether.utils.futures.AFuturefinal io.aether.utils.futures.AFuture -
Constructor Summary
ConstructorsConstructorDescriptionAetherCloudClient(ClientState state) AetherCloudClient(ClientState state, String name) -
Method Summary
Modifier and TypeMethodDescriptionio.aether.utils.futures.ARFuture<Boolean> checkAccess(UUID uid1, UUID uid2) voidconfirmRegistration(io.aether.api.clientserverregapi.FinishResult regResp) io.aether.utils.futures.AFutureconnect()io.aether.utils.futures.ARFuture<io.aether.common.AccessGroupI> createAccessGroup(UUID... uids) io.aether.utils.futures.ARFuture<io.aether.common.AccessGroupI> createAccessGroupWithOwner(UUID owner, UUID... uids) io.aether.utils.futures.AFuturedestroy(boolean force) voidflush()io.aether.utils.futures.AFuturegetAlias()voidgetAuthApi(@NotNull io.aether.utils.interfaces.AConsumer<io.aether.api.clientserverapi.AuthorizedApi> t) <T> io.aether.utils.futures.ARFuture<T> getAuthApi1(@NotNull io.aether.utils.interfaces.AFunction<io.aether.api.clientserverapi.AuthorizedApi, io.aether.utils.futures.ARFuture<T>> t) io.aether.utils.futures.ARFuture<io.aether.api.clientserverapi.AuthorizedApi> voidgetClientApi(UUID uid, io.aether.utils.interfaces.AConsumer<io.aether.api.clientserverapi.ServerApiByUid> c) getClientGroups(UUID uid) io.aether.utils.futures.ARFuture<io.aether.api.common.Cloud> io.aether.api.common.CryptoLibio.aether.crypto.CryptoEnginegetCryptoEngineForServer(short serverId) io.aether.utils.futures.ARFuture<io.aether.api.common.AccessGroup> getGroup(long groupId) io.aether.crypto.AKey.SymmetricgetMessageNode(@NotNull UUID uid) getMessageNode(@NotNull UUID uid, MessageEventListener strategy) getName()longlongio.aether.utils.futures.ARFuture<io.aether.api.common.ServerDescriptor> getServer(int id) voidgetServerDescriptorForUid(@NotNull UUID uid, io.aether.utils.interfaces.AConsumer<io.aether.api.common.ServerDescriptor> t) getUid()booleanbooleanstatic AetherCloudClientof(ClientState state) voidonClientStream(io.aether.utils.interfaces.AConsumer<MessageNode> consumer) voidvoidonNewChildren(io.aether.utils.interfaces.AConsumer<UUID> consumer) openStreamToClientDetails(@NotNull UUID uid, MessageEventListener strategy) voidvoidputServerDescriptor(io.aether.api.common.ServerDescriptor s) io.aether.utils.futures.AFuturesendMessage(UUID uid, byte[] message) voidvoidio.aether.utils.futures.AFuturebooleanverifySign(io.aether.crypto.SignedKey signedKey)
-
Field Details
-
startFuture
public final io.aether.utils.futures.AFuture startFuture -
onClientStream
-
destroyer
public final io.aether.utils.Destroyer destroyer -
isRecoveryInProgress
-
recoveryFuture
public final io.aether.utils.futures.AFuture recoveryFuture
-
-
Constructor Details
-
AetherCloudClient
public AetherCloudClient() -
AetherCloudClient
-
AetherCloudClient
-
-
Method Details
-
populateCachesFromState
public void populateCachesFromState() -
getClientGroups
-
getAllAccessedClients
-
checkAccess
-
getGroup
public io.aether.utils.futures.ARFuture<io.aether.api.common.AccessGroup> getGroup(long groupId) -
getClientState
-
getName
-
setName
-
getServer
public io.aether.utils.futures.ARFuture<io.aether.api.common.ServerDescriptor> getServer(int id) -
getServerDescriptorForUid
public void getServerDescriptorForUid(@NotNull @NotNull UUID uid, io.aether.utils.interfaces.AConsumer<io.aether.api.common.ServerDescriptor> t) -
connect
public io.aether.utils.futures.AFuture connect() -
forceUpdateStateFromCache
public io.aether.utils.futures.AFuture forceUpdateStateFromCache() -
triggerRecovery
public io.aether.utils.futures.AFuture triggerRecovery() -
getUid
-
getAuthApi1
public <T> io.aether.utils.futures.ARFuture<T> getAuthApi1(@NotNull @NotNull io.aether.utils.interfaces.AFunction<io.aether.api.clientserverapi.AuthorizedApi, io.aether.utils.futures.ARFuture<T>> t) -
getAuthApiFuture
public io.aether.utils.futures.ARFuture<io.aether.api.clientserverapi.AuthorizedApi> getAuthApiFuture() -
getAuthApi
public void getAuthApi(@NotNull @NotNull io.aether.utils.interfaces.AConsumer<io.aether.api.clientserverapi.AuthorizedApi> t) -
flush
public void flush() -
getConnections
-
getCloud
public io.aether.utils.futures.ARFuture<io.aether.api.common.Cloud> getCloud(@NotNull @NotNull UUID uid) -
getPingTime
public long getPingTime() -
isRegistered
public boolean isRegistered() -
confirmRegistration
public void confirmRegistration(io.aether.api.clientserverregapi.FinishResult regResp) -
getMessageNode
-
getMessageNode
-
openStreamToClientDetails
public MessageNode openStreamToClientDetails(@NotNull @NotNull UUID uid, MessageEventListener strategy) -
destroy
public io.aether.utils.futures.AFuture destroy(boolean force) - Specified by:
destroyin interfaceio.aether.utils.interfaces.Destroyable
-
isConnected
public boolean isConnected() -
getParent
-
getMasterKey
public io.aether.crypto.AKey.Symmetric getMasterKey() -
getCryptLib
public io.aether.api.common.CryptoLib getCryptLib() -
getAlias
-
onMessage
-
onClientStream
-
onNewChildren
-
createAccessGroup
public io.aether.utils.futures.ARFuture<io.aether.common.AccessGroupI> createAccessGroup(UUID... uids) -
createAccessGroupWithOwner
-
getClientApi
public void getClientApi(UUID uid, io.aether.utils.interfaces.AConsumer<io.aether.api.clientserverapi.ServerApiByUid> c) -
verifySign
public boolean verifySign(io.aether.crypto.SignedKey signedKey) -
sendMessage
-
getCryptoEngineForServer
public io.aether.crypto.CryptoEngine getCryptoEngineForServer(short serverId) -
getNextPing
public long getNextPing() -
setCloud
-
putServerDescriptor
public void putServerDescriptor(io.aether.api.common.ServerDescriptor s) -
of
-