pt.digitalis.sampleApp.iss
Class myProcessCaller

java.lang.Object
  extended by java.lang.Thread
      extended by pt.digitalis.sampleApp.iss.myProcessCaller
All Implemented Interfaces:
Runnable

public class myProcessCaller
extends Thread

This class simulates parallel requests being made to the AppServer. The attributes include the ISS who will execute the request, a user-supplied id and the service request that will be executed.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt

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
myProcessCaller(pt.digitalis.iss.IProcess theProcess, pt.digitalis.iss.ISS theISS, String id)
          Ctor.
 
Method Summary
 pt.digitalis.iss.ServiceRequest getRequest()
          Inspector for the service request attribute.
 pt.digitalis.iss.ProcessResults getResults()
           
 pt.digitalis.iss.IProcess getTheProcess()
           
 void run()
          Overriding Thread#run()...
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

myProcessCaller

public myProcessCaller(pt.digitalis.iss.IProcess theProcess,
                       pt.digitalis.iss.ISS theISS,
                       String id)
Ctor.

Parameters:
theProcess - the process to execute
theISS - the ISS that should execute the process
id - this Caller's id
Method Detail

getRequest

public pt.digitalis.iss.ServiceRequest getRequest()
Inspector for the service request attribute.

Returns:
the service request

run

public void run()
Overriding Thread#run()...

Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run()

getResults

public pt.digitalis.iss.ProcessResults getResults()
Returns:
the results

getTheProcess

public pt.digitalis.iss.IProcess getTheProcess()
Returns:
the theProcess


Copyright © 2009 Digitalis Informática Lda. All Rights Reserved.