|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.item.jt.system.CallbackProc
public class CallbackProc
A simple generic callback procedure which accepts a callback, responds on queries of whether the callback has been received and releases the job from the Vix API upon completion. Callbacks are used when executing operations in the Vix API in a non-blocking manner. The Vix API (via JNA) will call the provided callback when the given operation is finished.
Callback
Field Summary |
---|
Fields inherited from interface com.sun.jna.Callback |
---|
METHOD_NAME |
Constructor Summary | |
---|---|
CallbackProc(GuestOS guestOS)
Creates a new CallbackProc instance. |
Method Summary | |
---|---|
void |
callback()
Called by JNA/Vix when the operation is completed. |
protected void |
finalize()
Unregister the job with the Vix API to free up any reserved resources. |
boolean |
isFinished()
Check whether the callback has been received. |
void |
setJobHandle(int jobHandle)
Sets the job handle associated with this job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallbackProc(GuestOS guestOS)
guestOS
- Method Detail |
---|
public void setJobHandle(int jobHandle)
jobHandle
- handle of the job that is being executed.public void callback()
public boolean isFinished()
protected void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |