Package be.uclouvain.orthanc
Class Job
- java.lang.Object
-
- be.uclouvain.orthanc.Job
-
public class Job extends java.lang.Object
Orthanc job
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Job(long self)
Construct a Java object wrapping a C object that is managed by Orthanc.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Manually deallocate the C object that is associated with this Java wrapper.protected void
finalize()
protected long
getSelf()
Return the C object that is associated with this Java wrapper.java.lang.String
submitJob(int priority)
Submit a new job to the jobs engine of Orthanc.
-
-
-
Method Detail
-
getSelf
protected long getSelf()
Return the C object that is associated with this Java wrapper.- Returns:
- Pointer to the C object.
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
dispose
public void dispose()
Manually deallocate the C object that is associated with this Java wrapper. This method can be used to immediately deallocate the C object, instead of waiting for the garbage collector to dispose the Java wrapper.
-
submitJob
public java.lang.String submitJob(int priority)
Submit a new job to the jobs engine of Orthanc. This function adds the given job to the pending jobs of Orthanc. Orthanc will take take of freeing it by invoking the finalization callback provided to OrthancPluginCreateJob().- Parameters:
priority
- The priority of the job.- Returns:
- The resulting string.
-
-