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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/rootfilter/RootFilter.java (file contents):
Revision 1.39 by tdb, Sat May 18 18:16:02 2002 UTC vs.
Revision 1.42 by tdb, Wed Feb 5 16:43:48 2003 UTC

# Line 1 | Line 1
1   /*
2   * i-scream central monitoring system
3 + * http://www.i-scream.org.uk
4   * Copyright (C) 2000-2002 i-scream
5   *
6   * This program is free software; you can redistribute it and/or
# Line 22 | Line 23
23   package uk.org.iscream.cms.server.rootfilter;
24  
25   //---IMPORTS---
26 < import uk.org.iscream.cms.server.util.*;
26 > import uk.org.iscream.cms.util.*;
27   import uk.org.iscream.cms.server.core.*;
28   import uk.org.iscream.cms.server.componentmanager.*;
29   import uk.org.iscream.cms.server.clientinterface.*;
# Line 93 | Line 94 | public class RootFilter implements Component {
94          ClientInterface ciReal = null, ciDB = null;
95          // get reference to the client interfaces - the real time one
96          if (realInterface != null) {
97 <            ciReal = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface." + realInterface));
97 >            ciReal = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface\\." + realInterface));
98          }
99          // get reference to the client interfaces - and the db one
100          if (dbInterface != null) {
101 <            ciDB = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface." + dbInterface));
101 >            ciDB = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface\\." + dbInterface));
102          }
103          
104          // setup a queue
# Line 160 | Line 161 | public class RootFilter implements Component {
161          _logger.write(toString(), Logger.DEBUG, "starting Root Filter");
162          RootFilterServant filterServant = new RootFilterServant(queue);
163          // bind to the naming service as a filter
164 <        _refman.bindToOrb(filterServant, "iscream.Filter." + RootFilter.NAME);
164 >        _refman.bindToOrb(filterServant, "iscream.Filter\\." + RootFilter.NAME);
165          
166          _logger.write(toString(), Logger.SYSINIT, "started");
167          
# Line 193 | Line 194 | public class RootFilter implements Component {
194          // first check the client interface
195          try {
196              String cli = cp.getProperty("RootFilter", "RootFilter.realtimeInterfaceName");
197 <            obj = _refman.getCORBARef("iscream.ClientInterface." + cli);
197 >            obj = _refman.getCORBARef("iscream.ClientInterface\\." + cli);
198          } catch(ComponentCORBAException e) {
199              System.err.println(toString() + ": Dependency Failure: "+e);
200              return false;
# Line 203 | Line 204 | public class RootFilter implements Component {
204          // second check the database interface
205          try {
206              String dbi = cp.getProperty("RootFilter", "RootFilter.dbInterfaceName");
207 <            obj = _refman.getCORBARef("iscream.ClientInterface." + dbi);
207 >            obj = _refman.getCORBARef("iscream.ClientInterface\\." + dbi);
208          } catch(ComponentCORBAException e) {
209              System.err.println(toString() + ": Dependency Failure: "+e);
210              return false;
# Line 219 | Line 220 | public class RootFilter implements Component {
220       * Overrides the {@link java.lang.Object#toString() Object.toString()}
221       * method to provide clean logging (every class should have this).
222       *
223 <     * This uses the uk.org.iscream.cms.server.util.NameFormat class
223 >     * This uses the uk.org.iscream.cms.util.NameFormat class
224       * to format the toString()
225       *
226       * @return the name of this class and its CVS revision

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines