|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.hammurapi.util.CompositeWorkerContainer
public class CompositeWorkerContainer
Simple container
| Constructor Summary | |
|---|---|
CompositeWorkerContainer()
|
|
| Method Summary | |
|---|---|
void |
configure(org.w3c.dom.Node configNode,
Context context,
java.lang.ClassLoader classLoader)
Reads configuration from Node |
java.lang.Object |
get(java.lang.String name)
Looks up component in component tree. |
boolean |
post(java.lang.Runnable job)
Gives job to workers until one of them accepts it. |
void |
setOwner(java.lang.Object owner)
Plugs the component into container and naming bus. |
void |
start()
Invoked by container before the first use. |
void |
stop()
Invoked by container when component is not needed anymore. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeWorkerContainer()
| Method Detail |
|---|
public java.lang.Object get(java.lang.String name)
get in interface Contextname -
public void start()
throws ConfigurationException
Component
start in interface ComponentConfigurationException
public void stop()
throws ConfigurationException
Component
stop in interface ComponentConfigurationExceptionpublic void setOwner(java.lang.Object owner)
Component
setOwner in interface Component
public void configure(org.w3c.dom.Node configNode,
Context context,
java.lang.ClassLoader classLoader)
throws ConfigurationException
DomConfigurableNode
configure in interface DomConfigurableclassLoader - ClassLoader
ConfigurationExceptionpublic boolean post(java.lang.Runnable job)
post in interface Worker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||