public class AdminDataMessage extends ArchiveMessage
replyOfId
Constructor and Description |
---|
AdminDataMessage(String theFileName,
String theChecksum)
Constructor used when you want to change the checksum for the given filename.
|
AdminDataMessage(String theFileName,
String theReplicaId,
ReplicaStoreState newval)
Constructor used when you change the BitarchiveStoreState.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern.
|
String |
getChecksum() |
String |
getFileName()
Method for retrieving the name of the file which are refered to in this message.
|
ReplicaStoreState |
getNewvalue() |
String |
getReplicaId()
Method for retrieving the replica id from this message.
|
boolean |
isChangeChecksum()
Return the state of the changechecksum - flag.
|
boolean |
isChangeStoreState()
Return the state of the changestorestate - flag.
|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk, toString
public AdminDataMessage(String theFileName, String theReplicaId, ReplicaStoreState newval)
theFileName
- The filename you want to give a new BitarchiveStoreState.theReplicaId
- The ID for the bitarchive where the file residesnewval
- The new BitarchiveStoreStatepublic AdminDataMessage(String theFileName, String theChecksum)
theFileName
- the given filenametheChecksum
- the new checksum for the filenamepublic void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- A message visitorArchiveMessageVisitor
public String getReplicaId()
public String getFileName()
public String getChecksum()
public boolean isChangeStoreState()
public boolean isChangeChecksum()
public ReplicaStoreState getNewvalue()
Copyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.