org.blue.cgi
Class histogram

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.blue.cgi.blue_servlet
              extended by org.blue.cgi.histogram
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class histogram
extends blue_servlet

See Also:
Serialized Form

Nested Class Summary
static class histogram.timeslice_data
           
 
Field Summary
static int AS_HOST_DOWN
           
static int AS_HOST_UNREACHABLE
           
static int AS_HOST_UP
           
static int AS_NO_DATA
           
static int AS_PROGRAM_END
           
static int AS_PROGRAM_START
           
static int AS_SVC_CRITICAL
           
static int AS_SVC_OK
           
static int AS_SVC_UNKNOWN
           
static int AS_SVC_WARNING
           
static int assume_state_retention
           
static int backtrack_archives
           
static int BREAKDOWN_DAY_OF_MONTH
           
static int BREAKDOWN_DAY_OF_WEEK
           
static int BREAKDOWN_HOURLY
           
static int BREAKDOWN_MONTHLY
           
static int breakdown_type
           
static java.awt.Color color_black
           
static java.awt.Color color_darkred
           
static java.awt.Color color_green
           
static java.awt.Color color_lightgray
           
static java.awt.Color color_orange
           
static java.awt.Color color_red
           
static java.awt.Color color_white
           
static java.awt.Color color_yellow
           
static int compute_time_from_parts
           
static int CREATE_HTML
           
static int CREATE_IMAGE
           
static cgiauth_h.authdata current_authdata
           
static int display_header
           
static int DISPLAY_HOST_HISTOGRAM
           
static int DISPLAY_NO_HISTOGRAM
           
static int DISPLAY_SERVICE_HISTOGRAM
           
static int display_type
           
static int DRAWING_HEIGHT
           
static int DRAWING_WIDTH
           
static int DRAWING_X_OFFSET
           
static int DRAWING_Y_OFFSET
           
static int earliest_archive
           
static long earliest_time
           
static int embedded
           
static int end_day
           
static int end_hour
           
static int end_minute
           
static int end_month
           
static int end_second
           
static int end_year
           
static java.awt.Graphics2D gd
           
static int GET_INPUT_HOST_TARGET
           
static int GET_INPUT_NONE
           
static int GET_INPUT_OPTIONS
           
static int GET_INPUT_SERVICE_TARGET
           
static int GET_INPUT_TARGET_TYPE
           
static int GRAPH_ALL_STATETYPES
           
static int graph_events
           
static int GRAPH_EVERYTHING
           
static int GRAPH_HARD_STATETYPES
           
static int GRAPH_HOST_ALL
           
static int GRAPH_HOST_DOWN
           
static int GRAPH_HOST_PROBLEMS
           
static int GRAPH_HOST_UNREACHABLE
           
static int GRAPH_HOST_UP
           
static int GRAPH_SERVICE_ALL
           
static int GRAPH_SERVICE_CRITICAL
           
static int GRAPH_SERVICE_OK
           
static int GRAPH_SERVICE_PROBLEMS
           
static int GRAPH_SERVICE_UNKNOWN
           
static int GRAPH_SERVICE_WARNING
           
static int GRAPH_SOFT_STATETYPES
           
static int graph_statetypes
           
static java.awt.image.BufferedImage histogram_image
           
static java.lang.String HISTOGRAM_IMAGE
           
static java.lang.String host_name
           
static java.io.File image_file
           
static int image_height
           
static int image_width
           
static int initial_states_logged
           
static int input_type
           
static int last_state
           
static long latest_time
           
static int MAX_ARCHIVE
           
static int MAX_ARCHIVE_BACKTRACKS
           
static int MAX_ARCHIVE_SPREAD
           
static int mode
           
static int new_states_only
           
static int program_restart_has_occurred
           
static int start_day
           
static int start_hour
           
static int start_minute
           
static int start_month
           
static int start_second
           
static int start_year
           
static java.lang.String svc_description
           
static long t1
           
static long t2
           
static int TIMEPERIOD_CUSTOM
           
static int TIMEPERIOD_LAST24HOURS
           
static int TIMEPERIOD_LAST31DAYS
           
