public interface Replica
Modifier and Type | Method and Description |
---|---|
void |
duplicate(String destServer)
Copies the replica into another server.
|
void |
duplicate(String destServer,
boolean waitMeta)
Copies the replica into another server.
|
long |
getId()
Getter method for the id attribute.
|
String |
getServer()
Getter method for the server attribute.
|
void |
move(String destServer)
Move the replica from its server to another one.
|
void |
move(String destServer,
boolean waitMeta)
Move the replica from its server to another one.
|
long getId()
String getServer()
void move(String destServer)
destServer
- Server identifier which represents th destination of the movement.void move(String destServer, boolean waitMeta) throws com.leanxcale.kv.exceptions.LockException
destServer
- Server identifier which represents th destination of the movement.waitMeta
- If true waits until there is no metadata operation over the replica (default false). If
false, the method will throw an exception in case of the replica metadata is being modified concurrentlycom.leanxcale.kv.exceptions.LockException
void duplicate(String destServer)
destServer
- Destination for the copy.void duplicate(String destServer, boolean waitMeta) throws com.leanxcale.kv.exceptions.LockException
destServer
- Destination for the copy.waitMeta
- If true waits until there is no metadata operation over the replica (default false). If
false, the method will throw an exception in case of the replica metadata is being modified concurrentlycom.leanxcale.kv.exceptions.LockException
Copyright © 2020. All rights reserved.