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/PacketSorter.java
Revision 1.26 - (view) (annotate) - [select for diffs]
Sun Sep 25 09:57:41 2005 UTC (18 years, 7 months ago) by tdb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.25: +7 -3 lines
Diff to previous 1.25
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.25 - (view) (annotate) - [select for diffs]
Wed Dec 8 14:50:32 2004 UTC (19 years, 4 months ago) by tdb
Branch: MAIN
Changes since 1.24: +6 -2 lines
Diff to previous 1.24
Check packet isn't null. Another one of those "shouldn't happen but did"
things ;-)

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

Revision 1.23 - (view) (annotate) - [select for diffs]
Mon Feb 24 20:18:48 2003 UTC (21 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22
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.22 - (view) (annotate) - [select for diffs]
Wed Feb 5 16:43:46 2003 UTC (21 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21
Changed the server to use the external util package. Quite a minor change,
but does affect a lot of files.

Revision 1.21 - (view) (annotate) - [select for diffs]
Sat Oct 12 22:12:36 2002 UTC (21 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.20: +8 -4 lines
Diff to previous 1.20
Changed to use the XMLCache.

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

Revision 1.19 - (view) (annotate) - [select for diffs]
Sat May 18 18:16:01 2002 UTC (21 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.18: +22 -3 lines
Diff to previous 1.18
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.18 - (view) (annotate) - [select for diffs]
Tue May 29 17:02:34 2001 UTC (22 years, 11 months ago) by tdb
Branch: MAIN
Branch point for: SERVER_PIRCBOT
Changes since 1.17: +7 -7 lines
Diff to previous 1.17
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.17 - (view) (annotate) - [select for diffs]
Fri Mar 16 16:11:31 2001 UTC (23 years, 1 month ago) by tdb
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Changes since 1.16: +32 -5 lines
Diff to previous 1.16
Implemented Queue size limiting.

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

Revision 1.15 - (view) (annotate) - [select for diffs]
Tue Mar 13 18:37:08 2001 UTC (23 years, 1 month ago) by tdb
Branch: MAIN
Changes since 1.14: +14 -8 lines
Diff to previous 1.14
Now makes use of the ConfigurationProxy.

Revision 1.14 - (view) (annotate) - [select for diffs]
Tue Mar 13 02:19:44 2001 UTC (23 years, 1 month ago) by tdb
Branch: MAIN
Changes since 1.13: +5 -2 lines
Diff to previous 1.13
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.13 - (view) (annotate) - [select for diffs]
Sat Mar 10 04:03:04 2001 UTC (23 years, 1 month ago) by tdb
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12
Changes due to the alterations in the XML creation code. The XMLPacketMaker now
only needs to be created once, and can then be called multiple times to create
XML packets. This should be more efficient in the long run.

Revision 1.12 - (view) (annotate) - [select for diffs]
Thu Mar 1 23:57:09 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.11: +39 -27 lines
Diff to previous 1.11
Further attempts to sort this class out. This has gone very much to the extreme
now. Every access to the lists and hostmap is synchronized on this object. This
means that only one of the bits may be executed at once. Whilst this may clearly
solve some problems, it does open this class to becoming a major bottleneck, and
could possibly lead to deadlock externally (although I think our Queue's avoid
this issue).

Revision 1.11 - (view) (annotate) - [select for diffs]
Thu Mar 1 17:29:46 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.10: +30 -24 lines
Diff to previous 1.10
Just for the record, Collections.synchronizedList() doesn't work :)
I've now manually synchronized the methods that access the lists and map, and
put the sections of the run method that do the same in synchronized blocks.
This should work, I hope. A lot of hoping seems to be going on here :)

Revision 1.10 - (view) (annotate) - [select for diffs]
Thu Mar 1 16:53:16 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.9: +29 -11 lines
Diff to previous 1.9
Added a try catch section for creating the XMLPacket.
Hopefully fixed the JVM deadlock/crash thing.
Fixed the problem with clients not receiving Queue data if they've called the
SETHOSTLIST command on a Handler.

Revision 1.9 - (view) (annotate) - [select for diffs]
Thu Mar 1 02:14:37 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8
Some ClassCastExceptions going on that only just came up when the client got
to 1.1 protocol :)

Revision 1.8 - (view) (annotate) - [select for diffs]
Wed Feb 28 10:26:47 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.7: +27 -15 lines
Diff to previous 1.7
Changes to fix a bug where the server wouldn't send queueStat packets if the
client had set a hostlist.

Revision 1.7 - (view) (annotate) - [select for diffs]
Mon Feb 26 23:41:35 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.6: +7 -7 lines
Diff to previous 1.6
Oh, some nasty concurrency stuff going on in here. If I've understood the API
correctly what I've done should make the Lists's and Map's thread safe, without
worrying about synchronize() bits everywhere.

Revision 1.6 - (view) (annotate) - [select for diffs]
Wed Feb 21 19:11:28 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.5: +7 -4 lines
Diff to previous 1.5
Modification to the Queue system;
- interval of monitor is now configurable.
- attempt to identify each Queue better, although this is still hard.

Revision 1.5 - (view) (annotate) - [select for diffs]
Mon Feb 12 02:23:52 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.4: +4 -2 lines
Diff to previous 1.4
Now monitor the Queue here every 60 seconds, reporting back to the Queue in
the PacketSorter class.

Revision 1.4 - (view) (annotate) - [select for diffs]
Sat Jan 27 23:30:40 2001 UTC (23 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.3: +69 -11 lines
Diff to previous 1.3
All of these classes have been javadoc'd and commented.

Revision 1.3 - (view) (annotate) - [select for diffs]
Tue Jan 23 18:23:03 2001 UTC (23 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.2: +10 -7 lines
Diff to previous 1.2
General bug fixing. It now works for the features it should.

Revision 1.2 - (view) (annotate) - [select for diffs]
Tue Jan 23 17:22:01 2001 UTC (23 years, 3 months ago) by tdb
Branch: MAIN
Changes since 1.1: +46 -23 lines
Diff to previous 1.1
Now supports "all hosts".

Revision 1.1 - (view) (annotate) - [select for diffs]
Tue Jan 23 16:55:23 2001 UTC (23 years, 3 months ago) by tdb
Branch: MAIN
Initial Checkin. This class sends XML packets to those clients that have shown
interest in receiving it. This should make using the client more scalable.

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