org.ogf.graap.wsag.samples.site
Class ExampleService

java.lang.Object
  extended by java.lang.Thread
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ExampleService(JobDefinitionType job)
          Instantiates the example service with a given job.
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExampleService

public ExampleService(JobDefinitionType job)
Instantiates the example service with a given job.

Parameters:
job - the job to execute
Method Detail

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.