public class StoragePartitionServer extends Object implements Managed<StoragePartitionServer>
StoragePartition server.| Constructor and Description |
|---|
StoragePartitionServer(io.atomix.catalyst.transport.Address localAddress,
StoragePartition partition,
io.atomix.catalyst.serializer.Serializer serializer,
Supplier<io.atomix.catalyst.transport.Transport> transport,
File dataFolder) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
close()
Closes the managed object.
|
CompletableFuture<Void> |
closeAndExit()
Closes the server and exits the partition.
|
PartitionInfo |
info()
Returns the partition information.
|
boolean |
isOpen()
Return
true if the managed object is open. |
CompletableFuture<Void> |
join(Collection<io.atomix.catalyst.transport.Address> otherMembers) |
CompletableFuture<Void> |
open()
Opens the managed object.
|
public StoragePartitionServer(io.atomix.catalyst.transport.Address localAddress,
StoragePartition partition,
io.atomix.catalyst.serializer.Serializer serializer,
Supplier<io.atomix.catalyst.transport.Transport> transport,
File dataFolder)
public CompletableFuture<Void> open()
Managedopen in interface Managed<StoragePartitionServer>public CompletableFuture<Void> close()
Managedclose in interface Managed<StoragePartitionServer>public CompletableFuture<Void> closeAndExit()
public CompletableFuture<Void> join(Collection<io.atomix.catalyst.transport.Address> otherMembers)
public boolean isOpen()
Managedtrue if the managed object is open.isOpen in interface Managed<StoragePartitionServer>true if openpublic PartitionInfo info()