org.blue.cgi
Class histogram
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.blue.cgi.blue_servlet
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
|
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 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 |
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
histogram
public histogram()
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)