|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.iscream.cms.server.filter.ServiceCheckSkeleton
public abstract class ServiceCheckSkeleton
A skeleton class for Service Checks to extend.
Constructor Summary | |
---|---|
ServiceCheckSkeleton()
|
Method Summary | |
---|---|
protected String |
checkService(String hostname,
int port,
String expectedSubString,
String XMLTag)
Checks if a service is returning a valid response, and constructs suitable XML for inclusion in a packet. |
protected String |
connectToService(String hostname,
int port)
Connects to a service and returns the first line of text. |
abstract String |
getDescription()
Used to query the Service Check to see what it does. |
abstract String |
runServiceCheck(String hostname)
Runs a service check on a given hostname. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceCheckSkeleton()
Method Detail |
---|
public abstract String runServiceCheck(String hostname)
runServiceCheck
in interface PluginServiceCheck
hostname
- The hostname to check
protected String checkService(String hostname, int port, String expectedSubString, String XMLTag)
hostname
- The hostname to queryport
- The port to queryexpectedSubString
- The String to look for in the responseXMLTag
- The name of the tag to be put in the XML
protected String connectToService(String hostname, int port) throws IOException
hostname
- The hostname of the service to checkport
- The port of the service to check
IOException
- if the connection fails for some reasonpublic abstract String getDescription()
getDescription
in interface PluginServiceCheck
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |