|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.iscream.cms.server.filter.PluginServiceCheckPipeline
class PluginServiceCheckPipeline
This class setups up and manages Plugins for performing service checks. A list of plugins to use is specified in the configuration, and these are all loaded for a specific host when asked. It asks the configuration manager for references to ServiceChecks to perform, thus ensuring only one instance of a service check is loaded for all hosts.
Field Summary | |
---|---|
private long |
_created
When this pipleine was created |
private String |
_fileList
The list of files used in the configuration |
private String |
_hostname
The name of the host this pipleline is for |
private long |
_lastModified
When the current pipeline configuration was last modified |
private Logger |
_logger
This holds a reference to the system logger that is being used. |
private PluginServiceCheckManager |
_manager
The plugin manager from which we can obtain references to service checks |
private String |
_name
This is the friendly identifier of the component this class is running in. |
private LinkedList |
_pipeline
Holds the current pipeline of plugins |
private ReferenceManager |
_refman
A reference to the reference manager in use |
private String |
_suffix
file name suffix for plugin classes: |
String |
REVISION
The current CVS revision of this class |
Constructor Summary | |
---|---|
PluginServiceCheckPipeline(String hostname,
PluginServiceCheckManager manager)
Creates a new pipeline |
Method Summary | |
---|---|
private LinkedList |
buildPipeline()
Builds a pipeline of service checks to be run. |
long |
getCreated()
Returns the system time that this instance was created at. |
String |
runPipeline()
Instructs this pipeline to execute |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String REVISION
private final String _suffix
private String _hostname
private LinkedList _pipeline
private long _created
private long _lastModified
private String _fileList
private PluginServiceCheckManager _manager
private String _name
private Logger _logger
private ReferenceManager _refman
Constructor Detail |
---|
public PluginServiceCheckPipeline(String hostname, PluginServiceCheckManager manager)
hostname
- the host this pipeline is formanager
- the manager to obtain services checks fromMethod Detail |
---|
public String runPipeline()
public String toString()
Object.toString()
method to provide clean logging (every class should have this).
This uses the uk.org.iscream.cms.util.NameFormat class
to format the toString()
toString
in class Object
private LinkedList buildPipeline()
hostname
- the hostname of the host to build the pipeline for
public long getCreated()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |