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/POP3__ServiceCheck.java
Revision: 1.6
Committed: Tue May 29 17:02:35 2001 UTC (22 years, 11 months ago) by tdb
Branch: MAIN
Branch point for: SERVER_PIRCBOT
Changes since 1.5: +4 -4 lines
Log Message:
Major change in the java package naming. This has been held off for some time
now, but it really needed doing. The future packaging of all i-scream products
will be;

uk.org.iscream.<product>.<subpart>.*

In the case of the central monitoring system server this will be;

uk.org.iscream.cms.server.*

The whole server has been changed to follow this structure, and tested to a
smallish extent. Further changes in other parts of the CMS will follow.

File Contents

# Content
1 //---PACKAGE DECLARATION---
2 package uk.org.iscream.cms.server.filter.plugins;
3
4 //---IMPORTS---
5 import uk.org.iscream.cms.server.filter.ServiceCheckSkeleton;
6 import java.net.*;
7 import java.io.*;
8
9 /**
10 * A quick POP3 service checker.
11 *
12 * @author $Author: tdb1 $
13 * @version $Id: POP3__ServiceCheck.java,v 1.5 2001/03/14 23:25:29 tdb1 Exp $
14 */
15 public class POP3__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.5 $";
23
24 public final String DESC = "Checks that a POP3 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, 110, "+OK", "POP3");
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 }