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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filtermanager/HostInit.java (file contents):
Revision 1.30 by tdb, Sat May 18 18:16:02 2002 UTC vs.
Revision 1.32 by tdb, Tue May 21 16:47:18 2002 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 127 | Line 128 | class HostInit extends Thread {
128                  }
129              }
130                  
131 <                // hopefully we found a filter
131 >            // hopefully we found a filter
132              if(filterInfoRef != null) {
133                  _logger.write(toString(), Logger.DEBUG, " found filter- " + filter);
134 <                // tell the host about it...
135 <                    _socketOut.println(filterInfoRef.getHostName() + ";"
136 <                                     + filterInfoRef.getUDPPort() + ";"
137 <                                     + filterInfoRef.getTCPPort());
134 >                try {
135 >                    // tell the host about it...
136 >                        _socketOut.println(filterInfoRef.getHostName() + ";"
137 >                                         + filterInfoRef.getUDPPort() + ";"
138 >                                         + filterInfoRef.getTCPPort());
139 >                    }
140 >                    catch(org.omg.CORBA.COMM_FAILURE e) {
141 >                        // failed to talk to filter, lets signal an error
142 >                        _socketOut.println("ERROR");
143 >                        throw new IOException("error communicating with filter - " + e);
144 >                    }
145                  }
146                  else {
147                      // ...or throw a wobbly (and tell the host!)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines