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
Revision 1.41 - (view) (annotate) - [select for diffs]
Sun Sep 25 09:57:42 2005 UTC (18 years, 7 months ago) by tdb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.40: +29 -21 lines
Diff to previous 1.40
Fix compile problems on j2se 1.5 - our Queue class conflicted with one in
java.util. Also fix an API issue when running the server on Windows - the
println method sends '\r\n' on Windows instead of '\n' on Unix, which
confuses applications such as ihost.

Patch provided by: skel

Revision 1.40 - (view) (annotate) - [select for diffs]
Sun Aug 1 10:41:05 2004 UTC (19 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39
Catch a lot of old URL's and update them. Also remove a couple of old files
that aren't used.

Revision 1.39 - (view) (annotate) - [select for diffs]
Fri Feb 28 13:03:57 2003 UTC (21 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.38: +6 -2 lines
Diff to previous 1.38
Addition to the protocol which completely breaks backwards compatibility.
Seeing as we sent the FQDN, we may as well tell them the IP too. It seems
oddly hard to reliably work these out on the host itself.

Revision 1.38 - (view) (annotate) - [select for diffs]
Thu Feb 27 18:03:58 2003 UTC (21 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.37: +3 -2 lines
Diff to previous 1.37
Now sends error when something unexpected is received before disconnecting.

Revision 1.37 - (view) (annotate) - [select for diffs]
Thu Feb 27 17:04:24 2003 UTC (21 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.36: +12 -3 lines
Diff to previous 1.36
More explict checking of the last modified value.

Revision 1.36 - (view) (annotate) - [select for diffs]
Wed Feb 26 17:16:30 2003 UTC (21 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35
Changed message when new config is available to "EXPIRED", instead of
"ERROR" :-)

Revision 1.35 - (view) (annotate) - [select for diffs]
Mon Feb 24 20:18:50 2003 UTC (21 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.34: +103 -71 lines
Diff to previous 1.34
Fairly major commit. This will break the current version of ihost, but this
had to be done really to give Pete something to test the new ihost against.

The main change here is removal of the TCP Heartbeat functionality from the
filter. This meant the following features stopped working :-
  - Heartbeat testing
  - Configuration checking
  - Service checks

The heartbeat testing, specifically the monitor, now looks at the presence
of UDP packets instead. Before it just looked for the presence of a TCP
heartbeat packet, so the change their is fairly negligible. Of course this
means heartbeat testing now relies on the UDP working... but I don't see
this as a problem.

Configuration checking has been repositioned in to the filtermanager. This
is a backwards compatible change - the filtermanager should still perform
as it should for older hosts. But now there's an extra command to check the
configuration is up-to-date, with a similar format to the old TCP protocol
in the filter. (although we may optimise this soon)

The service checks are broken. This isn't a major issue for us as they were
pretty useless in the first place. The concept is good, but the checks are
just far too primitive. I expect at some point I'll work on a seperate
component that just monitors services, which will replace this function.

Further changes in the server include removal of the key checking code,
as this relied on a bolt on to the TCP heartbeat protocol to ship the
key. This got more akward than originally planned, so I'm happy to drop the
idea. In the long term we hope to replace this with a public key systems
for signing and even encryption.

Finally, general tidy up to remove other bits of code that check for
TCP heartbeat packets when they don't need to any more.

Revision 1.34 - (view) (annotate) - [select for diffs]
Wed Feb 5 16:43:47 2003 UTC (21 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33
Changed the server to use the external util package. Quite a minor change,
but does affect a lot of files.

Revision 1.33 - (view) (annotate) - [select for diffs]
Fri Sep 6 15:10:48 2002 UTC (21 years, 8 months ago) by tdb
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32
Fix for upgrade to Jacorb 1.4.1. It's our fault actually, we've not been
correctly using the names when binding to the Naming Service. This needs to
be fixed properly at some point, but for now I've changed changed the code
so it "means" the same as it did before the upgrade.

Revision 1.32 - (view) (annotate) - [select for diffs]
Tue May 21 16:47:18 2002 UTC (21 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.31: +3 -2 lines
Diff to previous 1.31
Added URL to GPL headers.

Revision 1.31 - (view) (annotate) - [select for diffs]
Mon May 20 11:38:14 2002 UTC (21 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.30: +14 -7 lines
Diff to previous 1.30
A fix for a COMM_FAILURE that keeps getting out. I think this is happening
when the FilterManager tries to query the filter. It shouldn't really
happen, but it seems it does. It begs the question as to whether every
CORBA communication should be wrapped in one of these... which would
unfortunately include every logging line :/

Revision 1.30 - (view) (annotate) - [select for diffs]
Sat May 18 18:16:02 2002 UTC (21 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.29: +21 -2 lines
Diff to previous 1.29
i-scream is now licensed under the GPL. I've added the GPL headers to every
source file, and put a full copy of the license in the appropriate places.
I think I've covered everything. This is going to be a mad commit ;)

Revision 1.29 - (view) (annotate) - [select for diffs]
Fri Mar 22 10:43:06 2002 UTC (22 years, 1 month ago) by tdb
Branch: MAIN
Changes since 1.28: +10 -10 lines
Diff to previous 1.28
Split the CORBA side of the filter in two. The Filter interface still does
the receiving of data, just like it used to. This can optionally be turned
off in the configuration if required. The new interface, FilterInfo, is
used to provide information (host and ports) to other parts of the server
about the Filter - namely the FilterManager. This split has been done so
that the data receiving part of the Filter can be turned off, without
breaking the FilterManager.

Revision 1.28 - (view) (annotate) - [select for diffs]
Tue May 29 17:02:35 2001 UTC (22 years, 11 months ago) by tdb
Branch: MAIN
Branch point for: SERVER_PIRCBOT
Changes since 1.27: +8 -8 lines
Diff to previous 1.27
Major change in the java package naming. This has been held off for some time
now, but it really needed doing. The future packaging of all i-scream products
will be;

uk.org.iscream.<product>.<subpart>.*

In the case of the central monitoring system server this will be;

uk.org.iscream.cms.server.*

The whole server has been changed to follow this structure, and tested to a
smallish extent. Further changes in other parts of the CMS will follow.

Revision 1.27 - (view) (annotate) - [select for diffs]
Wed Mar 14 23:25:29 2001 UTC (23 years, 1 month ago) by tdb
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Changes since 1.26: +8 -8 lines
Diff to previous 1.26
The whole server package structure has been changed.
Old Package: uk.ac.ukc.iscream.*
New Package: uk.org.iscream.*

Revision 1.26 - (view) (annotate) - [select for diffs]
Tue Mar 13 13:40:26 2001 UTC (23 years, 1 month ago) by tdb
Branch: MAIN
Changes since 1.25: +90 -117 lines
Diff to previous 1.25
Added support for the ConfigurationProxy. Also made the HostInit more "safe",
with checking for null's from the host.

Revision 1.25 - (view) (annotate) - [select for diffs]
Tue Mar 13 02:19:47 2001 UTC (23 years, 1 month ago) by tdb
Branch: MAIN
Changes since 1.24: +5 -2 lines
Diff to previous 1.24
Given all the classes that extend Thread a name using Thread.setName(). It is
only representative as far as it will tell us which class the Thread is, but
this will go some way to aiding debugging. If time permitted, more effort could
be taken to name each thread according to what it was dealing with.

Revision 1.24 - (view) (annotate) - [select for diffs]
Mon Mar 5 23:53:39 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.23: +4 -3 lines
Diff to previous 1.23
The filtermanager returns something more useful to the Host if it can't find a
filter for it.

Revision 1.23 - (view) (annotate) - [select for diffs]
Mon Mar 5 09:50:58 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22
Now catches a more specific exception to the problem. Note that the
ReferenceManager catches the CORBA exception, and throws it's own, so
we need to catch that instead.

Revision 1.22 - (view) (annotate) - [select for diffs]
Mon Mar 5 02:26:01 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.21: +29 -8 lines
Diff to previous 1.21
One can now specify a list of Filter's for a host. This allows a priority list
to be given to a host, and is helpful if a filter isn't active.
NOTE: the exception caught when looking for a Filter could be better.
PROBLEM?: what if the host gets the secondary filter, but the primary comes back
online at a later date ? it won't get it unless told to reconfigure...

Revision 1.21 - (view) (annotate) - [select for diffs]
Wed Feb 28 11:05:20 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20
We'll send FQDN's in lower case... just to be consistent.

Revision 1.20 - (view) (annotate) - [select for diffs]
Wed Feb 28 10:37:46 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.19: +4 -10 lines
Diff to previous 1.19
Don't need to try/catch anymore.

Revision 1.19 - (view) (annotate) - [select for diffs]
Wed Feb 28 10:36:05 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18
That was such a dumb mistake. I should learn not to copy and paste from other
code :)

Revision 1.18 - (view) (annotate) - [select for diffs]
Wed Feb 28 10:27:54 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.17: +22 -4 lines
Diff to previous 1.17
Added support for the new FQDN command.

Revision 1.17 - (view) (annotate) - [select for diffs]
Sun Feb 25 23:19:20 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16
Better error printing.

Revision 1.16 - (view) (annotate) - [select for diffs]
Wed Feb 7 13:47:22 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.15: +3 -16 lines
Diff to previous 1.15
Made use of the autoflush feature of PrintWriter.

Revision 1.15 - (view) (annotate) - [select for diffs]
Sun Jan 28 05:38:13 2001 UTC (23 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.14: +13 -3 lines
Diff to previous 1.14
Some tidying up.

Revision 1.14 - (view) (annotate) - [select for diffs]
Thu Jan 18 23:15:09 2001 UTC (23 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13
Changes to reflect move of Component, ComponentStartException, and the
ReferenceManager from util to componentmanager.

Revision 1.13 - (view) (annotate) - [select for diffs]
Tue Dec 12 20:43:21 2000 UTC (23 years, 4 months ago) by ajm
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12
fixed typo

Revision 1.12 - (view) (annotate) - [select for diffs]
Tue Dec 12 19:17:02 2000 UTC (23 years, 4 months ago) by ajm
Branch: MAIN
Changes since 1.11: +41 -12 lines
Diff to previous 1.11
is now a component class
also tidied the code a bit

Revision 1.11 - (view) (annotate) - [select for diffs]
Thu Dec 7 00:02:17 2000 UTC (23 years, 4 months ago) by tdb
Branch: MAIN
Branch point for: SERVER_PACKAGEBUILD
Changes since 1.10: +23 -24 lines
Diff to previous 1.10
Had a tidy up. The Filter Manager now makes use of the Reference Manager, which
ensures that we don't have lots of messy reference passing.

Revision 1.10 - (view) (annotate) - [select for diffs]
Thu Nov 30 02:20:05 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9
Prepended the configuration request with Host.<name> .

Revision 1.9 - (view) (annotate) - [select for diffs]
Wed Nov 29 19:19:12 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8
Made changes to fit into the new package structure.

Revision 1.8 - (view) (annotate) - [select for diffs]
Mon Nov 27 23:09:06 2000 UTC (23 years, 5 months ago) by ajm
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7
modified the configuration obtaining to fit with the project standard Host configs

Revision 1.7 - (view) (annotate) - [select for diffs]
Thu Nov 23 01:46:17 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.6: +67 -14 lines
Diff to previous 1.6
Added the required extra functionality that the was required to complete the
setup with the host.

Revision 1.6 - (view) (annotate) - [select for diffs]
Mon Nov 20 18:55:24 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.5: +6 -6 lines
Diff to previous 1.5
A lot of changes from Configurator to ConfigurationManager.

Revision 1.5 - (view) (annotate) - [select for diffs]
Thu Nov 16 18:14:05 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.4: +7 -7 lines
Diff to previous 1.4
Added features to support the verbosity levels now provided by the logging system.

Revision 1.4 - (view) (annotate) - [select for diffs]
Wed Nov 15 00:54:27 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.3: +10 -6 lines
Diff to previous 1.3
Better conformance to Protocol.

Revision 1.3 - (view) (annotate) - [select for diffs]
Wed Nov 15 00:39:07 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.2: +4 -3 lines
Diff to previous 1.2
Stupid mistake. :-(

Revision 1.2 - (view) (annotate) - [select for diffs]
Wed Nov 15 00:33:12 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Changes since 1.1: +12 -2 lines
Diff to previous 1.1
Added sending of LastModified date/time of Configuration to host (as per the
minutes-20001113b.txt).

Revision 1.1 - (view) (annotate) - [select for diffs]
Mon Nov 13 20:40:40 2000 UTC (23 years, 5 months ago) by tdb
Branch: MAIN
Initial check in of the FilterManager

Current support for Host connections and passing back configuration.

Support missing for filter contacting etc.

Not finished or fully commented.

Convenience Links

Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a