use of org.neo4j.com.TargetCaller in project neo4j by neo4j.
the class BackupProtocolTest method shouldHandleNoForensicsSpecifiedInFullBackupRequest.
@Test
public void shouldHandleNoForensicsSpecifiedInFullBackupRequest() throws Exception {
TheBackupInterface backup = mock(TheBackupInterface.class);
RequestContext ctx = new RequestContext(0, 1, 0, -1, 12);
@SuppressWarnings("unchecked") TargetCaller<TheBackupInterface, Void> targetCaller = (TargetCaller<TheBackupInterface, Void>) BackupRequestType.FULL_BACKUP.getTargetCaller();
targetCaller.call(backup, ctx, EMPTY_BUFFER, null);
verify(backup).fullBackup(any(StoreWriter.class), eq(false));
}
use of org.neo4j.com.TargetCaller in project neo4j by neo4j.
the class HaRequestType210 method registerCopyStore.
private void registerCopyStore() {
TargetCaller<Master, Void> copyStoreTarget = (master, context, input, target) -> master.copyStore(context, new ToNetworkStoreWriter(target, new Monitors()));
register(Type.COPY_STORE, copyStoreTarget, VOID_SERIALIZER, false);
}
Aggregations