biz.hammurapi.util
Class WorkerRemotizer

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by biz.hammurapi.config.RmiComponent
                  extended by 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

Field Summary
 
Fields inherited from class biz.hammurapi.config.RmiComponent
owner
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
WorkerRemotizer()
           
 
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 biz.hammurapi.config.RmiComponent
setOwner, stop
 
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
 

Constructor Detail

WorkerRemotizer

public WorkerRemotizer()
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

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.