1 |
|
/* |
2 |
|
* i-scream central monitoring system |
3 |
< |
* http://www.i-scream.org.uk |
3 |
> |
* http://www.i-scream.org |
4 |
|
* Copyright (C) 2000-2002 i-scream |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or |
25 |
|
import uk.org.iscream.cms.util.*; |
26 |
|
import uk.org.iscream.cms.server.componentmanager.*; |
27 |
|
import uk.org.iscream.cms.server.core.*; |
28 |
< |
import java.util.*; |
28 |
> |
import java.util.HashMap; |
29 |
> |
import java.util.Iterator; |
30 |
> |
import java.util.LinkedList; |
31 |
> |
import java.util.List; |
32 |
> |
import java.util.StringTokenizer; |
33 |
|
|
34 |
|
/** |
35 |
|
* Receives data from the incoming CORBA servant, places |
135 |
|
continue; |
136 |
|
} |
137 |
|
|
138 |
+ |
if(packet == null) { |
139 |
+ |
continue; |
140 |
+ |
} |
141 |
+ |
|
142 |
|
String packetType = packet.getParam("packet.attributes.type"); |
143 |
|
// check if we need to send it regardless |
144 |
< |
if(packetType.equals("data") || packetType.equals("heartbeat")) { |
144 |
> |
if(packetType.equals("data")) { |
145 |
|
String host = packet.getParam("packet.attributes.machine_name"); |
146 |
|
|
147 |
|
// look in the hostMap to see if anyone wants this data |