ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/CorbaClientListenerServant.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/CorbaClientListenerServant.java (file contents):
Revision 1.5 by tdb, Wed Feb 21 19:11:28 2001 UTC vs.
Revision 1.10 by tdb, Sat May 18 18:16:00 2002 UTC

# Line 1 | Line 1
1 + /*
2 + * i-scream central monitoring system
3 + * Copyright (C) 2000-2002 i-scream
4 + *
5 + * This program is free software; you can redistribute it and/or
6 + * modify it under the terms of the GNU General Public License
7 + * as published by the Free Software Foundation; either version 2
8 + * of the License, or (at your option) any later version.
9 + *
10 + * This program is distributed in the hope that it will be useful,
11 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 + * GNU General Public License for more details.
14 + *
15 + * You should have received a copy of the GNU General Public License
16 + * along with this program; if not, write to the Free Software
17 + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 + */
19 +
20   //---PACKAGE DECLARATION---
21 < package uk.ac.ukc.iscream.clientinterface;
21 > package uk.org.iscream.cms.server.clientinterface;
22  
23   //---IMPORTS---
24 < import uk.ac.ukc.iscream.core.*;
25 < import uk.ac.ukc.iscream.util.*;
26 < import uk.ac.ukc.iscream.componentmanager.*;
27 < import uk.ac.ukc.iscream.client.*;
24 > import uk.org.iscream.cms.server.core.*;
25 > import uk.org.iscream.cms.server.util.*;
26 > import uk.org.iscream.cms.server.componentmanager.*;
27 > import uk.org.iscream.cms.server.client.*;
28  
29   /**
30   * This class, a servant, listens for incoming connections from CORBA based
# Line 33 | Line 52 | class CorbaClientListenerServant extends CorbaClientLi
52       * Creates a new CorbaClientListenerServant.
53       *
54       * @param packetSorter a reference to the PacketSorter object being used
36     * @param queueMonitorInterval the interval at which to monitor the Queue
55       */
56 <    public CorbaClientListenerServant(PacketSorter packetSorter, int queueMonitorInterval) {
56 >    public CorbaClientListenerServant(PacketSorter packetSorter) {
57          _packetSorter = packetSorter;
40        _queueMonitorInterval = queueMonitorInterval;
58          _logger.write(toString(), Logger.SYSINIT, "created");
59      }
60      
# Line 47 | Line 64 | class CorbaClientListenerServant extends CorbaClientLi
64       * Allows a CORBA client to connect to the server.
65       *
66       * @param client a reference to the "servant" part of the connecting client.
67 +     * @param name a name to identify the client.
68       * @return a CorbaControlHandler reference.
69       */
70 <    public CorbaControlHandler connect(Client client) {
71 <        CorbaControlHandlerServant cchServant = new CorbaControlHandlerServant(_packetSorter, client, _queueMonitorInterval);
70 >    public CorbaControlHandler connect(Client client, String name) {
71 >        CorbaControlHandlerServant cchServant = new CorbaControlHandlerServant(_packetSorter, client, name);
72          org.omg.CORBA.Object objRef;
73          try {
74              objRef = _refman.getRootPOA().servant_to_reference(cchServant);
# Line 66 | Line 84 | class CorbaClientListenerServant extends CorbaClientLi
84       * Overrides the {@link java.lang.Object#toString() Object.toString()}
85       * method to provide clean logging (every class should have this).
86       *
87 <     * This uses the uk.ac.ukc.iscream.util.NameFormat class
87 >     * This uses the uk.org.iscream.cms.server.util.NameFormat class
88       * to format the toString()
89       *
90       * @return the name of this class and its CVS revision
# Line 110 | Line 128 | class CorbaClientListenerServant extends CorbaClientLi
128       * A reference to the PacketSorter.
129       */
130      private PacketSorter _packetSorter;
113    
114    /**
115     * The interval at which to monitor Queues.
116     */
117    private int _queueMonitorInterval;
131      
132   //---STATIC ATTRIBUTES---
133  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines