|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.archive.arcrepositoryadmin.ArchiveStoreState
public class ArchiveStoreState
This class contains a storestate, and the time, when it was last set.
Constructor Summary | |
---|---|
ArchiveStoreState(ReplicaStoreState storestate)
Constructor for this class. |
|
ArchiveStoreState(ReplicaStoreState storestate,
java.util.Date lastchanged)
Constructor for this class. |
Method Summary | |
---|---|
java.util.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,
java.util.Date lastDate)
Sets the current ReplicaStoreState. |
java.lang.String |
toString()
Creates an string representation of this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArchiveStoreState(ReplicaStoreState storestate)
storestate
- A BitArchiveStoreStatepublic ArchiveStoreState(ReplicaStoreState storestate, java.util.Date lastchanged)
storestate
- A BitArchiveStoreStatelastchanged
- Time for when this state was setMethod Detail |
---|
public ReplicaStoreState getState()
public void setState(ReplicaStoreState state, java.util.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 java.util.Date getLastChanged()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |