org.blue.cgi
Class trends
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.blue.cgi.blue_servlet
org.blue.cgi.trends
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class trends
- extends blue_servlet
- See Also:
- Serialized Form
|
Method Summary |
static void |
add_archived_state(int entry_type,
int state_type,
long time_stamp,
java.lang.String state_info)
|
void |
call_main()
|
static void |
compute_report_times()
|
static int |
convert_host_state_to_archived_state(int current_status)
|
static int |
convert_service_state_to_archived_state(int current_status)
|
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_horizontal_grid_lines()
|
static void |
draw_time_breakdowns()
|
static void |
draw_timestamp(int ts_pixel,
long ts_time)
|
static void |
draw_timestamps()
|
static void |
drawRotatedText(java.lang.String text,
int x,
int y)
|
static void |
free_archived_state_list()
|
static java.lang.String |
get_time_breakdown_string(long total_time,
long state_time,
java.lang.String state_string)
|
static void |
graph_all_trend_data()
|
static void |
graph_trend_data(int first_state,
int last_state,
long real_start_time,
long start_time,
long end_time,
java.lang.String state_info)
|
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)
|
static void |
write_popup_code()
|
| 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 |
AS_CURRENT_STATE
public static final int AS_CURRENT_STATE
- See Also:
- Constant Field Values
AS_NO_DATA
public static final int AS_NO_DATA
- See Also:
- Constant Field Values
AS_PROGRAM_END
public static final int AS_PROGRAM_END
- See Also:
- Constant Field Values
AS_PROGRAM_START
public static final int AS_PROGRAM_START
- 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
AS_SOFT_STATE
public static final int AS_SOFT_STATE
- See Also:
- Constant Field Values
AS_HARD_STATE
public static final int AS_HARD_STATE
- See Also:
- Constant Field Values
DISPLAY_HOST_TRENDS
public static final int DISPLAY_HOST_TRENDS
- See Also:
- Constant Field Values
DISPLAY_SERVICE_TRENDS
public static final int DISPLAY_SERVICE_TRENDS
- See Also:
- Constant Field Values
DISPLAY_NO_TRENDS
public static final int DISPLAY_NO_TRENDS
- 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
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
MIN_TIMESTAMP_SPACING
public static final int MIN_TIMESTAMP_SPACING
- 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
current_authdata
public static cgiauth_h.authdata current_authdata
as_list
public static java.util.ArrayList<trends.archived_state> as_list
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
compute_time_from_parts
public static int compute_time_from_parts
display_popups
public static int display_popups
use_map
public static int use_map
small_image
public static int small_image
embedded
public static int embedded
display_header
public static int display_header
assume_initial_states
public static int assume_initial_states
assume_state_retention
public static int assume_state_retention
assume_states_during_notrunning
public static int assume_states_during_notrunning
include_soft_states
public static int include_soft_states
host_name
public static java.lang.String host_name
svc_description
public static java.lang.String svc_description
trends_image
public static java.awt.image.BufferedImage trends_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_darkgreen
public static java.awt.Color color_darkgreen
color_yellow
public static java.awt.Color color_yellow
color_orange
public static java.awt.Color color_orange
image_file
public static java.io.File image_file
image_width
public static int image_width
image_height
public static int image_height
HOST_DRAWING_WIDTH
public static int HOST_DRAWING_WIDTH
HOST_DRAWING_HEIGHT
public static int HOST_DRAWING_HEIGHT
HOST_DRAWING_X_OFFSET
public static int HOST_DRAWING_X_OFFSET
HOST_DRAWING_Y_OFFSET
public static int HOST_DRAWING_Y_OFFSET
SVC_DRAWING_WIDTH
public static int SVC_DRAWING_WIDTH
SVC_DRAWING_HEIGHT
public static int SVC_DRAWING_HEIGHT
SVC_DRAWING_X_OFFSET
public static int SVC_DRAWING_X_OFFSET
SVC_DRAWING_Y_OFFSET
public static int SVC_DRAWING_Y_OFFSET
SMALL_HOST_DRAWING_WIDTH
public static int SMALL_HOST_DRAWING_WIDTH
SMALL_HOST_DRAWING_HEIGHT
public static int SMALL_HOST_DRAWING_HEIGHT
SMALL_HOST_DRAWING_X_OFFSET
public static int SMALL_HOST_DRAWING_X_OFFSET
SMALL_HOST_DRAWING_Y_OFFSET
public static int SMALL_HOST_DRAWING_Y_OFFSET
SMALL_SVC_DRAWING_WIDTH
public static int SMALL_SVC_DRAWING_WIDTH
SMALL_SVC_DRAWING_HEIGHT
public static int SMALL_SVC_DRAWING_HEIGHT
SMALL_SVC_DRAWING_X_OFFSET
public static int SMALL_SVC_DRAWING_X_OFFSET
SMALL_SVC_DRAWING_Y_OFFSET
public static int SMALL_SVC_DRAWING_Y_OFFSET
drawing_width
public static int drawing_width
drawing_height
public static int drawing_height
drawing_x_offset
public static int drawing_x_offset
drawing_y_offset
public static int drawing_y_offset
last_known_state
public static int last_known_state
zoom_factor
public static int zoom_factor
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
earliest_state
public static int earliest_state
latest_state
public static int latest_state
initial_assumed_host_state
public static int initial_assumed_host_state
initial_assumed_service_state
public static int initial_assumed_service_state
time_up
public static long time_up
time_down
public static long time_down
time_unreachable
public static long time_unreachable
time_ok
public static long time_ok
time_warning
public static long time_warning
time_unknown
public static long time_unknown
time_critical
public static long time_critical
trends
public trends()
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_trend_data
public static void graph_all_trend_data()
graph_trend_data
public static void graph_trend_data(int first_state,
int last_state,
long real_start_time,
long start_time,
long end_time,
java.lang.String state_info)
convert_host_state_to_archived_state
public static int convert_host_state_to_archived_state(int current_status)
convert_service_state_to_archived_state
public static int convert_service_state_to_archived_state(int current_status)
add_archived_state
public static void add_archived_state(int entry_type,
int state_type,
long time_stamp,
java.lang.String state_info)
free_archived_state_list
public static void free_archived_state_list()
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)
write_popup_code
public static void write_popup_code()
draw_timestamps
public static void draw_timestamps()
drawRotatedText
public static void drawRotatedText(java.lang.String text,
int x,
int y)
draw_timestamp
public static void draw_timestamp(int ts_pixel,
long ts_time)
draw_time_breakdowns
public static void draw_time_breakdowns()
get_time_breakdown_string
public static java.lang.String get_time_breakdown_string(long total_time,
long state_time,
java.lang.String state_string)
convert_timeperiod_to_times
public static void convert_timeperiod_to_times(int type)
compute_report_times
public static void compute_report_times()
draw_dashed_line
public static void draw_dashed_line(int x1,
int y1,
int x2,
int y2,
java.awt.Color color)
draw_horizontal_grid_lines
public static void draw_horizontal_grid_lines()