org.ogf.graap.wsag.samples.site
Class ExampleService
java.lang.Object
java.lang.Thread
org.ogf.graap.wsag.samples.site.ExampleService
- All Implemented Interfaces:
- Runnable
public class ExampleService
- extends Thread
Example for a service implementation. The example service is instantiated for a specific JSDL job. After it
was instantiated, the service can be started and stopped. As long as the service runs, it prints the job
properties to the console once a second.
- Author:
- owaeld
Method Summary |
void |
run()
As long as the service runs, it prints the job properties to the console once a second. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
ExampleService
public ExampleService(JobDefinitionType job)
- Instantiates the example service with a given job.
- Parameters:
job
- the job to execute
run
public void run()
- As long as the service runs, it prints the job properties to the console once a second.
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.