public class FileRecoverer
extends java.lang.Object
Constructor and Description |
---|
FileRecoverer(int id,
java.lang.String filesDir) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getCkpState() |
byte[] |
getCkpStateHash() |
CommandsInfo[] |
getLogState(int index) |
CommandsInfo[] |
getLogState(long pointer,
int startOffset,
int number)
Recover portions of the log for collaborative state transfer.
|
void |
recoverCkpHash() |
void |
transferCkpState(java.nio.channels.SocketChannel sChannel) |
void |
transferLog(java.nio.channels.SocketChannel sChannel,
int index) |
public CommandsInfo[] getLogState(int index)
public CommandsInfo[] getLogState(long pointer, int startOffset, int number)
start
- the index for which the commands start to be collectednumber
- the number of commands retrievedpublic byte[] getCkpState()
public void recoverCkpHash()
public void transferLog(java.nio.channels.SocketChannel sChannel, int index)
public void transferCkpState(java.nio.channels.SocketChannel sChannel)
public byte[] getCkpStateHash()