ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/filter/plugins/SSH__ServiceCheck.java
Revision: 1.3
Committed: Thu Mar 8 00:35:02 2001 UTC (23 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.2: +5 -26 lines
Log Message:
The getDescription was not working. It has now been abstracted, and thus we must
implement it, which we do.
Somehow missed the SSH checker when doing the abstract class.
Also, the Telnet checker was not returning. Now it just checks it can connect.

File Contents

# Content
1 //---PACKAGE DECLARATION---
2 package uk.ac.ukc.iscream.filter.plugins;
3
4 //---IMPORTS---
5 import uk.ac.ukc.iscream.filter.ServiceCheckSkeleton;
6 import java.net.*;
7 import java.io.*;
8
9 /**
10 * A quick SSH service checker.
11 *
12 * @author $Author: tdb1 $
13 * @version $Id: SSH__ServiceCheck.java,v 1.2 2001/03/07 13:26:38 tdb1 Exp $
14 */
15 public class SSH__ServiceCheck extends ServiceCheckSkeleton {
16
17 //---FINAL ATTRIBUTES---
18
19 /**
20 * The current CVS revision of this class
21 */
22 public final String REVISION = "$Revision: 1.2 $";
23
24 public final String DESC = "Checks that an SSH server is alive.";
25
26 //---STATIC METHODS---
27
28 //---CONSTRUCTORS---
29
30 //---PUBLIC METHODS---
31
32 /**
33 * Performs the service check on a given host.
34 *
35 * @param hostname the host to check
36 * @return XML data representing the result of the test
37 */
38 public String runServiceCheck(String hostname){
39 return checkService(hostname, 22, "SSH", "SSH");
40 }
41
42 /**
43 * return the String representation of what the filter does
44 */
45 public String getDescription(){
46 return DESC;
47 }
48
49 //---PRIVATE METHODS---
50
51 //---ACCESSOR/MUTATOR METHODS---
52
53 //---ATTRIBUTES---
54
55 //---STATIC ATTRIBUTES---
56
57 }