|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.siviam.bobup.strategy.TowerOfHanoiBackupStrategy
Backup strategy using the Tower of Hanoi strategy.
Field Summary | |
static long |
ONE_DAY
|
static long |
ONE_MINUTE
|
Constructor Summary | |
TowerOfHanoiBackupStrategy()
|
|
TowerOfHanoiBackupStrategy(long periodicity)
constructor. |
Method Summary | |
protected int |
getCurrentMediumNumberIndex()
Obtains the currently set medium number index. |
int |
getMaxNumberOfMedia()
Provides the number of media that are used for the backup. |
int |
getMediumNumber(boolean next)
Obtains media/disk/folder number to be used for the backup according to this strategy. |
int |
getMediumNumber(java.util.Date epochDate,
java.util.Date referenceDate)
Obtains a medium number at the provided reference date given an "epoch" date i.e. |
long |
getPeriodicity()
The medium for the backup will be switched after the current period has expired. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static long ONE_DAY
public static long ONE_MINUTE
Constructor Detail |
public TowerOfHanoiBackupStrategy()
public TowerOfHanoiBackupStrategy(long periodicity)
Method Detail |
public int getMaxNumberOfMedia()
IBackupStrategy
getMaxNumberOfMedia
in interface IBackupStrategy
public int getMediumNumber(boolean next)
IBackupStrategy
getMediumNumber
in interface IBackupStrategy
next
- true
if a new medium must be selected,
false
otherwise.
protected int getCurrentMediumNumberIndex()
public int getMediumNumber(java.util.Date epochDate, java.util.Date referenceDate)
IBackupStrategy
getMediumNumber
in interface IBackupStrategy
epochDate
- referenceDate
-
public long getPeriodicity()
IBackupStrategy
getPeriodicity
in interface IBackupStrategy
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |