56 |
|
*/ |
57 |
|
public static PluginServiceCheckManager getInstance() { |
58 |
|
if (_instance == null){ |
59 |
< |
_instance = new PluginFilterManager(); |
59 |
> |
_instance = new PluginServiceCheckManager(); |
60 |
|
} |
61 |
|
return _instance; |
62 |
|
} |
67 |
|
* Private Constructor - this part creates the filter pipeline |
68 |
|
* This is a singleton class, btw. |
69 |
|
*/ |
70 |
< |
private PluginFilterManager(){ |
70 |
> |
private PluginServiceCheckManager(){ |
71 |
|
_logger.write(toString(), Logger.SYSINIT, "created"); |
72 |
|
} |
73 |
|
|
84 |
|
*/ |
85 |
|
public String runServiceChecks(String hostname){ |
86 |
|
if (!_hostPipelines.containsKey(hostname)) { |
87 |
< |
_hostPipelines.put(hostname, new PluginServiceCheckPipeLine(hostname, this); |
87 |
> |
_hostPipelines.put(hostname, new PluginServiceCheckPipeline(hostname, this)); |
88 |
|
} |
89 |
< |
return "<services>" + ((PluginServiceCheckPipeLine) _hostPipelines.get(hostname)).runPipeline() + "</services>"; |
89 |
> |
return "<services>" + ((PluginServiceCheckPipeline) _hostPipelines.get(hostname)).runPipeline() + "</services>"; |
90 |
|
} |
91 |
|
|
92 |
|
/** |