|
Protege 3.4.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.util.RemoteJob
edu.stanford.smi.protege.util.ProtegeJob
public abstract class ProtegeJob
This class defines a unit of work to be executed in the context of a knowledge base. The purpose of this class is to allow a caller to define a unit of work that will be performed on the server if the jvm defining the job is a client accessing a Protege server. If the jvm is executing the knowledge base locally, this unit of work is executed directly on the local knowledge base. Most developers will need to override both the run() and localize() methods.
Constructor Summary | |
---|---|
ProtegeJob(KnowledgeBase kb)
The main constructor for ProtegeJob's. |
Method Summary | |
---|---|
Object |
execute()
This method will either execute the job.run() method or - in the case that the caller is a client to a Protege server - it will copy this job to the server so that it can execute there. |
void |
fixLoader()
|
KnowledgeBase |
getKnowledgeBase()
Returns the knowledge base associated with this job. |
ProjectInstance |
getMetaProjectInstance()
This is a utility for dealing with the metaproject instance when it is known that we are executing on the server side. |
void |
localize(KnowledgeBase kb)
This call is used to make needed adjustments to objects after they have been serialized and then deserialized. |
boolean |
serverSideCheckOperationAllowed(Operation op)
|
Methods inherited from class edu.stanford.smi.protege.util.RemoteJob |
---|
run, serverSideCheckOperationAllowed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProtegeJob(KnowledgeBase kb)
kb
- - the knowledge base to be used when executing this job.Method Detail |
---|
public Object execute() throws ProtegeException
ProtegeException
- the exception thrown by this job during its execution.public KnowledgeBase getKnowledgeBase()
public void fixLoader()
fixLoader
in class RemoteJob
public ProjectInstance getMetaProjectInstance()
public boolean serverSideCheckOperationAllowed(Operation op)
public void localize(KnowledgeBase kb)
localize
in interface Localizable
kb
- The knowledge base of running on the jvm that deserialized this job.
|
Protege 3.4.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |