29 |
|
import java.text.NumberFormat; |
30 |
|
import uk.org.iscream.cms.server.client.*; |
31 |
|
import uk.org.iscream.cms.server.core.*; |
32 |
< |
import uk.org.iscream.cms.server.util.*; |
32 |
> |
import uk.org.iscream.cms.util.*; |
33 |
|
import uk.org.iscream.cms.server.componentmanager.*; |
34 |
|
|
35 |
|
/** |
66 |
|
*/ |
67 |
|
public void analysePacket(XMLPacket packet) { |
68 |
|
String source = packet.getParam("packet.attributes.machine_name"); |
69 |
+ |
if(!checkBooleanConfig("Host." + source, "Monitor." + _name + ".enable")) { |
70 |
+ |
return; |
71 |
+ |
} |
72 |
|
if (!_hosts.containsKey(source)) { |
73 |
|
_hosts.put(source, new HashMap()); |
74 |
|
} |
148 |
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
149 |
|
* method to provide clean logging (every class should have this). |
150 |
|
* |
151 |
< |
* This uses the uk.org.iscream.cms.server.util.NameFormat class |
151 |
> |
* This uses the uk.org.iscream.cms.util.NameFormat class |
152 |
|
* to format the toString() |
153 |
|
* |
154 |
|
* @return the name of this class and its CVS revision |
179 |
|
* @return a reference to a Queue |
180 |
|
*/ |
181 |
|
protected Queue getQueue() { |
182 |
< |
return MonitorManager.getInstance().getHeartbeatQueue(); |
182 |
> |
return MonitorManager.getInstance().getOtherQueue(); |
183 |
|
} |
184 |
|
|
185 |
|
//---ATTRIBUTES--- |