org.apache.yoko.orb.OB
Class DispatchStrategyFactory_impl

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.apache.yoko.orb.OB.DispatchStrategyFactory_impl
All Implemented Interfaces:
DispatchStrategyFactory, DispatchStrategyFactoryOperations, Object

public class DispatchStrategyFactory_impl
extends LocalObject
implements DispatchStrategyFactory


Constructor Summary
DispatchStrategyFactory_impl()
           
 
Method Summary
protected  void _OB_destroy()
           
 void _OB_setORBInstance(ORBInstance orbInstance)
           
 DispatchStrategy create_default_dispatch_strategy()
          Create a default dispatch strategy.
 DispatchStrategy create_same_thread_strategy()
          Create a same thread dispatch strategy.
 DispatchStrategy create_thread_per_request_strategy()
          Create a same thread per request dispatch strategy.
 DispatchStrategy create_thread_pool_strategy(int id)
          Create a thread pool dispatch strategy.
 int create_thread_pool(int nthreads)
          Create a thread pool containing nthreads.
 void destroy_thread_pool(int id)
          Destroy a thread pool with the given id.
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

DispatchStrategyFactory_impl

public DispatchStrategyFactory_impl()
Method Detail

create_thread_pool

public int create_thread_pool(int nthreads)
Description copied from interface: DispatchStrategyFactoryOperations
Create a thread pool containing nthreads.

Specified by:
create_thread_pool in interface DispatchStrategyFactoryOperations
Parameters:
nthreads - The number of threads the pool in the pool

destroy_thread_pool

public void destroy_thread_pool(int id)
                         throws InvalidThreadPool
Description copied from interface: DispatchStrategyFactoryOperations
Destroy a thread pool with the given id. If the thread pool is is use by an object adapter any new requests will cause an OBJ_ADAPTER exception.

Specified by:
destroy_thread_pool in interface DispatchStrategyFactoryOperations
Parameters:
id - The thread pool id
Throws:
InvalidThreadPool - If the thread pool id is valid.

create_thread_pool_strategy

public DispatchStrategy create_thread_pool_strategy(int id)
                                             throws InvalidThreadPool
Description copied from interface: DispatchStrategyFactoryOperations
Create a thread pool dispatch strategy.

Specified by:
create_thread_pool_strategy in interface DispatchStrategyFactoryOperations
Parameters:
id - The thread pool id
Returns:
A dispatch strategy
Throws:
InvalidThreadPool - If the thread pool id is valid.

create_same_thread_strategy

public DispatchStrategy create_same_thread_strategy()
Description copied from interface: DispatchStrategyFactoryOperations
Create a same thread dispatch strategy.

Specified by:
create_same_thread_strategy in interface DispatchStrategyFactoryOperations
Returns:
A dispatch strategy

create_thread_per_request_strategy

public DispatchStrategy create_thread_per_request_strategy()
Description copied from interface: DispatchStrategyFactoryOperations
Create a same thread per request dispatch strategy.

Specified by:
create_thread_per_request_strategy in interface DispatchStrategyFactoryOperations
Returns:
A dispatch strategy

create_default_dispatch_strategy

public DispatchStrategy create_default_dispatch_strategy()
Description copied from interface: DispatchStrategyFactoryOperations
Create a default dispatch strategy. The default dispatch strategy is created according to the ooc.orb.oa.conc_model property.

Specified by:
create_default_dispatch_strategy in interface DispatchStrategyFactoryOperations
Returns:
A dispatch strategy

_OB_setORBInstance

public void _OB_setORBInstance(ORBInstance orbInstance)

_OB_destroy

protected void _OB_destroy()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.