public interface Admin
Modifier and Type | Method and Description |
---|---|
void |
addEntry(String filename,
StoreMessage msg,
String checksum)
Method for adding an entry for administration.
|
void |
close()
Close and cleanup of this class.
|
Set<String> |
getAllFileNames()
Retrieves a set of the names for all the known files.
|
Set<String> |
getAllFileNames(Replica rep,
ReplicaStoreState state)
Retrieves a set with the name of the files with a specific ReplicaStoreState in a specific replica.
|
String |
getCheckSum(String filename)
Retrieves the checksum of a given file.
|
ReplicaStoreState |
getState(String filename,
String replicaChannelName)
Returns the ReplicaStoreState of a given file in a specific replica.
|
boolean |
hasEntry(String filename)
Method for telling whether a file entry exists.
|
boolean |
hasReplyInfo(String filename)
Determines whether the StoreMessage of a given file exists.
|
boolean |
hasState(String filename,
String repChannelId)
Determines whether a given file in a specific replica has a valid store state.
|
StoreMessage |
removeReplyInfo(String filename)
Retrieves the StoreMessage of a specific file.
|
void |
setCheckSum(String filename,
String checksum)
Deprecated.
It should not be change the checksum through Admin. Only by voting through the bitpreservation
interface should it be possible.
|
void |
setReplyInfo(String filename,
StoreMessage msg)
Assign a StoreMessage to a specific file.
|
void |
setState(String filename,
String repChannelId,
ReplicaStoreState state)
Sets the store state of an entry to a specific value.
|
boolean hasEntry(String filename)
filename
- The name of the file, the existence of whose entry is to be determined.void addEntry(String filename, StoreMessage msg, String checksum)
filename
- The name of the file to be stored.msg
- The StoreMessage of the entry.checksum
- The checksum of the entry.String getCheckSum(String filename)
filename
- The name of the file, whose checksum should be retrieved.void setCheckSum(String filename, String checksum)
filename
- The name of the file to have the checksum changed.checksum
- The new checksum for the file.boolean hasReplyInfo(String filename)
filename
- The name of the file to which the existence of the StoreMessage should be determined.void setReplyInfo(String filename, StoreMessage msg)
filename
- The name of the file to have a StoreMessage assigned.msg
- The StoreMessage to be assigned to a file.StoreMessage removeReplyInfo(String filename)
filename
- The name of the file whose StoreMessage should be retrieved.ReplicaStoreState getState(String filename, String replicaChannelName)
filename
- The name of the file for the ReplicaStoreState.replicaChannelName
- The name of the identification channel for the replica of for the ReplicaStoreState.boolean hasState(String filename, String repChannelId)
filename
- The name of the file for the ReplicaStoreState.repChannelId
- The identification channel of the replica for the ReplicaStoreState.void setState(String filename, String repChannelId, ReplicaStoreState state)
filename
- The name of the file for the entry.repChannelId
- The identification channel of the replica for the entry.state
- The new state for the entry.Set<String> getAllFileNames()
Set<String> getAllFileNames(Replica rep, ReplicaStoreState state)
rep
- The replica where the files belong.state
- The ReplicaStoreState for the files.void close()
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.