net.sourceforge.acelogger.execution.manager
Class BaseExecutorManager

java.lang.Object
  extended by net.sourceforge.acelogger.execution.manager.BaseExecutorManager
All Implemented Interfaces:
ExecutorManager, Identifiable
Direct Known Subclasses:
BaseUtilConcurrentExecutorManager, SynchronousExecutorManager

public abstract class BaseExecutorManager
extends Object
implements ExecutorManager

Abstracts all common tasks for ExecutorManager.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Constructor Summary
BaseExecutorManager(String identitifer)
          Constructs a new BaseExecutorManager with the supplied identifier.
 
Method Summary
 void executeAll(List<Runnable> commands)
          Executes the given commands within this executor, one by one.
 String getIdentifier()
          Gets a String that identifies this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.acelogger.execution.manager.ExecutorManager
awaitTermination, execute, isTerminated, orderProperShutdown, terminateAndRetrieveTasks
 

Constructor Detail

BaseExecutorManager

public BaseExecutorManager(String identitifer)
Constructs a new BaseExecutorManager with the supplied identifier.

Parameters:
identitifer - The string that identifies this executor manager.
Since:
1.0.0
Method Detail

getIdentifier

public final String getIdentifier()
Gets a String that identifies this object.

Specified by:
getIdentifier in interface Identifiable
Returns:
The identifier of this object.

executeAll

public void executeAll(List<Runnable> commands)
Executes the given commands within this executor, one by one. This method should block until the command execution or not, this will depend on the implementation.

Specified by:
executeAll in interface ExecutorManager
Parameters:
commands - A list of tasks to be executed.


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.