static int TIMEPERIOD_LAST7DAYS
           
static int TIMEPERIOD_LASTMONTH
           
static int TIMEPERIOD_LASTQUARTER
           
static int TIMEPERIOD_LASTWEEK
           
static int TIMEPERIOD_LASTYEAR
           
static int TIMEPERIOD_THISMONTH
           
static int TIMEPERIOD_THISQUARTER
           
static int TIMEPERIOD_THISWEEK
           
static int TIMEPERIOD_THISYEAR
           
static int TIMEPERIOD_TODAY
           
static int timeperiod_type
           
static int TIMEPERIOD_YESTERDAY
           
static int total_buckets
           
static histogram.timeslice_data[] tsdata
           
 
Fields inherited from class org.blue.cgi.blue_servlet
request_string
 
Constructor Summary
histogram()
           
 
Method Summary
static void add_archived_state(int state_type, long time_stamp)
           
 void call_main()
           
static void compute_report_times()
           
static void convert_timeperiod_to_times(int type)
           
static void document_footer()
           
static void document_header(int use_stylesheet)
           
static void draw_dashed_line(int x1, int y1, int x2, int y2, java.awt.Color color)
           
static void draw_line(int x1, int y1, int x2, int y2, java.awt.Color color)
           
static void drawRotatedText(java.lang.String text, int x, int y)
           
static void graph_all_histogram_data()
           
static void main(java.lang.String[] args)
           
static int process_cgivars()
           
static void read_archived_state_data()
           
static void scan_log_file_for_archived_state_data(java.lang.String filename)
           
 
Methods inherited from class org.blue.cgi.blue_servlet
doGet, doPost, init
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HISTOGRAM_IMAGE

public static java.lang.String HISTOGRAM_IMAGE

AS_NO_DATA

public static final int AS_NO_DATA
See Also:
Constant Field Values

AS_PROGRAM_START

public static final int AS_PROGRAM_START
See Also:
Constant Field Values

AS_PROGRAM_END

public static final int AS_PROGRAM_END
See Also:
Constant Field Values

AS_HOST_UP

public static final int AS_HOST_UP
See Also:
Constant Field Values

AS_HOST_DOWN

public static final int AS_HOST_DOWN
See Also:
Constant Field Values

AS_HOST_UNREACHABLE

public static final int AS_HOST_UNREACHABLE
See Also:
Constant Field Values

AS_SVC_OK

public static final int AS_SVC_OK
See Also:
Constant Field Values

AS_SVC_UNKNOWN

public static final int AS_SVC_UNKNOWN
See Also:
Constant Field Values

AS_SVC_WARNING

public static final int AS_SVC_WARNING
See Also:
Constant Field Values

AS_SVC_CRITICAL

public static final int AS_SVC_CRITICAL
See Also:
Constant Field Values

DISPLAY_HOST_HISTOGRAM

public static final int DISPLAY_HOST_HISTOGRAM
See Also:
Constant Field Values

DISPLAY_SERVICE_HISTOGRAM

public static final int DISPLAY_SERVICE_HISTOGRAM
See Also:
Constant Field Values

DISPLAY_NO_HISTOGRAM

public static final int DISPLAY_NO_HISTOGRAM
See Also:
Constant Field Values

GET_INPUT_NONE

public static final int GET_INPUT_NONE
See Also:
Constant Field Values

GET_INPUT_TARGET_TYPE

public static final int GET_INPUT_TARGET_TYPE
See Also:
Constant Field Values

GET_INPUT_HOST_TARGET

public static final int GET_INPUT_HOST_TARGET
See Also:
Constant Field Values

GET_INPUT_SERVICE_TARGET

public static final int GET_INPUT_SERVICE_TARGET
See Also:
Constant Field Values

GET_INPUT_OPTIONS

public static final int GET_INPUT_OPTIONS
See Also:
Constant Field Values

BREAKDOWN_MONTHLY

public static final int BREAKDOWN_MONTHLY
See Also:
Constant Field Values

BREAKDOWN_DAY_OF_MONTH

public static final int BREAKDOWN_DAY_OF_MONTH
See Also:
Constant Field Values

