|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.xtreemos.xosd.localallocmgr.migrations.TimeMachine
public class TimeMachine
usage: remember how much migrations are present in the time machine, do the changes, and if not all well, restore all of them till the last ok migration. This can be done on multiple timetables (from different resources).
Field Summary | |
---|---|
static int |
MAX_ELEMENTS
|
static java.util.LinkedList<TimeMachineItem> |
ttMigrations
|
Constructor Summary | |
---|---|
TimeMachine()
|
Method Summary | |
---|---|
static void |
addMigration4TimeTable(TimeMachineItem state)
|
static void |
clear()
removes all stored objects |
static java.lang.Long |
getLastMigrationNumber()
returns the last migration counter. |
static int |
numMigrations()
|
static void |
restore()
|
static void |
restore(int nOperations)
restores last n operations |
static void |
restoreTo(int version)
restores to the n-th operation over timetable, the oprations start at version 0, and each successful manipulation with the timetable increases the migrations size by 1. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_ELEMENTS
public static java.util.LinkedList<TimeMachineItem> ttMigrations
Constructor Detail |
---|
public TimeMachine()
Method Detail |
---|
public static java.lang.Long getLastMigrationNumber()
public static void addMigration4TimeTable(TimeMachineItem state)
public static void restore() throws AttributeConformanceException
AttributeConformanceException
public static void restore(int nOperations) throws AttributeConformanceException
nOperations
- tt
-
AttributeConformanceException
public static void restoreTo(int version) throws AttributeConformanceException
version
- tt
-
AttributeConformanceException
public static void clear()
public static int numMigrations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |