|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
de.cau.cs.kieler.kwebs.client.ui.AbstractServerBasedJob
public abstract class AbstractServerBasedJob
This is an abstract job with the support for testing the servers availability.
Field Summary |
---|
Fields inherited from class org.eclipse.core.runtime.jobs.Job |
---|
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING |
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob |
---|
manager |
Constructor Summary | |
---|---|
protected |
AbstractServerBasedJob(String jobName,
Shell theparentShell,
ServerConfigData theserverConfig)
Creates a Job. |
Method Summary | |
---|---|
protected abstract void |
available(ILayoutServiceClient client,
String message)
Called by this job if the server is available. |
protected boolean |
checkAvailability()
Runs the job and checks for service availability. |
protected ServerConfigData |
getServerConfig()
Returns the server configuration used for this job. |
protected Shell |
getShell()
Returns the shell used for this job. |
protected void |
processError(Throwable throwable)
Can be used by sub classes to display errors occurred during execution. |
protected void |
processMessage(String title,
String message)
Can be used by sub classes to display messages during execution. |
protected abstract void |
unavailable(ILayoutServiceClient client,
String message)
Called by this job if the server is not available. |
Methods inherited from class org.eclipse.core.runtime.jobs.Job |
---|
addJobChangeListener, belongsTo, cancel, canceling, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, run, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule |
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob |
---|
compareTo |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
---|
getAdapter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
protected AbstractServerBasedJob(String jobName, Shell theparentShell, ServerConfigData theserverConfig)
jobName
- the name of the jobtheparentShell
- the parent shelltheserverConfig
- the server configuration to be testedMethod Detail |
---|
protected Shell getShell()
protected ServerConfigData getServerConfig()
protected boolean checkAvailability()
monitor
- the progress monitor used
protected void processError(Throwable throwable)
throwable
- the throwable occurredprotected void processMessage(String title, String message)
title
- the title of the messagemessage
- the message to displayprotected abstract void available(ILayoutServiceClient client, String message)
client
- the layout service client usedmessage
- detailed messageprotected abstract void unavailable(ILayoutServiceClient client, String message)
client
- the layout service client usedmessage
- detailed message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |