org.blue.cgi
Class statusmap

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.statusmap
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class statusmap
extends blue_servlet

See Also:
Serialized Form

Field Summary
static int all_layers
           
static java.awt.image.BufferedImage background_image
           
static int background_image_height
           
static int background_image_width
           
static int bottom_margin
           
static int canvas_height
           
static int canvas_width
           
static int canvas_x
           
static int canvas_y
           
static int CIRCULAR_DRAWING_RADIUS
           
static java.awt.Color color_black
           
static java.awt.Color color_blue
           
static java.awt.Color color_green
           
static java.awt.Color color_grey
           
static java.awt.Color color_lightgreen
           
static java.awt.Color color_lightgrey
           
static java.awt.Color color_lightred
           
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 coordinates_were_specified
           
static int COORDS_WARNING_HEIGHT
           
static int COORDS_WARNING_WIDTH
           
static int CREATE_HTML
           
static int CREATE_IMAGE
           
static int create_type
           
static cgiauth_h.authdata current_authdata
           
static int DEFAULT_NODE_HEIGHT
           
static int DEFAULT_NODE_HSPACING
           
static int DEFAULT_NODE_VSPACING
           
static int DEFAULT_NODE_WIDTH
           
static int DEFAULT_PROXIMITY_HEIGHT
           
static int DEFAULT_PROXIMITY_WIDTH
           
static int display_header
           
static int display_popups
           
static int draw_child_links
           
static int draw_nagios_icon
           
static int draw_parent_links
           
static int embedded
           
static int exclude_layers
           
static java.awt.Graphics2D gd_map_image
           
static java.lang.String host_name
           
static java.util.ArrayList<java.lang.String> layer_list
           
static int LAYOUT_BALANCED_TREE
           
static int LAYOUT_CIRCULAR
           
static int LAYOUT_CIRCULAR_BALLOON
           
static int LAYOUT_CIRCULAR_MARKUP
           
static int LAYOUT_COLLAPSED_TREE
           
static int layout_method
           
static int LAYOUT_SUBLAYERS
           
static int LAYOUT_USER_SUPPLIED
           
static java.awt.image.BufferedImage logo_image
           
static java.awt.image.BufferedImage map_image
           
static int max_image_height
           
static int max_image_width
           
static int MINIMUM_PROXIMITY_HEIGHT
           
static int MINIMUM_PROXIMITY_WIDTH
           
static java.lang.String NAGIOS_GD2_ICON
           
static java.lang.String NAGIOS_GD2_IMAGE
           
static int nagios_icon_x
           
static int nagios_icon_y
           
static java.lang.String physical_logo_images_path
           
static int proximity_height
           
static int proximity_width
           
static int scaled_image_height
           
static int scaled_image_width
           
static double scaling_factor
           
static int show_all_hosts
           
static int total_image_height
           
static int total_image_width
           
static java.lang.String UNKNOWN_GD2_ICON
           
static java.lang.String UNKNOWN_ICON_IMAGE
           
static java.awt.image.BufferedImage unknown_logo_image
           
static int use_highlights
           
static int use_links
           
static int use_text
           
static double user_scaling_factor
           
static int user_supplied_canvas
           
static int user_supplied_scaling
           
 
Fields inherited from class org.blue.cgi.blue_servlet
request_string
 
Constructor Summary
statusmap()
           
 
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 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

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
Constructor Detail

statusmap

public statusmap()
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()

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)