|
||||||||||
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)
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 Context
name
-
public void start() throws ConfigurationException
Component
start
in interface Component
ConfigurationException
public void stop() throws ConfigurationException
Component
stop
in interface Component
ConfigurationException
public void setOwner(java.lang.Object owner)
Component
setOwner
in interface Component
public void configure(org.w3c.dom.Node configNode, Context context) throws ConfigurationException
DomConfigurable
Node
configure
in interface DomConfigurable
ConfigurationException
public 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 |