From b4309e72fa04124bcfe58b0b7042eb1092bafc2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Mon, 26 Nov 2012 13:49:52 +0000 Subject: [PATCH] Doing Level 2 cache part work on ovirt... --- .../uds/services/OVirt/OVirtLinkedDeployment.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/server/src/uds/services/OVirt/OVirtLinkedDeployment.py b/server/src/uds/services/OVirt/OVirtLinkedDeployment.py index d5c465507..bc4f488fc 100644 --- a/server/src/uds/services/OVirt/OVirtLinkedDeployment.py +++ b/server/src/uds/services/OVirt/OVirtLinkedDeployment.py @@ -485,6 +485,20 @@ class OVirtLinkedDeployment(UserDeployment): ''' pass + def moveToCache(self, newLevel): + ''' + Moves machines between cache levels + ''' + if opRemove in self._queue: + return State.RUNNING + + if newLevel == self.L1_CACHE: + self._queue = [opStart, opFinish] + else: + self._queue = [opStart, opSuspend, opFinish] + + return self.__executeQueue() + def userLoggedIn(self, user): ''' This method must be available so os managers can invoke it whenever