BREAKDOWN_DAY_OF_WEEK

public static final int BREAKDOWN_DAY_OF_WEEK
See Also:
Constant Field Values

BREAKDOWN_HOURLY

public static final int BREAKDOWN_HOURLY
See Also:
Constant Field Values

CREATE_HTML

public static final int CREATE_HTML
See Also:
Constant Field Values

CREATE_IMAGE

public static final int CREATE_IMAGE
See Also:
Constant Field Values

TIMEPERIOD_CUSTOM

public static final int TIMEPERIOD_CUSTOM
See Also:
Constant Field Values

TIMEPERIOD_TODAY

public static final int TIMEPERIOD_TODAY
See Also:
Constant Field Values

TIMEPERIOD_YESTERDAY

public static final int TIMEPERIOD_YESTERDAY
See Also:
Constant Field Values

TIMEPERIOD_THISWEEK

public static final int TIMEPERIOD_THISWEEK
See Also:
Constant Field Values

TIMEPERIOD_LASTWEEK

public static final int TIMEPERIOD_LASTWEEK
See Also:
Constant Field Values

TIMEPERIOD_THISMONTH

public static final int TIMEPERIOD_THISMONTH
See Also:
Constant Field Values

TIMEPERIOD_LASTMONTH

public static final int TIMEPERIOD_LASTMONTH
See Also:
Constant Field Values

TIMEPERIOD_THISQUARTER

public static final int TIMEPERIOD_THISQUARTER
See Also:
Constant Field Values

TIMEPERIOD_LASTQUARTER

public static final int TIMEPERIOD_LASTQUARTER
See Also:
Constant Field Values

TIMEPERIOD_THISYEAR

public static final int TIMEPERIOD_THISYEAR
See Also:
Constant Field Values

TIMEPERIOD_LASTYEAR

public static final int TIMEPERIOD_LASTYEAR
See Also:
Constant Field Values

TIMEPERIOD_LAST24HOURS

public static final int TIMEPERIOD_LAST24HOURS
See Also:
Constant Field Values

TIMEPERIOD_LAST7DAYS

public static final int TIMEPERIOD_LAST7DAYS
See Also:
Constant Field Values

TIMEPERIOD_LAST31DAYS

public static final int TIMEPERIOD_LAST31DAYS
See Also:
Constant Field Values

MAX_ARCHIVE_SPREAD

public static final int MAX_ARCHIVE_SPREAD
See Also:
Constant Field Values

MAX_ARCHIVE

public static final int MAX_ARCHIVE
See Also:
Constant Field Values

MAX_ARCHIVE_BACKTRACKS

public static final int MAX_ARCHIVE_BACKTRACKS
See Also:
Constant Field Values

DRAWING_WIDTH

public static final int DRAWING_WIDTH
See Also:
Constant Field Values

DRAWING_HEIGHT

public static final int DRAWING_HEIGHT
See Also:
Constant Field Values

DRAWING_X_OFFSET

public static final int DRAWING_X_OFFSET
See Also:
Constant Field Values

DRAWING_Y_OFFSET

public static final int DRAWING_Y_OFFSET
See Also:
Constant Field Values

GRAPH_HOST_UP

public static final int GRAPH_HOST_UP
See Also:
Constant Field Values

GRAPH_HOST_DOWN

public static final int GRAPH_HOST_DOWN
See Also:
Constant Field Values

GRAPH_HOST_UNREACHABLE

public static final int GRAPH_HOST_UNREACHABLE
See Also:
Constant Field Values

GRAPH_SERVICE_OK

public static final int GRAPH_SERVICE_OK
See Also:
Constant Field Values

GRAPH_SERVICE_WARNING

public static final int GRAPH_SERVICE_WARNING
See Also:
Constant Field Values

GRAPH_SERVICE_UNKNOWN

public static final int GRAPH_SERVICE_UNKNOWN
See Also:
Constant Field Values

GRAPH_SERVICE_CRITICAL

public static final int GRAPH_SERVICE_CRITICAL
See Also:
Constant Field Values

GRAPH_HOST_PROBLEMS

