Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.orch
Class SDFOrchestratorWorkerHandler

java.lang.Object
  extended by oracle.apps.fnd.applseed.orch.SDFOrchestratorWorkerHandler
All Implemented Interfaces:
java.lang.Runnable

public class SDFOrchestratorWorkerHandler
extends java.lang.Object
implements java.lang.Runnable

This class implements the thread in SDF orchestrator that handles all the communications with the particular SDF worker.


Method Summary
 void assignTask(SDFOrchestratorTask task)
          Assign task to worker.
 boolean isAvailable()
          Checks if worker is available to process another task.
 boolean isFinished()
          Checks if worker has finished.
 boolean isWaiting()
          Checks if worker is waiting for command.
 void run()
           
 void setWaiting(boolean waiting)
          Sets the waiting state of the worker handler.
 void stop()
          Requests worker to stop.
 void waitToFinish()
          Wait to worker to finish.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setWaiting

public void setWaiting(boolean waiting)
Sets the waiting state of the worker handler.

Parameters:
waiting - the new waiting

stop

public void stop()
Requests worker to stop.


isAvailable

public boolean isAvailable()
Checks if worker is available to process another task.

Returns:
true, if the task can be assigned to worker

isFinished

public boolean isFinished()
Checks if worker has finished.

Returns:
true, if worker has finished

isWaiting

public boolean isWaiting()
Checks if worker is waiting for command.

Returns:
true, if worker is waiting for command

assignTask

public void assignTask(SDFOrchestratorTask task)
Assign task to worker.

Parameters:
task - : SDF task

run

public void run()
Specified by:
run in interface java.lang.Runnable

waitToFinish

public void waitToFinish()
Wait to worker to finish.


Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.