|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jumpi.impl.threadfactory.ThreadFactoryImpl
Simple ThreadFactoryImpl implementation producing non daemon, normal priority threads.
Constructor Summary | |
ThreadFactoryImpl()
|
Method Summary | |
void |
configure(java.lang.String name,
Properties props)
Configure the ThreadFactoryImpl. |
java.lang.String |
getName()
Get the fully qualified name of the instance. |
java.lang.Thread |
getThread(java.lang.Runnable runnable)
Return a Thread which runs the provided Runnable instance. |
void |
manage(Component root,
Component parent,
java.lang.String operation,
java.util.Hashtable parameters)
Manage the ThreadFactoryImpl. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreadFactoryImpl()
Method Detail |
public java.lang.Thread getThread(java.lang.Runnable runnable)
getThread
in interface ThreadFactory
runnable
- the Runnable instance that the thread will start to run.
java.lang.IllegalArgumentException
- when runnable is null.
java.lang.IllegalStateException
- when not started.public java.lang.String getName()
getName
in interface Configurable
configure(java.lang.String, org.jumpi.spi.Properties)
public void configure(java.lang.String name, Properties props) throws java.lang.Exception
configure
in interface Configurable
name
- the fully qualified instance name.props
- the read-only properties to configure the instance with.
java.lang.Exception
- when configuration is unsuccessful.
java.lang.IllegalArgumentException
- if name or props is null or invalid
parameters.public void manage(Component root, Component parent, java.lang.String operation, java.util.Hashtable parameters) throws java.lang.Exception
Manage the ThreadFactoryImpl.
The following management actions are handled:
manage
in interface Manageable
root
- the Jumpi instance at the root of the component tree.parent
- the immediate parent of the component.operation
- the operation.parameters
- the operation parameters.
java.lang.Exception
- if any failure to perform management occurs.
java.lang.IllegalArgumentException
- when parameters are missing.Operation
,
Parameters
|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |