1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Doing Level 2 cache part work on ovirt...

This commit is contained in:
Adolfo Gómez 2012-11-26 13:49:52 +00:00
parent 710b56d4e1
commit b4309e72fa

View File

@ -485,6 +485,20 @@ class OVirtLinkedDeployment(UserDeployment):
''' '''
pass 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): def userLoggedIn(self, user):
''' '''
This method must be available so os managers can invoke it whenever This method must be available so os managers can invoke it whenever