org.objectweb.dream.control.activity.manager
Class ThreadManagerImpl

java.lang.Object
  extended by org.objectweb.dream.AbstractComponent
      extended by org.objectweb.dream.control.activity.manager.ThreadManagerImpl
All Implemented Interfaces:
ThreadManager, ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, BindingController, LifeCycleController

public class ThreadManagerImpl
extends AbstractComponent
implements ThreadManager

Implementation of the ThreadManagerinterface.


Field Summary
static String ACTIVITY_CONTENT_CONTROLLER_ITF_NAME
          Name of the content controller client interface of this component.
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, fcNeedAsyncStart, fcState, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.control.activity.manager.ThreadManager
ITF_NAME
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
ThreadManagerImpl()
           
 
Method Summary
 Task addThread()
          Creates, and returns a thread component.
 void bindFc(String clientItfName, Object serverItf)
           
 String[] listFc()
           
 void removeThread(Task task)
          Removes the thread, the given task interface belong.
 
Methods inherited from class org.objectweb.dream.AbstractComponent
beforeFirstStart, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, setLogger, startFc, stopFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVITY_CONTENT_CONTROLLER_ITF_NAME

public static final String ACTIVITY_CONTENT_CONTROLLER_ITF_NAME
Name of the content controller client interface of this component.

See Also:
Constant Field Values
Constructor Detail

ThreadManagerImpl

public ThreadManagerImpl()
Method Detail

addThread

public Task addThread()
Description copied from interface: ThreadManager
Creates, and returns a thread component.

Specified by:
addThread in interface ThreadManager
Returns:
the task interface of the created thread.
See Also:
ThreadManager.addThread()

removeThread

public void removeThread(Task task)
                  throws IllegalTaskException
Description copied from interface: ThreadManager
Removes the thread, the given task interface belong.

Specified by:
removeThread in interface ThreadManager
Parameters:
task - a task interface of a thread component.
Throws:
IllegalTaskException - if the given task interface is unknown.
See Also:
ThreadManager.removeThread(Task)

listFc

public String[] listFc()
Specified by:
listFc in interface BindingController
See Also:
BindingController.listFc()

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
Specified by:
bindFc in interface BindingController
Overrides:
bindFc in class AbstractComponent
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
BindingController.bindFc(String, Object)


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.