uk.org.iscream.cms.server.dbinterface
Class DBServant

java.lang.Object
  |
  +--org.omg.PortableServer.Servant
        |
        +--uk.org.iscream.cms.server.clientinterface.ClientInterfacePOA
              |
              +--uk.org.iscream.cms.server.dbinterface.DBServant
All Implemented Interfaces:
ClientInterfaceOperations, InvokeHandler

public class DBServant
extends ClientInterfacePOA

Receives XML and adds it to a Queue for processing.

Version:
$Id: DBServant.java,v 1.5 2003/02/05 16:43:47 tdb Exp $
Author:
$Author: tdb $

Field Summary
private  Logger _logger
          This holds a reference to the system logger that is being used.
private  String _name
          This is the friendly identifier of the component this class is running in.
private  Queue _queue
          Queue to put XML in
 String REVISION
          The current CVS revision of this class
 
Fields inherited from class uk.org.iscream.cms.server.clientinterface.ClientInterfacePOA
 
Fields inherited from class org.omg.PortableServer.Servant
 
Constructor Summary
DBServant(Queue queue)
           
 
Method Summary
 void receiveXML(String xml)
          Implements the ClientInterface
 String toString()
          Overrides the Object.toString() method to provide clean logging (every class should have this).
 
Methods inherited from class uk.org.iscream.cms.server.clientinterface.ClientInterfacePOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public final String REVISION
The current CVS revision of this class

See Also:
Constant Field Values

_queue

private Queue _queue
Queue to put XML in


_name

private String _name
This is the friendly identifier of the component this class is running in. eg, a Filter may be called "filter1", If this class does not have an owning component, a name from the configuration can be placed here. This name could also be changed to null for utility classes.


_logger

private Logger _logger
This holds a reference to the system logger that is being used.

Constructor Detail

DBServant

public DBServant(Queue queue)
          throws ComponentStartException
Method Detail

receiveXML

public void receiveXML(String xml)
Implements the ClientInterface

Parameters:
xml - the xml data to be placed into the queue

toString

public String toString()
Overrides the Object.toString() method to provide clean logging (every class should have this). This uses the uk.org.iscream.cms.util.NameFormat class to format the toString()

Overrides:
toString in class Object
Returns:
the name of this class and its CVS revision


Copyright © 2000-2003 i-scream. All Rights Reserved.