org.ow2.petals.microkernel.api.container.thread
Class BootstrapThread
java.lang.Object
java.lang.Thread
org.ow2.petals.microkernel.api.container.thread.AbstractThread
org.ow2.petals.microkernel.api.container.thread.BootstrapThread
- All Implemented Interfaces:
- Runnable, javax.jbi.component.Bootstrap
public class BootstrapThread
- extends AbstractThread
- implements javax.jbi.component.Bootstrap
The installer thread.
This thread is used by the Installer component to have
each component in a separate bootstrap environment.
- Author:
- Adrien Louis - EBM WebSourcing, Christophe Hamerling - EBM WebSourcing
Constructor Summary |
BootstrapThread(String installerName,
javax.jbi.component.Bootstrap jbiBootstrap,
long taskTimeout,
LoggingUtil logger)
Creates a new instance of BootstrapThread |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
INSTALL
public static final String INSTALL
- See Also:
- Constant Field Values
UNINSTALL
public static final String UNINSTALL
- See Also:
- Constant Field Values
INIT
public static final String INIT
- See Also:
- Constant Field Values
CLEANUP
public static final String CLEANUP
- See Also:
- Constant Field Values
EXTMBEAN
public static final String EXTMBEAN
- See Also:
- Constant Field Values
BootstrapThread
public BootstrapThread(String installerName,
javax.jbi.component.Bootstrap jbiBootstrap,
long taskTimeout,
LoggingUtil logger)
- Creates a new instance of BootstrapThread
- Parameters:
installer
- jbiBootstrap
-
doTask
protected boolean doTask(String action)
- Process the requested task in the dedicated thread.
- Specified by:
doTask
in class AbstractThread
- Parameters:
action
- the task to execute
- Returns:
- true if the thread needs to continue, false if shutdown is
required
cleanUp
public void cleanUp()
throws javax.jbi.JBIException
- Specified by:
cleanUp
in interface javax.jbi.component.Bootstrap
- Throws:
javax.jbi.JBIException
getExtensionMBeanName
public ObjectName getExtensionMBeanName()
- Specified by:
getExtensionMBeanName
in interface javax.jbi.component.Bootstrap
init
public void init(javax.jbi.component.InstallationContext installContext)
throws javax.jbi.JBIException
- Specified by:
init
in interface javax.jbi.component.Bootstrap
- Throws:
javax.jbi.JBIException
onInstall
public void onInstall()
throws javax.jbi.JBIException
- Specified by:
onInstall
in interface javax.jbi.component.Bootstrap
- Throws:
javax.jbi.JBIException
onUninstall
public void onUninstall()
throws javax.jbi.JBIException
- Specified by:
onUninstall
in interface javax.jbi.component.Bootstrap
- Throws:
javax.jbi.JBIException
Copyright © 2005-2015 Linagora. All Rights Reserved.