|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.paulneve.wlab.utilities.VmSuspender
public class VmSuspender
The VmSuspender. This class serves as the "watchdog" for overrunning students, suspends their VMs, and blocks access for the interregnum period.
Constructor Summary | |
---|---|
VmSuspender(int pollingInterval)
Constructor. |
Method Summary | |
---|---|
int |
getPollingInterval()
Gets the polling interval of the VmSuspender. |
void |
removeStudent(Student student)
|
void |
setDataAccess(DataAccess da)
Sets the DataAccess object. |
void |
setGeneralUtils(GeneralUtils gu)
Sets the GeneralUtils object. |
void |
setParameters(Parameters prefs)
Sets the Parameters object. |
void |
setStrings(Strings s)
Sets the Strings object. |
void |
setVirtualisationAccess(VirtualisationAccess va)
Sets the VirtualisationAccess object. |
java.util.Date |
studentBlockTime(Student student)
Returns the time that a given student is blocked until (i.e. |
void |
studentStartedVM(Student student)
Called when a student starts a VM, and adds them to the watchful eye of the VmSuspender! |
java.util.Date |
studentWillBeShutdown(Student student)
Returns the time that a given student will have their VMs shut down. |
void |
updateStudentSuspended(Student student,
boolean changingStateIsOn)
Checks to see if student's VMs are shut down. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VmSuspender(int pollingInterval)
pollingInterval
- integer, how often the suspender polls in secondsMethod Detail |
---|
public void studentStartedVM(Student student)
student
- student to monitorpublic void updateStudentSuspended(Student student, boolean changingStateIsOn)
student
- student whose VMs should be checkedchangingStateIsOn
- as describedpublic java.util.Date studentBlockTime(Student student)
student
- student to check
public java.util.Date studentWillBeShutdown(Student student)
student
- student to check
public void removeStudent(Student student)
student
- to liberatepublic int getPollingInterval()
public void setVirtualisationAccess(VirtualisationAccess va)
public void setDataAccess(DataAccess da)
public void setParameters(Parameters prefs)
public void setGeneralUtils(GeneralUtils gu)
public void setStrings(Strings s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |