GridGain™ 2.0.3
Java API Specification

org.gridgain.grid.thread
Class GridWorkManagerExecutorService

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by org.gridgain.grid.thread.GridWorkManagerExecutorService
All Implemented Interfaces:
Executor, ExecutorService

public class GridWorkManagerExecutorService
extends AbstractExecutorService

CommonJ-based wrapper for ExecutorService. Implementation delegates all execution request to the work manager. Note that CommonJ work manager is used and/or supported by wide verity of application servers and frameworks such as Coherence, Weblogic, Websphere, Spring, Globus, apache projects, etc.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

Author:   2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3

 

Constructor Summary
GridWorkManagerExecutorService(String jndiName)
          Creates new instance of execution service based on CommonJ implementation.
GridWorkManagerExecutorService(commonj.work.WorkManager mngr)
          Creates new instance of execution service based on CommonJ implementation.
 
Method Summary
 boolean awaitTermination(long timeout, TimeUnit unit)
          
 void execute(Runnable command)
          
 boolean isShutdown()
          
 boolean isTerminated()
          
 void shutdown()
          
 List<Runnable> shutdownNow()
          
 
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridWorkManagerExecutorService

public GridWorkManagerExecutorService(String jndiName)
                               throws GridException
Creates new instance of execution service based on CommonJ implementation.

Throws:
GridException - If work manager is unreachable.
Parameters:
jndiName - Work manager JNDI name.

GridWorkManagerExecutorService

public GridWorkManagerExecutorService(commonj.work.WorkManager mngr)
Creates new instance of execution service based on CommonJ implementation.

Parameters:
mngr - Work manager.
Method Detail

execute

public void execute(Runnable command)


shutdown

public void shutdown()


shutdownNow

public List<Runnable> shutdownNow()


isShutdown

public boolean isShutdown()


isTerminated

public boolean isTerminated()


awaitTermination

public boolean awaitTermination(long timeout,
                                TimeUnit unit)
                         throws InterruptedException

Throws:
InterruptedException

GridGain™ 2.0.3
Java API Specification

GridGain™ - Grid Computing Made Simple, ver. 2.0.3.20052008
2005-2008 Copyright © GridGain Systems. All Rights Reserved.