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.
|
boolean |
equals(Object o) |
long |
getId()
Getter method for the id attribute.
|
String |
getServer()
Getter method for the server attribute.
|
int |
hashCode() |
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.
|
public long getId()
Replica
public String getServer()
Replica
public void move(String destServer)
Replica
public void move(String destServer, boolean waitMeta) throws com.leanxcale.kv.exceptions.LockException
Replica
move
in interface Replica
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
public void duplicate(String destServer)
Replica
public void duplicate(String destServer, boolean waitMeta) throws com.leanxcale.kv.exceptions.LockException
Replica
duplicate
in interface Replica
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.