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 TypeMethodDescriptionstatic <LT, RT extends io.aether.net.fastMeta.RemoteApi>
AetherCloudClientasClient(ClientState state, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> localMeta, io.aether.net.fastMeta.FastMetaApi<?, RT> remoteMeta, io.aether.utils.interfaces.AFunction<RT, LT> localApiFactory) static <LT, RT extends io.aether.net.fastMeta.RemoteApi>
AetherCloudClientasClient(UUID parentUid, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> localMeta, io.aether.net.fastMeta.FastMetaApi<?, RT> remoteMeta, io.aether.utils.interfaces.AFunction<RT, LT> localApiFactory) static <LT, RT extends io.aether.net.fastMeta.RemoteApi>
AetherCloudClientasClient(UUID parentUid, URI regUri, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> localMeta, io.aether.net.fastMeta.FastMetaApi<?, RT> remoteMeta, io.aether.utils.interfaces.AFunction<RT, LT> localApiFactory) static <LT> AetherCloudClientasServer(ClientState state, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> serviceMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> localApiFactory) static <LT> AetherCloudClientasServer(UUID parentUid, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> serviceMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> localApiFactory) static <LT> AetherCloudClientasServer(UUID parentUid, URI regUri, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> serviceMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> localApiFactory) io.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()io.aether.utils.futures.ARFuture<Connection<?, ?>> 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> callback) Deprecated.getClientGroups(UUID uid) io.aether.utils.futures.ARFuture<ClientCloud> 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) io.aether.utils.futures.ARFuture<io.aether.api.common.IpInfo> getMyIp()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) voidreportAppliedConfig(io.aether.api.common.AppliedConfig[] configs) voidrequestCloudConfig(UUID subjectUid) 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() -
getAnyConnection
-
getAuthApi
public void getAuthApi(@NotNull @NotNull io.aether.utils.interfaces.AConsumer<io.aether.api.clientserverapi.AuthorizedApi> t) -
flush
public void flush() -
getConnections
-
getCloud
-
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
-
verifySign
public boolean verifySign(io.aether.crypto.SignedKey signedKey) -
sendMessage
-
getClientApi
@Deprecated public void getClientApi(UUID uid, io.aether.utils.interfaces.AConsumer<io.aether.api.clientserverapi.ServerApiByUid> callback) Deprecated. -
getCryptoEngineForServer
public io.aether.crypto.CryptoEngine getCryptoEngineForServer(short serverId) -
getNextPing
public long getNextPing() -
setCloud
-
requestCloudConfig
-
putServerDescriptor
public void putServerDescriptor(io.aether.api.common.ServerDescriptor s) -
getMyIp
public io.aether.utils.futures.ARFuture<io.aether.api.common.IpInfo> getMyIp() -
reportAppliedConfig
public void reportAppliedConfig(io.aether.api.common.AppliedConfig[] configs) -
of
-
asClient
public static <LT, RT extends io.aether.net.fastMeta.RemoteApi> AetherCloudClient asClient(UUID parentUid, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> localMeta, io.aether.net.fastMeta.FastMetaApi<?, RT> remoteMeta, io.aether.utils.interfaces.AFunction<RT, LT> localApiFactory) -
asClient
public static <LT, RT extends io.aether.net.fastMeta.RemoteApi> AetherCloudClient asClient(UUID parentUid, URI regUri, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> localMeta, io.aether.net.fastMeta.FastMetaApi<?, RT> remoteMeta, io.aether.utils.interfaces.AFunction<RT, LT> localApiFactory) -
asClient
public static <LT, RT extends io.aether.net.fastMeta.RemoteApi> AetherCloudClient asClient(ClientState state, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> localMeta, io.aether.net.fastMeta.FastMetaApi<?, RT> remoteMeta, io.aether.utils.interfaces.AFunction<RT, LT> localApiFactory) -
asServer
public static <LT> AetherCloudClient asServer(ClientState state, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> serviceMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> localApiFactory) -
asServer
public static <LT> AetherCloudClient asServer(UUID parentUid, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> serviceMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> localApiFactory) -
asServer
public static <LT> AetherCloudClient asServer(UUID parentUid, URI regUri, String name, io.aether.net.fastMeta.FastMetaApi<LT, ? extends LT> serviceMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> localApiFactory)
-