opendap/dtswar/src/main/java/opendap/dts/DTSServlet.java
protected void printStatus(PrintWriter os)
    {
        os.println("<h2>Server version = " + getServerVersion() + "</h2>");
        os.println("<h2>Number of Requests Received = " + HitCounter + "</h2>");
        if(track) {
            int n = prArr.size();
            int pending = 0;
            StringBuilder preqs = new StringBuilder();
            for(int i = 0; i < n; i++) {
                ReqState rs = (ReqState) prArr.get(i);
                RequestDebug reqD = (RequestDebug) rs.getUserObject();
                if(!reqD.done) {
                    preqs.append("<pre>-----------------------\n");
                    preqs.append("Request[");
                    preqs.append(reqD.reqno);
                    preqs.append("](");
                    preqs.append(reqD.threadDesc);
                    preqs.append(") is pending.\n");
                    preqs.append(rs.toString());
                    preqs.append("</pre>");
                    pending++;
                }
            }
            os.println("<h2>" + pending + " Pending Request(s)</h2>");
            os.println(preqs.toString());
        }
    }
protected void printStatus(PrintWriter os)
    {
        os.println("<h2>Server version = " + getServerVersion() + "</h2>");
        os.println("<h2>Number of Requests Received = " + HitCounter + "</h2>");
        if(track) {
            int n = prArr.size();
            int pending = 0;
            StringBuilder preqs = new StringBuilder();
            for(int i = 0; i < n; i++) {
                ReqState rs = (ReqState) prArr.get(i);
                RequestDebug reqD = (RequestDebug) rs.getUserObject();
                if(!reqD.done) {
                    preqs.append("<pre>-----------------------\n");
                    preqs.append("Request[");
                    preqs.append(reqD.reqno);
                    preqs.append("](");
                    preqs.append(reqD.threadDesc);
                    preqs.append(") is pending.\n");
                    preqs.append(rs.toString());
                    preqs.append("</pre>");
                    pending++;
                }
            }
            os.println("<h2>" + pending + " Pending Request(s)</h2>");
            os.println(preqs.toString());
        }
    }
protected void printStatus ( PrintWriter os ) { os . println ( "<h2>Server version = " + getServerVersion ( ) + "</h2>" ) ; os . println ( "<h2>Number of Requests Received = " + HitCounter + "</h2>" ) ; if ( track ) { int n = prArr . size ( ) ; int pending = 0 ; StringBuilder preqs = new StringBuilder ( ) ; for ( int i = 0 ; i < n ; i ++ ) { ReqState rs = ( ReqState ) prArr . get ( i ) ; RequestDebug reqD = ( RequestDebug ) rs . getUserObject ( ) ; if ( ! reqD . done ) { preqs . append ( "<pre>-----------------------\n" ) ; preqs . append ( "Request[" ) ; preqs . append ( reqD . reqno ) ; preqs . append ( "](" ) ; preqs . append ( reqD . threadDesc ) ; preqs . append ( ") is pending.\n" ) ; preqs . append ( rs . toString ( ) ) ; preqs . append ( "</pre>" ) ; pending ++ ; } } os . println ( "<h2>" + pending + " Pending Request(s)</h2>" ) ; os . println ( preqs . toString ( ) ) ; } }
to be overridden by servers that implement status report
to be overridden by servers that implement status report