|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.acelogger.factory.ExecutorManagerFactory
public final class ExecutorManagerFactory

Factory for managing instances of configured executor managers.
| Method Summary | |
|---|---|
static boolean |
awaitExecutorManagersShutdown(long terminationTimeout)
Awaits for the execution of the remaining tasks in executor managers registered in this factory. |
static boolean |
doProperExecutorManagersShutdown()
Shuts down each of the registered executor managers, this should be called to guarantee that all tasks submitted will be run before termination. |
static ExecutorManager |
getDefaultExecutorManager()
Returns the default manager of this factory, the one used when no manager is found for a given identifier. |
static ExecutorManager |
getExecutorManager(String identifier)
Obtains a properly configured manager for the given identifier. |
static List<ExecutorManager> |
getRegisteredExecutorManagers()
Returns a list of all managers registered in this factory. |
static boolean |
isShutdown()
Indicates if this factory has ordered all of its managers a shutdown or not. |
static ExecutorManager |
registerExecutorManager(ExecutorManager manager)
Registers an appender within this factory. |
static ExecutorManager |
setDefaultExecutorManager(ExecutorManager manager)
Sets the default manager of this factory, the one used when no manager is found for a given identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ExecutorManager getExecutorManager(String identifier)
identifier - The identifier of the intended manager.
getDefaultExecutorManager()public static ExecutorManager setDefaultExecutorManager(ExecutorManager manager)
manager - The manager that will be used as the default one from now.
public static ExecutorManager getDefaultExecutorManager()
public static ExecutorManager registerExecutorManager(ExecutorManager manager)
manager - The manager to be registered.
getDefaultExecutorManager()public static List<ExecutorManager> getRegisteredExecutorManagers()
public static boolean isShutdown()
public static boolean doProperExecutorManagersShutdown()
public static boolean awaitExecutorManagersShutdown(long terminationTimeout)
throws TerminationException
terminationTimeout - The maximum time (in ms) to wait while executing the remaining tasks.
TerminationException - if interrupted while waiting for managers to shutdown.doProperExecutorManagersShutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||