org.blue.cgi
Class statusmap
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.blue.cgi.blue_servlet
org.blue.cgi.statusmap
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class statusmap
- extends blue_servlet
- See Also:
- Serialized Form
|
Method Summary |
static int |
add_layer(java.lang.String group_name)
|
static void |
calculate_balanced_tree_coords(objects_h.host parent,
int x,
int y)
|
static void |
calculate_canvas_bounds_from_host(java.lang.String host_name)
|
static void |
calculate_canvas_bounds()
|
static void |
calculate_circular_coords()
|
static void |
calculate_circular_layer_coords(objects_h.host parent,
double start_angle,
double useable_angle,
int layer,
int radius)
|
static void |
calculate_host_coords()
|
static void |
calculate_scaling_factor()
|
static void |
calculate_total_image_bounds()
|
void |
call_main()
|
static void |
cleanup_graphics()
|
static void |
display_map()
|
static void |
display_page_header()
|
static void |
document_footer()
|
static void |
document_header(int use_stylesheet)
|
static void |
draw_background_extras()
|
static void |
draw_background_image()
|
static void |
draw_circular_layer_markup(objects_h.host parent,
double start_angle,
double useable_angle,
int layer,
int radius)
|
static void |
draw_circular_markup()
|
static void |
draw_dashed_line(int x1,
int y1,
int x2,
int y2,
java.awt.Color color)
|
static void |
draw_dotted_line(int x1,
int y1,
int x2,
int y2,
java.awt.Color color)
|
static void |
draw_host_links()
|
static void |
draw_host_text(java.lang.String name,
int x,
int y)
|
static void |
draw_hosts()
|
static void |
draw_line(int x1,
int y1,
int x2,
int y2,
java.awt.Color color)
|
static void |
draw_text(java.lang.String buffer,
int x,
int y,
java.awt.Color text_color)
|
static void |
find_eligible_hosts()
|
static void |
free_layer_list()
|
static int |
host_child_depth_separation(objects_h.host parent,
objects_h.host child)
|
static int |
initialize_graphics()
|
static int |
is_host_in_layer_list(objects_h.host hst)
|
static void |
load_background_image()
|
static java.awt.image.BufferedImage |
load_image_from_file(java.lang.String filename)
|
static void |
main(java.lang.String[] args)
|
static int |
max_child_host_drawing_width(objects_h.host parent)
|
static int |
max_child_host_layer_members(objects_h.host parent)
|
static int |
number_of_host_layer_members(objects_h.host parent,
int layer)
|
static int |
number_of_host_services(objects_h.host hst)
|
static void |
print_layer_url(int get_method)
|
static int |
process_cgivars()
|
static void |
write_graphics()
|
static void |
write_host_popup_text(objects_h.host hst)
|
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 |
UNKNOWN_GD2_ICON
public static java.lang.String UNKNOWN_GD2_ICON
UNKNOWN_ICON_IMAGE
public static java.lang.String UNKNOWN_ICON_IMAGE
NAGIOS_GD2_ICON
public static java.lang.String NAGIOS_GD2_ICON
NAGIOS_GD2_IMAGE
public static java.lang.String NAGIOS_GD2_IMAGE
DEFAULT_NODE_WIDTH
public static final int DEFAULT_NODE_WIDTH
- See Also:
- Constant Field Values
DEFAULT_NODE_HEIGHT
public static final int DEFAULT_NODE_HEIGHT
- See Also:
- Constant Field Values
DEFAULT_NODE_VSPACING
public static final int DEFAULT_NODE_VSPACING
- See Also:
- Constant Field Values
DEFAULT_NODE_HSPACING
public static final int DEFAULT_NODE_HSPACING
- See Also:
- Constant Field Values
DEFAULT_PROXIMITY_WIDTH
public static final int DEFAULT_PROXIMITY_WIDTH
- See Also:
- Constant Field Values
DEFAULT_PROXIMITY_HEIGHT
public static final int DEFAULT_PROXIMITY_HEIGHT
- See Also:
- Constant Field Values
MINIMUM_PROXIMITY_WIDTH
public static final int MINIMUM_PROXIMITY_WIDTH
- See Also:
- Constant Field Values
MINIMUM_PROXIMITY_HEIGHT
public static final int MINIMUM_PROXIMITY_HEIGHT
- See Also:
- Constant Field Values
COORDS_WARNING_WIDTH
public static final int COORDS_WARNING_WIDTH
- See Also:
- Constant Field Values
COORDS_WARNING_HEIGHT
public static final int COORDS_WARNING_HEIGHT
- See Also:
- Constant Field Values
CIRCULAR_DRAWING_RADIUS
public static final int CIRCULAR_DRAWING_RADIUS
- 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
LAYOUT_USER_SUPPLIED
public static final int LAYOUT_USER_SUPPLIED
- See Also:
- Constant Field Values
LAYOUT_SUBLAYERS
public static final int LAYOUT_SUBLAYERS
- See Also:
- Constant Field Values
LAYOUT_COLLAPSED_TREE
public static final int LAYOUT_COLLAPSED_TREE
- See Also:
- Constant Field Values
LAYOUT_BALANCED_TREE
public static final int LAYOUT_BALANCED_TREE
- See Also:
- Constant Field Values
LAYOUT_CIRCULAR
public static final int LAYOUT_CIRCULAR
- See Also:
- Constant Field Values
LAYOUT_CIRCULAR_MARKUP
public static final int LAYOUT_CIRCULAR_MARKUP
- See Also:
- Constant Field Values
LAYOUT_CIRCULAR_BALLOON
public static final int LAYOUT_CIRCULAR_BALLOON
- See Also:
- Constant Field Values
physical_logo_images_path
public static java.lang.String physical_logo_images_path
current_authdata
public static cgiauth_h.authdata current_authdata
create_type
public static int create_type
unknown_logo_image
public static java.awt.image.BufferedImage unknown_logo_image
logo_image
public static java.awt.image.BufferedImage logo_image
map_image
public static java.awt.image.BufferedImage map_image
gd_map_image
public static java.awt.Graphics2D gd_map_image
background_image
public static java.awt.image.BufferedImage background_image
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_lightred
public static java.awt.Color color_lightred
color_green
public static java.awt.Color color_green
color_lightgreen
public static java.awt.Color color_lightgreen
color_blue
public static java.awt.Color color_blue
color_yellow
public static java.awt.Color color_yellow
color_orange
public static java.awt.Color color_orange
color_grey
public static java.awt.Color color_grey
color_lightgrey
public static java.awt.Color color_lightgrey
show_all_hosts
public static int show_all_hosts
host_name
public static java.lang.String host_name
embedded
public static int embedded
display_header
public static int display_header
display_popups
public static int display_popups
use_links
public static int use_links
use_text
public static int use_text
use_highlights
public static int use_highlights
user_supplied_canvas
public static int user_supplied_canvas
user_supplied_scaling
public static int user_supplied_scaling
layout_method
public static int layout_method
proximity_width
public static int proximity_width
proximity_height
public static int proximity_height
coordinates_were_specified
public static int coordinates_were_specified
scaled_image_width
public static int scaled_image_width
scaled_image_height
public static int scaled_image_height
canvas_width
public static int canvas_width
canvas_height
public static int canvas_height
total_image_width
public static int total_image_width
total_image_height
public static int total_image_height
max_image_width
public static int max_image_width
max_image_height
public static int max_image_height
scaling_factor
public static double scaling_factor
user_scaling_factor
public static double user_scaling_factor
background_image_width
public static int background_image_width
background_image_height
public static int background_image_height
canvas_x
public static int canvas_x
canvas_y
public static int canvas_y
bottom_margin
public static int bottom_margin
draw_child_links
public static int draw_child_links
draw_parent_links
public static int draw_parent_links
draw_nagios_icon
public static int draw_nagios_icon
nagios_icon_x
public static int nagios_icon_x
nagios_icon_y
public static int nagios_icon_y
layer_list
public static java.util.ArrayList<java.lang.String> layer_list
exclude_layers
public static int exclude_layers
all_layers
public static int all_layers
statusmap
public statusmap()
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()
display_page_header
public static void display_page_header()
display_map
public static void display_map()
calculate_host_coords
public static void calculate_host_coords()
calculate_total_image_bounds
public static void calculate_total_image_bounds()
calculate_canvas_bounds
public static void calculate_canvas_bounds()
calculate_canvas_bounds_from_host
public static void calculate_canvas_bounds_from_host(java.lang.String host_name)
calculate_scaling_factor
public static void calculate_scaling_factor()
find_eligible_hosts
public static void find_eligible_hosts()
load_background_image
public static void load_background_image()
draw_background_image
public static void draw_background_image()
draw_background_extras
public static void draw_background_extras()
draw_host_links
public static void draw_host_links()
draw_hosts
public static void draw_hosts()
draw_text
public static void draw_text(java.lang.String buffer,
int x,
int y,
java.awt.Color text_color)
draw_host_text
public static void draw_host_text(java.lang.String name,
int x,
int y)
write_host_popup_text
public static void write_host_popup_text(objects_h.host hst)
draw_line
public static void draw_line(int x1,
int y1,
int x2,
int y2,
java.awt.Color color)
draw_dotted_line
public static void draw_dotted_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)
initialize_graphics
public static int initialize_graphics()
load_image_from_file
public static java.awt.image.BufferedImage load_image_from_file(java.lang.String filename)
write_graphics
public static void write_graphics()
cleanup_graphics
public static void cleanup_graphics()
write_popup_code
public static void write_popup_code()
add_layer
public static int add_layer(java.lang.String group_name)
free_layer_list
public static void free_layer_list()
is_host_in_layer_list
public static int is_host_in_layer_list(objects_h.host hst)
print_layer_url
public static void print_layer_url(int get_method)
host_child_depth_separation
public static int host_child_depth_separation(objects_h.host parent,
objects_h.host child)
number_of_host_layer_members
public static int number_of_host_layer_members(objects_h.host parent,
int layer)
max_child_host_layer_members
public static int max_child_host_layer_members(objects_h.host parent)
max_child_host_drawing_width
public static int max_child_host_drawing_width(objects_h.host parent)
number_of_host_services
public static int number_of_host_services(objects_h.host hst)
calculate_balanced_tree_coords
public static void calculate_balanced_tree_coords(objects_h.host parent,
int x,
int y)
calculate_circular_coords
public static void calculate_circular_coords()
calculate_circular_layer_coords
public static void calculate_circular_layer_coords(objects_h.host parent,
double start_angle,
double useable_angle,
int layer,
int radius)
draw_circular_markup
public static void draw_circular_markup()
draw_circular_layer_markup
public static void draw_circular_layer_markup(objects_h.host parent,
double start_angle,
double useable_angle,
int layer,
int radius)