uk.org.iscream.cms.server.rootfilter
Class CorbaClientListenerServant

java.lang.Object
  |
  +--org.omg.PortableServer.Servant
        |
        +--uk.org.iscream.cms.server.clientinterface.CorbaClientListenerPOA
              |
              +--uk.org.iscream.cms.server.rootfilter.CorbaClientListenerServant
All Implemented Interfaces:
CorbaClientListenerOperations, InvokeHandler

class CorbaClientListenerServant
extends CorbaClientListenerPOA

This class, a servant, listens for incoming connections from CORBA based clients. Once it receives a connection it creates and assigns a CorbaControlHandler object to it. The CorbaControlHandler will then handle all requests on behalf of the client, and will send the client data.

Version:
$Id: CorbaClientListenerServant.java,v 1.1 2003/05/05 22:05:14 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.
private  ReferenceManager _refman
          A reference to the reference manager in use
 String REVISION
          The current CVS revision of this class
 
Fields inherited from class uk.org.iscream.cms.server.clientinterface.CorbaClientListenerPOA
 
Fields inherited from class org.omg.PortableServer.Servant
 
Constructor Summary
CorbaClientListenerServant(Queue queue)
          Creates a new CorbaClientListenerServant.
 
Method Summary
 CorbaControlHandler connect(Client client, String name)
          Allows a CORBA client to connect to the server.
 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.CorbaClientListenerPOA
_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

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


_refman

private ReferenceManager _refman
A reference to the reference manager in use


_queue

private Queue _queue
A reference to our Queue.

Constructor Detail

CorbaClientListenerServant

public CorbaClientListenerServant(Queue queue)
Creates a new CorbaClientListenerServant.

Parameters:
queue - a reference to the Queue being used
Method Detail

connect

public CorbaControlHandler connect(Client client,
                                   String name)
Allows a CORBA client to connect to the server.

Parameters:
client - a reference to the "servant" part of the connecting client.
name - a name to identify the client.
Returns:
a CorbaControlHandler reference.

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.