biz.hammurapi.util
Class RemoteWorkerComponent
java.lang.Object
biz.hammurapi.util.RemoteWorkerComponent
- All Implemented Interfaces:
- Worker
public class RemoteWorkerComponent
- extends java.lang.Object
- implements Worker
Unwraps remote worker
- Author:
- Pavel Vlasov
Method Summary |
void |
configure(org.w3c.dom.Node configNode,
Context context)
|
boolean |
post(java.lang.Runnable job)
Gives job to worker |
void |
setOwner(java.lang.Object owner)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteWorkerComponent
public RemoteWorkerComponent()
start
public void start()
throws ConfigurationException
- Throws:
ConfigurationException
stop
public void stop()
throws ConfigurationException
- Throws:
ConfigurationException
setOwner
public void setOwner(java.lang.Object owner)
configure
public void configure(org.w3c.dom.Node configNode,
Context context)
throws ConfigurationException
- Throws:
ConfigurationException
post
public boolean post(java.lang.Runnable job)
- Description copied from interface:
Worker
- Gives job to worker
- Specified by:
post
in interface Worker
- Returns:
- true if worker accepted job. There can
be situations when worker cannot accept job. E.g.
remote worker cannot accept non-serializable job.
Copyright © 2003 Hammurapi Group. All Rights Reserved.