|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.distribute.NetarkivetMessage dk.netarkivet.archive.distribute.ArchiveMessage dk.netarkivet.archive.arcrepository.bitpreservation.AdminDataMessage
public class AdminDataMessage
Class encapsulating a request to update AdminData. The message has two different types: changestorestate-type, and changechecksum-type. There is a constructor for each type.
Field Summary |
---|
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
replyOfId |
Constructor Summary | |
---|---|
AdminDataMessage(java.lang.String theFileName,
java.lang.String theChecksum)
Constructor used when you want to change the checksum for the given filename. |
|
AdminDataMessage(java.lang.String theFileName,
java.lang.String theReplicaId,
ReplicaStoreState newval)
Constructor used when you change the BitarchiveStoreState. |
Method Summary | |
---|---|
void |
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern. |
java.lang.String |
getChecksum()
|
java.lang.String |
getFileName()
Method for retrieving the name of the file which are refered to in this message. |
ReplicaStoreState |
getNewvalue()
|
java.lang.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. |
Methods inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AdminDataMessage(java.lang.String theFileName, java.lang.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(java.lang.String theFileName, java.lang.String theChecksum)
theFileName
- the given filenametheChecksum
- the new checksum for the filenameMethod Detail |
---|
public void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- A message visitorArchiveMessageVisitor
public java.lang.String getReplicaId()
public java.lang.String getFileName()
public java.lang.String getChecksum()
public boolean isChangeStoreState()
public boolean isChangeChecksum()
public ReplicaStoreState getNewvalue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |