01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.search.rdmserver;
07:
08: import com.sun.portal.search.soif.*;
09: import com.sun.portal.search.rdm.*;
10: import com.sun.portal.search.db.*;
11: import com.sun.portal.search.util.*;
12: import com.sun.portal.log.common.PortalLogger;
13:
14: import java.util.*;
15: import java.util.logging.Logger;
16: import java.util.logging.Level;
17: import java.io.*;
18:
19: /**
20: * RDMServerStatusService - RDM Message processing facilities: service routing, etc.
21: */
22: public class ServerStatusService extends RDMService {
23:
24: public ServerStatusService() {
25: supportedServices.add(new RDMServiceDescriptor(
26: RDM.RDM_STAT_REQ, null));
27: }
28:
29: public void service(RDMRequest req, RDMResponse res)
30: throws Exception {
31: SearchLogger.getLogger().log(Level.FINE, "PSSH_CSPSRDMS0089");
32: res.getHeader().setType(RDM.RDM_STAT_RES);
33: res.getHeader().setResponseInterpret("Online.");
34: res.sendHeader();
35: req.logRDM("status=online");
36: }
37:
38: }
|