public class ArcRepositoryEntry extends Object
TODO Maybe don't have the store state info for fully completed stores, or else use a slimmer map for it.
Constructor and Description |
---|
ArcRepositoryEntry(String filename,
String md5sum,
StoreMessage replyInfo)
Create a new entry with given checksum and replyinfo.
|
Modifier and Type | Method and Description |
---|---|
String |
getChecksum()
Get the checksum for this entry.
|
ArchiveStoreState |
getGeneralStoreState()
Get the ArchiveStoreState for the entry in general.
|
ReplicaStoreState |
getStoreState(String baId)
Get the StoreState for this entry for a given bitarchive or null if none.
|
public ArcRepositoryEntry(String filename, String md5sum, StoreMessage replyInfo)
filename
- The filename for this entrymd5sum
- The checksum for this entryreplyInfo
- The one-use-only reply info chunkpublic ArchiveStoreState getGeneralStoreState()
Note that the storestate and the timestamp might not come from the same bitarchive.
public ReplicaStoreState getStoreState(String baId)
baId
- a bitarchive idpublic String getChecksum()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.