public class ArchiveStoreState extends Object
Constructor and Description |
---|
ArchiveStoreState(ReplicaStoreState storestate)
Constructor for this class.
|
ArchiveStoreState(ReplicaStoreState storestate,
Date lastchanged)
Constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
Date |
getLastChanged()
Get the Date for when the state was lastchanged.
|
ReplicaStoreState |
getState()
Return the current BitArchiveStoreState.
|
void |
setState(ReplicaStoreState state)
Sets the current ReplicaStoreState.
|
void |
setState(ReplicaStoreState state,
Date lastDate)
Sets the current ReplicaStoreState.
|
String |
toString()
Creates an string representation of this instance.
|
public ArchiveStoreState(ReplicaStoreState storestate)
storestate
- A BitArchiveStoreStatepublic ArchiveStoreState(ReplicaStoreState storestate, Date lastchanged)
storestate
- A BitArchiveStoreStatelastchanged
- Time for when this state was setpublic ReplicaStoreState getState()
public void setState(ReplicaStoreState state, Date lastDate) throws ArgumentNotValid
state
- The ReplicaStoreState.lastDate
- The lastchanged date.ArgumentNotValid
- If the state or the lastDate is null.public void setState(ReplicaStoreState state) throws ArgumentNotValid
state
- the ReplicaStoreState.ArgumentNotValid
- If the state is null.public Date getLastChanged()
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.