blob: 01652fec51e9046d86427945e0233260e42ecd3e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package org.openslx.bwlp.sat.fileserv;
import java.sql.SQLException;
import java.util.List;
import org.openslx.bwlp.sat.database.mappers.DbImageBlock;
import org.openslx.filetransfer.LocalChunkSource;
public class StorageChunkSource implements LocalChunkSource {
public static final StorageChunkSource instance = new StorageChunkSource();
@Override
public List<ChunkSource> getCloneSources(List<byte[]> sums) {
try {
return DbImageBlock.getBlocksWithHash(sums);
} catch (SQLException e) {
}
return null;
}
}
|