|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryTable
Tracks high-level information about all known repositories.
Method Summary | |
---|---|
java.util.Collection<GitStore.CachedPackInfo> |
getCachedPacks(RepositoryKey repo)
Get the cached packs, if any. |
RepositoryKey |
nextKey()
Generate a new unique RepositoryKey. |
void |
put(RepositoryKey repo,
ChunkInfo info,
WriteBuffer buffer)
Record the existence of a chunk. |
void |
put(RepositoryKey repo,
GitStore.CachedPackInfo info,
WriteBuffer buffer)
Record the existence of a cached pack. |
void |
remove(RepositoryKey repo,
CachedPackKey key,
WriteBuffer buffer)
Remove the existence of a cached pack. |
void |
remove(RepositoryKey repo,
ChunkKey chunk,
WriteBuffer buffer)
Remove the information about a chunk. |
Method Detail |
---|
RepositoryKey nextKey() throws DhtException
DhtException
- keys cannot be generated at this time.void put(RepositoryKey repo, ChunkInfo info, WriteBuffer buffer) throws DhtException
repo
- repository owning the chunk.info
- information about the chunk.buffer
- buffer to enqueue the put onto.
DhtException
- if the buffer flushed and an enqueued operation failed.void remove(RepositoryKey repo, ChunkKey chunk, WriteBuffer buffer) throws DhtException
repo
- repository owning the chunk.chunk
- the chunk that needs to be deleted.buffer
- buffer to enqueue the remove onto.
DhtException
- if the buffer flushed and an enqueued operation failed.java.util.Collection<GitStore.CachedPackInfo> getCachedPacks(RepositoryKey repo) throws DhtException, java.util.concurrent.TimeoutException
repo
- repository owning the packs.
DhtException
java.util.concurrent.TimeoutException
void put(RepositoryKey repo, GitStore.CachedPackInfo info, WriteBuffer buffer) throws DhtException
repo
- repository owning the pack.info
- information about the pack.buffer
- buffer to enqueue the put onto.
DhtException
- if the buffer flushed and an enqueued operation failed.void remove(RepositoryKey repo, CachedPackKey key, WriteBuffer buffer) throws DhtException
repo
- repository owning the pack.key
- information about the pack.buffer
- buffer to enqueue the put onto.
DhtException
- if the buffer flushed and an enqueued operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |