biz.hammurapi.util
Class WorkerRemotizer
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
biz.hammurapi.config.RmiComponent
biz.hammurapi.util.WorkerRemotizer
- All Implemented Interfaces:
- Component, DomConfigurable, RemoteWorker, java.io.Serializable, java.rmi.Remote
public class WorkerRemotizer
- extends RmiComponent
- implements RemoteWorker
Exposes local worker as remote
- Author:
- Pavel Vlasov
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
void |
configure(org.w3c.dom.Node configNode,
Context context)
Reads configuration from Node |
boolean |
post(java.lang.Runnable job)
Posts job to remote worker |
void |
start()
Invoked by container before the first use. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
WorkerRemotizer
public WorkerRemotizer()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
post
public boolean post(java.lang.Runnable job)
- Description copied from interface:
RemoteWorker
- Posts job to remote worker
- Specified by:
post
in interface RemoteWorker
- Returns:
configure
public void configure(org.w3c.dom.Node configNode,
Context context)
- Description copied from interface:
DomConfigurable
- Reads configuration from
Node
- Specified by:
configure
in interface DomConfigurable
- Overrides:
configure
in class RmiComponent
start
public void start()
throws ConfigurationException
- Description copied from interface:
Component
- Invoked by container before the first use.
Component shall perform initialization
in this method.
- Specified by:
start
in interface Component
- Overrides:
start
in class RmiComponent
- Throws:
ConfigurationException
Copyright © 2003 Hammurapi Group. All Rights Reserved.