uk.org.iscream.cms.server.client
Class ClientServant

java.lang.Object
  |
  +--org.omg.PortableServer.Servant
        |
        +--uk.org.iscream.cms.server.clientinterface.ClientPOA
              |
              +--uk.org.iscream.cms.server.client.ClientServant
All Implemented Interfaces:
ClientOperations, InvokeHandler

class ClientServant
extends ClientPOA

A servant for the LocalClient. This represents the Client interface for CORBA clients connecting to the i-scream system on the ClientInterface. The i-scream ClientInterface pumps data over CORBA into the queue, using the recieveXML method. The MonitorManager then handles pulling the data out of this queue.

Version:
$Id: ClientServant.java,v 1.14 2003/05/05 22:05:04 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
          A reference to our Queue to place the inbond data into.
static String REVISION
          The current CVS revision of this class
 
Fields inherited from class uk.org.iscream.cms.server.clientinterface.ClientPOA
 
Fields inherited from class org.omg.PortableServer.Servant
 
Constructor Summary
ClientServant(Queue queue)
          Construct a new ClientServant, with a given Queue.
 
Method Summary
 void receiveXML(String xml)
          Adds the inbound data to our queue when the CORBA method is called.
 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.ClientPOA
_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 static final String REVISION
The current CVS revision of this class

See Also:
Constant Field Values

_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.


_queue

private Queue _queue
A reference to our Queue to place the inbond data into.

Constructor Detail

ClientServant

public ClientServant(Queue queue)
Construct a new ClientServant, with a given Queue.

Parameters:
queue - The Queue that will link this class to the MonitorManager
Method Detail

receiveXML

public void receiveXML(String xml)
Adds the inbound data to our queue when the CORBA method is called.

Parameters:
xml - The String of XML data

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.FormatName 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.