public class MockReplicationStorage extends java.lang.Object implements StorageApiLink
StorageApiLink.ApiDesc
Constructor and Description |
---|
MockReplicationStorage(io.vertx.core.Vertx vertx,
HttpClientProvider http,
java.lang.String remoteIp) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<IDbMessageBodiesPromise> |
bodies(java.lang.String partition) |
java.util.concurrent.CompletableFuture<ICyrusReplicationAnnotationsPromise> |
cyrusAnnotations() |
java.util.concurrent.CompletableFuture<ICyrusReplicationArtifactsPromise> |
cyrusArtifacts(java.lang.String userId) |
java.util.concurrent.CompletableFuture<IDbMailboxRecordsPromise> |
mailboxRecords(java.lang.String mboxUniqueId) |
void |
release() |
java.lang.String |
remoteIp() |
java.util.concurrent.CompletableFuture<StorageApiLink.ApiDesc> |
replicatedMailboxes(CyrusBoxes.ReplicatedBox box)
Returns the API object suitable to manipulate the given mailbox.
|
java.util.concurrent.CompletableFuture<IDbReplicatedMailboxesPromise> |
replicatedMailboxes(java.lang.String partition,
MailboxReplicaRootDescriptor root) |
java.util.concurrent.CompletableFuture<java.util.List<ResolvedMailbox>> |
resolveNames(java.util.List<java.lang.String> names) |
Stream |
stream(java.nio.file.Path p) |
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
validate(java.lang.String login,
java.lang.String secret) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public MockReplicationStorage(io.vertx.core.Vertx vertx, HttpClientProvider http, java.lang.String remoteIp)
public java.lang.String remoteIp()
remoteIp
in interface StorageApiLink
public void release()
release
in interface StorageApiLink
public java.util.concurrent.CompletableFuture<StorageApiLink.ApiDesc> replicatedMailboxes(CyrusBoxes.ReplicatedBox box)
StorageApiLink
replicatedMailboxes
in interface StorageApiLink
box
- can't be nullpublic java.util.concurrent.CompletableFuture<java.lang.Boolean> validate(java.lang.String login, java.lang.String secret)
validate
in interface StorageApiLink
public java.util.concurrent.CompletableFuture<IDbMessageBodiesPromise> bodies(java.lang.String partition)
bodies
in interface StorageApiLink
public java.util.concurrent.CompletableFuture<IDbReplicatedMailboxesPromise> replicatedMailboxes(java.lang.String partition, MailboxReplicaRootDescriptor root)
replicatedMailboxes
in interface StorageApiLink
public java.util.concurrent.CompletableFuture<IDbMailboxRecordsPromise> mailboxRecords(java.lang.String mboxUniqueId)
mailboxRecords
in interface StorageApiLink
public java.util.concurrent.CompletableFuture<ICyrusReplicationArtifactsPromise> cyrusArtifacts(java.lang.String userId)
cyrusArtifacts
in interface StorageApiLink
public java.util.concurrent.CompletableFuture<ICyrusReplicationAnnotationsPromise> cyrusAnnotations()
cyrusAnnotations
in interface StorageApiLink
public Stream stream(java.nio.file.Path p)
stream
in interface StorageApiLink
public java.util.concurrent.CompletableFuture<java.util.List<ResolvedMailbox>> resolveNames(java.util.List<java.lang.String> names)
resolveNames
in interface StorageApiLink
Copyright © 2021. All Rights Reserved.