| 44 |
|
public final String REVISION = "$Revision$"; |
| 45 |
|
|
| 46 |
|
/** |
| 47 |
< |
* file name suffix for plugin filter classes: |
| 47 |
> |
* file name suffix for plugin service check classes: |
| 48 |
|
*/ |
| 49 |
|
private final String _suffix = "__ServiceCheck"; |
| 50 |
|
|
| 51 |
|
//---STATIC METHODS--- |
| 52 |
|
|
| 53 |
|
/** |
| 54 |
< |
* Return a reference to the single class. |
| 54 |
> |
* Return a reference to the singleton class. |
| 55 |
|
* Construct it if it does not already exist, otherwise just return the reference. |
| 56 |
|
*/ |
| 57 |
|
public static PluginServiceCheckManager getInstance() { |
| 74 |
|
//---PUBLIC METHODS--- |
| 75 |
|
|
| 76 |
|
/** |
| 77 |
< |
* apply all of the filters in the pipeline to the packet. |
| 78 |
< |
* return true if they all accept the packet. |
| 79 |
< |
* return false if any single filter rejects the packet. |
| 80 |
< |
* return true if there are no filters inthe pipeline. |
| 77 |
> |
* run all registered service checks on a given host, |
| 78 |
> |
* returning XML data with information about the check. |
| 79 |
|
* |
| 80 |
< |
* @param the host to run service checks for |
| 81 |
< |
* @return whether the packet can be passed on |
| 80 |
> |
* @param hostname the host to run service checks for |
| 81 |
> |
* @return the xml output from the service checks |
| 82 |
|
*/ |
| 83 |
|
public String runServiceChecks(String hostname){ |
| 84 |
|
if (!_hostPipelines.containsKey(hostname)) { |