public class PrimaryBackupServer extends Object implements Managed<PrimaryBackupServer>
| Modifier and Type | Class and Description |
|---|---|
static class |
PrimaryBackupServer.Builder
Primary-backup server builder
|
static class |
PrimaryBackupServer.Role
Primary-backup role.
|
| Modifier and Type | Method and Description |
|---|---|
static PrimaryBackupServer.Builder |
builder()
Returns a new server builder.
|
PrimaryBackupServer.Role |
getRole()
Returns the current server role.
|
boolean |
isRunning()
Returns a boolean value indicating whether the managed object is running.
|
CompletableFuture<PrimaryBackupServer> |
start()
Starts the managed object.
|
CompletableFuture<Void> |
stop()
Stops the managed object.
|
public static PrimaryBackupServer.Builder builder()
public PrimaryBackupServer.Role getRole()
public CompletableFuture<PrimaryBackupServer> start()
Managedstart in interface Managed<PrimaryBackupServer>public boolean isRunning()
ManagedisRunning in interface Managed<PrimaryBackupServer>public CompletableFuture<Void> stop()
Managedstop in interface Managed<PrimaryBackupServer>Copyright © 2013–2018. All rights reserved.