public static final int GRAPH_HOST_PROBLEMS
See Also:
Constant Field Values

GRAPH_HOST_ALL

public static final int GRAPH_HOST_ALL
See Also:
Constant Field Values

GRAPH_SERVICE_PROBLEMS

public static final int GRAPH_SERVICE_PROBLEMS
See Also:
Constant Field Values

GRAPH_SERVICE_ALL

public static final int GRAPH_SERVICE_ALL
See Also:
Constant Field Values

GRAPH_EVERYTHING

public static final int GRAPH_EVERYTHING
See Also:
Constant Field Values

GRAPH_SOFT_STATETYPES

public static final int GRAPH_SOFT_STATETYPES
See Also:
Constant Field Values

GRAPH_HARD_STATETYPES

public static final int GRAPH_HARD_STATETYPES
See Also:
Constant Field Values

GRAPH_ALL_STATETYPES

public static final int GRAPH_ALL_STATETYPES
See Also:
Constant Field Values

current_authdata

public static cgiauth_h.authdata current_authdata

tsdata

public static histogram.timeslice_data[] tsdata

t1

public static long t1

t2

public static long t2

start_second

public static int start_second

start_minute

public static int start_minute

start_hour

public static int start_hour

start_day

public static int start_day

start_month

public static int start_month

start_year

public static int start_year

end_second

public static int end_second

end_minute

public static int end_minute

end_hour

public static int end_hour

end_day

public static int end_day

end_month

public static int end_month

end_year

public static int end_year

display_type

public static int display_type

mode

public static int mode

input_type

public static int input_type

timeperiod_type

public static int timeperiod_type

breakdown_type

public static int breakdown_type

compute_time_from_parts

public static int compute_time_from_parts

initial_states_logged

public static int initial_states_logged

assume_state_retention

public static int assume_state_retention

new_states_only

public static int new_states_only

last_state

public static int last_state

program_restart_has_occurred

public static int program_restart_has_occurred

graph_events

public static int graph_events

graph_statetypes

public static int graph_statetypes

embedded

public static int embedded

display_header

public static int display_header

host_name

public static java.lang.String host_name

svc_description

public static java.lang.String svc_description

histogram_image

public static java.awt.image.BufferedImage histogram_image

gd

public static java.awt.Graphics2D gd

color_white

public static java.awt.Color color_white

color_black

public static java.awt.Color color_black

color_red

public static java.awt.Color color_red

color_darkred

public static java.awt.Color color_darkred

color_green

public static java.awt.Color color_green

color_yellow

public static java.awt.Color color_yellow

color_orange

public static java.awt.Color color_orange

color_lightgray

public static java.awt.Color color_lightgray

image_file

public static java.io.File image_file

backtrack_archives

public static int backtrack_archives

earliest_archive

public static int earliest_archive

earliest_time

public static long earliest_time

latest_time

public static long latest_time

image_width

public static int image_width

image_height

public static int image_height

total_buckets

public static int total_buckets
Constructor Detail

histogram

public histogram()
Method Detail

call_main

public void call_main()
Specified by:
call_main in class blue_servlet

main

public static void main(java.lang.String[] args)

document_header

public static void document_header(int use_stylesheet)

document_footer

public static void document_footer()

process_cgivars

public static int process_cgivars()

graph_all_histogram_data

public static void graph_all_histogram_data()

add_archived_state

public static void add_archived_state(int state_type,
                                      long time_stamp)

read_archived_state_data

public static void read_archived_state_data()

scan_log_file_for_archived_state_data

public static void scan_log_file_for_archived_state_data(java.lang.String filename)

convert_timeperiod_to_times

public static void convert_timeperiod_to_times(int type)

compute_report_times

public static void compute_report_times()

draw_line

public static void draw_line(int x1,
                             int y1,
                             int x2,
                             int y2,
                             java.awt.Color color)

draw_dashed_line

public static void draw_dashed_line(int x1,
                                    int y1,
                                    int x2,
                                    int y2,
                                    java.awt.Color color)

drawRotatedText

public static void drawRotatedText(java.lang.String text,
                                   int x,
                                   int y)