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/FTP__ServiceCheck.java
Revision: 1.8
Committed: Tue May 21 16:47:18 2002 UTC (22 years ago) by tdb
Branch: MAIN
Changes since 1.7: +3 -2 lines
Log Message:
Added URL to GPL headers.

File Contents

# Content
1 /*
2 * i-scream central monitoring system
3 * http://www.i-scream.org.uk
4 * Copyright (C) 2000-2002 i-scream
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
21 //---PACKAGE DECLARATION---
22 package uk.org.iscream.cms.server.filter.plugins;
23
24 //---IMPORTS---
25 import uk.org.iscream.cms.server.filter.ServiceCheckSkeleton;
26 import java.net.*;
27 import java.io.*;
28
29 /**
30 * A quick FTP service checker.
31 *
32 * @author $Author: tdb $
33 * @version $Id: FTP__ServiceCheck.java,v 1.7 2002/05/18 18:16:02 tdb Exp $
34 */
35 public class FTP__ServiceCheck extends ServiceCheckSkeleton {
36
37 //---FINAL ATTRIBUTES---
38
39 /**
40 * The current CVS revision of this class
41 */
42 public final String REVISION = "$Revision: 1.7 $";
43
44 public final String DESC = "Checks that an FTP server is alive.";
45
46 //---STATIC METHODS---
47
48 //---CONSTRUCTORS---
49
50 //---PUBLIC METHODS---
51
52 /**
53 * Performs the service check on a given host.
54 *
55 * @param hostname the host to check
56 * @return XML data representing the result of the test
57 */
58 public String runServiceCheck(String hostname){
59 return checkService(hostname, 21, "220", "FTP");
60 }
61
62 /**
63 * return the String representation of what the filter does
64 */
65 public String getDescription(){
66 return DESC;
67 }
68
69 //---PRIVATE METHODS---
70
71 //---ACCESSOR/MUTATOR METHODS---
72
73 //---ATTRIBUTES---
74
75 //---STATIC ATTRIBUTES---
76
77 }