hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r723855 [12/23] - in /hadoop/core/trunk: ./ src/contrib/ src/contrib/chukwa/ src/contrib/chukwa/bin/ src/contrib/chukwa/conf/ src/contrib/chukwa/docs/ src/contrib/chukwa/docs/paper/ src/contrib/chukwa/hadoop-packaging/ src/contrib/chukwa/li...
Date Fri, 05 Dec 2008 20:30:21 GMT
Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/cluster_metrics_pcnt.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/cluster_metrics_pcnt.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/cluster_metrics_pcnt.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/cluster_metrics_pcnt.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,61 @@
+{
+"id":"cluster_metrics_pcnt",
+"title":"Cluster Metrics by Percentage",
+"version":"0.1",
+"categories":"System,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display cluster related stats by percentage",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"y_axis_max","type":"string","value":"100","edit":"0"},
+{"name":"table","type":"string","value":"cluster_system_metrics","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select_multiple","value":"load_15","label":"Metric","options":[
+{"label":"cpu_idle_pcnt","value":"cpu_idle_pcnt"},
+{"label":"cpu_nice_pcnt","value":"cpu_nice_pcnt"},
+{"label":"cpu_system_pcnt","value":"cpu_system_pcnt"},
+{"label":"cpu_user_pcnt","value":"cpu_user_pcnt"},
+{"label":"cpu_hirq_pcnt","value":"cpu_hirq_pcnt"},
+{"label":"cpu_sirq_pcnt","value":"cpu_sirq_pcnt"},
+{"label":"iowait_pcnt","value":"iowait_pcnt"},
+{"label":"mem_buffers_pcnt","value":"mem_buffers_pcnt"},
+{"label":"mem_used_pcnt","value":"mem_used_pcnt"},
+{"label":"eth0_busy_pcnt","value":"eth0_busy_pcnt"},
+{"label":"eth1_busy_pcnt","value":"eth1_busy_pcnt"},
+{"label":"sda_busy_pcnt","value":"sda_busy_pcnt"},
+{"label":"sdb_busy_pcnt","value":"sdb_busy_pcnt"},
+{"label":"sdc_busy_pcnt","value":"sdc_busy_pcnt"},
+{"label":"sdd_busy_pcnt","value":"sdd_busy_pcnt"},
+{"label":"swap_used_pcnt","value":"swap_used_pcnt"}
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/cluster_selector.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/cluster_selector.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/cluster_selector.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/cluster_selector.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,12 @@
+{
+"id":"cluster_selector",
+"title":"Cluster Selector",
+"version":"0.1",
+"categories":"Global,Utility",
+"module":"jsp\/cluster_selector.jsp",
+"description":"Global control to manipulate cluster selection across widgets",
+"screendump":"",
+"refresh":"0",
+"parameters":[
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/debug.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/debug.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/debug.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/debug.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,11 @@
+{
+"id":"debug",
+"title":"Session Debugger",
+"version":"0.1",
+"categories":"Global,Utilities",
+"module":"jsp\/debug.jsp",
+"description":"Display session stats",
+"refresh":"15",
+"parameters":[
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_datanode.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_datanode.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_datanode.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_datanode.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,75 @@
+{
+"id":"dfs_datanode",
+"title":"DFS Data Node Metrics",
+"version":"0.1",
+"categories":"Hadoop,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display DFS data node related stats",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"table","type":"string","value":"dfs_datanode","edit":"0"},
+{"name":"normalize_time","type":"string","value":"true","edit":"0"},
+{"name":"find_slope","type":"string","value":"true","edit":"0"},
+{"name":"group_items","type":"string","value":"hosts","edit":"0"},
+{"name":"group","type":"string","value":"host","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select","value":"bytes_read","label":"Metric","options":[
+{"label":"block_reports_avg_time","value":"block_reports_avg_time"}, 
+{"label":"block_reports_num_ops","value":"block_reports_num_ops"}, 
+{"label":"block_verification_failures","value":"block_verification_failures"}, 
+{"label":"blocks_read","value":"blocks_read"}, 
+{"label":"blocks_removed","value":"blocks_removed"}, 
+{"label":"blocks_replicated","value":"blocks_replicated"}, 
+{"label":"blocks_verified","value":"blocks_verified"}, 
+{"label":"blocks_written","value":"blocks_written"}, 
+{"label":"bytes_read","value":"bytes_read"}, 
+{"label":"bytes_written","value":"bytes_written"}, 
+{"label":"copy_block_op_avg_time","value":"copy_block_op_avg_time"}, 
+{"label":"copy_block_op_num_ops","value":"copy_block_op_num_ops"}, 
+{"label":"heart_beats_avg_time","value":"heart_beats_avg_time"}, 
+{"label":"heart_beats_num_ops","value":"heart_beats_num_ops"}, 
+{"label":"read_block_op_avg_time","value":"read_block_op_avg_time"}, 
+{"label":"read_block_op_num_ops","value":"read_block_op_num_ops"}, 
+{"label":"read_metadata_op_avg_time","value":"read_metadata_op_avg_time"}, 
+{"label":"read_metadata_op_num_ops","value":"read_metadata_op_num_ops"}, 
+{"label":"reads_from_local_client","value":"reads_from_local_client"}, 
+{"label":"reads_from_remote_client","value":"reads_from_remote_client"}, 
+{"label":"replace_block_op_avg_time","value":"replace_block_op_avg_time"}, 
+{"label":"replace_block_op_num_ops","value":"replace_block_op_num_ops"}, 
+{"label":"write_block_op_avg_time","value":"write_block_op_avg_time"}, 
+{"label":"write_block_op_num_ops","value":"write_block_op_num_ops"}, 
+{"label":"writes_from_local_client","value":"writes_from_local_client"}, 
+{"label":"writes_from_remote_client","value":"writes_from_remote_client"} 
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_fsnamesystem.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_fsnamesystem.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_fsnamesystem.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_fsnamesystem.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,54 @@
+{
+"id":"dfs_fsnamesystem",
+"title":"DFS FS Name System Metrics",
+"version":"0.1",
+"categories":"Hadoop,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display File System Name System related stats",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"table","type":"string","value":"dfs_fsnamesystem","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select_multiple","value":"capacity_remaining_gb","label":"Metric","options":[
+{"label":"blocks_total","value":"blocks_total"},                            
+{"label":"capacity_remaining_gb","value":"capacity_remaining_gb"},
+{"label":"capacity_total_gb","value":"capacity_total_gb"},         
+{"label":"capacity_used_gb","value":"capacity_used_gb"},
+{"label":"files_total","value":"files_total"},
+{"label":"pending_replication_blocks","value":"pending_replication_blocks"},
+{"label":"scheduled_replication_blocks","value":"scheduled_replication_blocks"},
+{"label":"total_load","value":"total_load"},
+{"label":"under_replicated_blocks","value":"under_replicated_blocks"}
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_namenode.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_namenode.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_namenode.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_namenode.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,49 @@
+{
+"id":"dfs_namenode",
+"title":"DFS Name Node Metrics",
+"version":"0.1",
+"categories":"Hadoop,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display system related stats",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"find_slope","type":"string","value":"true","edit":"0"},
+{"name":"table","type":"string","value":"dfs_namenode","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select_multiple","value":"block_report_avg_time","label":"Metric","options":[
+{"label":"add_block_ops","value":"add_block_ops"},                            
+{"label":"blocks_corrupted","value":"blocks_corrupted"},
+{"label":"create_file_ops","value":"create_file_ops"},         
+{"label":"delete_file_ops","value":"delete_file_ops"},
+{"label":"files_created","value":"files_created"},
+{"label":"files_renamed","value":"files_renamed"},
+{"label":"files_deleted","value":"files_deleted"},
+{"label":"get_block_locations","value":"get_block_locations"},
+{"label":"get_listing_ops","value":"get_listing_ops"},
+{"label":"safe_mode_time","value":"safe_mode_time"},
+{"label":"syncs_avg_time","value":"syncs_avg_time"},
+{"label":"syncs_num_ops","value":"syncs_num_ops"},
+{"label":"transactions_avg_time","value":"transactions_avg_time"},
+{"label":"transactions_num_ops","value":"transactions_num_ops"},
+{"label":"block_report_avg_time","value":"block_report_avg_time"},
+{"label":"block_report_num_ops","value":"block_report_num_ops"},
+{"label":"fs_image_load_time","value":"fs_image_load_time"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_throughput.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_throughput.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_throughput.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/dfs_throughput.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,59 @@
+{
+"id":"dfs_throughput",
+"title":"DFS Throughput Metrics",
+"version":"0.1",
+"categories":"Hadoop,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display DFS throughput stats",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"table","type":"string","value":"dfs_throughput","edit":"0"},
+{"name":"find_slope","type":"string","value":"true","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select_multiple","value":"bytes_read","label":"Metric","options":[
+{"label":"hosts","value":"hosts"},                            
+{"label":"block_reports_avg_time","value":"block_reports_avg_time"},                            
+{"label":"block_reports_num_ops","value":"block_reports_num_ops"},
+{"label":"block_verification_failures","value":"block_verification_failures"},
+{"label":"blocks_read","value":"blocks_read"},
+{"label":"blocks_removed","value":"blocks_removed"},
+{"label":"blocks_replicated","value":"blocks_replicated"},
+{"label":"blocks_verified","value":"blocks_verified"},
+{"label":"blocks_written","value":"blocks_written"},
+{"label":"bytes_read","value":"bytes_read"},
+{"label":"bytes_written","value":"bytes_written"},
+{"label":"copy_block_op_avg_time","value":"copy_block_op_avg_time"},
+{"label":"copy_block_op_num_ops","value":"copy_block_op_num_ops"},
+{"label":"heart_beats_avg_time","value":"heart_beats_avg_time"},
+{"label":"heart_beats_num_ops","value":"heart_beats_num_ops"},
+{"label":"read_block_op_avg_time","value":"read_block_op_avg_time"},
+{"label":"read_block_op_num_ops","value":"read_block_op_num_ops"},
+{"label":"read_metadata_op_avg_time","value":"read_metadata_op_avg_time"},
+{"label":"read_metadata_op_num_ops","value":"read_metadata_op_num_ops"},
+{"label":"reads_from_local_client","value":"reads_from_local_client"},
+{"label":"reads_from_remote_client","value":"reads_from_remote_client"},
+{"label":"replace_block_op_avg_time","value":"replace_block_op_avg_time"},
+{"label":"replace_block_op_num_ops","value":"replace_block_op_num_ops"},
+{"label":"write_block_op_avg_time","value":"write_block_op_avg_time"},
+{"label":"write_block_op_num_ops","value":"write_block_op_num_ops"},
+{"label":"writes_from_local_client","value":"writes_from_local_client"},
+{"label":"writes_from_remote_client","value":"writes_from_remote_client"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/disk.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/disk.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/disk.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/disk.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,51 @@
+{
+"id":"disk",
+"title":"Disk Statistics",
+"version":"0.1",
+"categories":"System,Disk,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display disk related statistics",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"table","type":"string","value":"disk","edit":"0"},
+{"name":"group_override","type":"string","value":"concat(host,mount) as mount","edit":"0"},
+{"name":"group","type":"string","value":"host","edit":"0"},
+{"name":"group_items","type":"string","value":"hosts","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select_multiple","value":"available","label":"Metric","options":[
+{"label":"used","value":"used"},                            
+{"label":"available","value":"available"}
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/disk_pcnt.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/disk_pcnt.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/disk_pcnt.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/disk_pcnt.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,49 @@
+{
+"id":"disk-pcnt",
+"title":"Disk Statistics By Percentage",
+"version":"0.1",
+"categories":"System,Disk,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display disk related statistics",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"table","type":"string","value":"disk","edit":"0"},
+{"name":"group_override","type":"string","value":"concat(host,mount) as mount","edit":"0"},
+{"name":"y_axis_max","type":"string","value":"100","edit":"0"},
+{"name":"metric","type":"string","value":"used_percent","edit":"0"},
+{"name":"group","type":"string","value":"host","edit":"0"},
+{"name":"group_items","type":"string","value":"hosts","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/event_viewer.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/event_viewer.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/event_viewer.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/event_viewer.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,17 @@
+{
+"id":"event_browser",
+"title":"Event Viewer",
+"version":"0.1",
+"categories":"Global,Utilities",
+"module":"jsp\/event_viewer.jsp",
+"description":"Display Time sorted events",
+"screendump":"",
+"refresh":"15",
+"parameters":[
+{"name":"database","type":"select_callback","value":"","label":"Data Source","callback":"/hicc/jsp/get_data_source.jsp"},
+{"name":"type","type":"radio","value":"graph","label":"Display Type","options":[
+{"label":"Graph","value":"graph"},
+{"label":"List","value":"list"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hadoop_jvm.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hadoop_jvm.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hadoop_jvm.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hadoop_jvm.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,67 @@
+{
+"id":"hadoop_jvm",
+"title":"Hadoop JVM Metrics",
+"version":"0.1",
+"categories":"Hadoop,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display Java virtual machine metrics for Hadoop",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"table","type":"string","value":"hadoop_jvm","edit":"0"},
+{"name":"normalize_time","type":"string","value":"true","edit":"0"},
+{"name":"group_override","type":"string","value":"concat(host,' ',process_name) as process","edit":"0"},
+{"name":"group","type":"string","value":"host","edit":"0"},
+{"name":"group_items","type":"string","value":"hosts","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select","value":"gc_timemillis","label":"Metric","options":[
+{"label":"gc_timemillis","value":"gc_timemillis"},
+{"label":"gc_count","value":"gc_count"},
+{"label":"log_error","value":"log_error"},
+{"label":"log_fatal","value":"log_fatal"},
+{"label":"log_info","value":"log_info"},
+{"label":"log_warn","value":"log_warn"},
+{"label":"mem_heap_committed_m","value":"mem_heap_committed_m"},
+{"label":"mem_heap_used_m","value":"mem_heap_used_m"},
+{"label":"mem_non_heap_committed_m","value":"mem_non_heap_committed_m"},
+{"label":"mem_non_heap_used_m","value":"mem_non_heap_used_m"},
+{"label":"threads_blocked","value":"threads_blocked"},
+{"label":"threads_new","value":"threads_new"},
+{"label":"threads_runnable","value":"threads_runnable"},
+{"label":"threads_terminated","value":"threads_terminated"},
+{"label":"threads_timed_waiting","value":"threads_timed_waiting"},
+{"label":"threads_waiting","value":"threads_waiting"},
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hadoop_mapred.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hadoop_mapred.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hadoop_mapred.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hadoop_mapred.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,54 @@
+{
+"id":"hadoop_mapred",
+"title":"Hadoop Map/Reduce Metrics",
+"version":"0.1",
+"categories":"Hadoop,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display map/reduce metrics from Hadoop",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"find_slope","type":"string","value":"true","edit":"0"},
+{"name":"table","type":"string","value":"hadoop_mapred","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select_multiple","value":"heartbeat_avg_time","label":"Metric","options":[
+{"label":"jobs_completed","value":"jobs_completed"},
+{"label":"jobs_submitted","value":"jobs_submitted"},
+{"label":"maps_completed","value":"maps_completed"},
+{"label":"maps_launched","value":"maps_launched"},
+{"label":"reduces_completed","value":"reduces_completed"},
+{"label":"reduces_launched","value":"reduces_launched"},
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,13 @@
+{
+"id":"hod_job",
+"title":"Map Reduce Job Viewer",
+"version":"0.1",
+"categories":"Hod,Utilities",
+"module":"jsp\/hod_job.jsp",
+"plugin":"chart",
+"description":"Display Map Reduce Jobs information associated with a Hod Job, use Hod Job List to select Hod Job ID",
+"screendump":"",
+"refresh":"15",
+"parameters":[
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job_chart.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job_chart.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job_chart.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job_chart.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,87 @@
+{
+"id":"hod_job_chart",
+"title":"Hod Job Metrics Graph",
+"version":"0.1",
+"categories":"Hod,Utilities",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display Hod Job Metrics Graph",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"table","type":"string","value":"hod_job_digest","edit":"0"},
+{"name":"match","type":"string","value":"HodID","edit":"0"},
+{"name":"group_override","type":"string","value":"concat(HodID,' ',UserID)","edit":"0"},
+{"name":"group","type":"string","value":"HodID","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select","value":"load_1","label":"Metric","options":[
+{"label":"Allocated hosts","value":"host"},
+{"label":"15 minutes load average","value":"load_15"},
+{"label":"5 minutes load average","value":"load_5"},
+{"label":"1 minutes load average","value":"load_1"},
+{"label":"Tasks Total","value":"task_total"},
+{"label":"Tasks Running","value":"task_running"},
+{"label":"Tasks Sleep","value":"task_sleep"},
+{"label":"Tasks Stopped","value":"task_stopped"},
+{"label":"Tasks Zombie","value":"task_zombie"},
+{"label":"Memory Buffers","value":"mem_buffers"},
+{"label":"Memory Cached","value":"mem_cached"},
+{"label":"Memory Used","value":"mem_used"},
+{"label":"Memory Free","value":"mem_free"},
+{"label":"Network Card 1 Receive Error/Second","value":"eth0_rxerrs"},
+{"label":"Network Card 1 Receive Bytes/Second","value":"eth0_rxbyts"},
+{"label":"Network Card 1 Receive Packets/Second","value":"eth0_rxpcks"},
+{"label":"Network Card 1 Receive Dropped/Second","value":"eth0_rxdrops"},
+{"label":"Network Card 1 Transfer Error/Second","value":"eth0_txerrs"},
+{"label":"Network Card 1 Transfer Bytes/Second","value":"eth0_txbyts"},
+{"label":"Network Card 1 Transfer Packets/Second","value":"eth0_txpcks"},
+{"label":"Network Card 1 Transfer Dropped/Second","value":"eth0_txdrops"},
+{"label":"Network Card 2 Receive Error/Second","value":"eth1_rxerrs"},
+{"label":"Network Card 2 Receive Bytes/Second","value":"eth1_rxbyts"},
+{"label":"Network Card 2 Receive Packets/Second","value":"eth1_rxpcks"},
+{"label":"Network Card 2 Receive Dropped/Second","value":"eth1_rxdrops"},
+{"label":"Network Card 2 Transfer Error/Second","value":"eth1_txerrs"},
+{"label":"Network Card 2 Transfer Bytes/Second","value":"eth1_txbyts"},
+{"label":"Network Card 2 Transfer Packets/Second","value":"eth1_txpcks"},
+{"label":"Network Card 2 Transfer Dropped/Second","value":"eth1_txdrops"},
+{"label":"Disk 1 Read KB/Second","value":"sda_rkbs"},
+{"label":"Disk 1 Write KB/Second","value":"sda_wkbs"},
+{"label":"Disk 2 Read KB/Second","value":"sdb_rkbs"},
+{"label":"Disk 2 Write KB/Second","value":"sdb_wkbs"},
+{"label":"Disk 3 Read KB/Second","value":"sdc_rkbs"},
+{"label":"Disk 3 Write KB/Second","value":"sdc_wkbs"},
+{"label":"Disk 4 Read KB/Second","value":"sdd_rkbs"},
+{"label":"Disk 4 Write KB/Second","value":"sdd_wkbs"},
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job_list.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job_list.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job_list.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/hod_job_list.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,13 @@
+{
+"id":"hod_job_list",
+"title":"Hod Job List",
+"version":"0.1",
+"categories":"Hod,Utilities",
+"module":"jsp\/hod_job_list.jsp",
+"plugin":"chart",
+"description":"Hod job list widget",
+"screendump":"",
+"refresh":"15",
+"parameters":[
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/host_selector.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/host_selector.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/host_selector.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/host_selector.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,12 @@
+{
+"id":"host_selector",
+"title":"Host Selector",
+"version":"0.1",
+"categories":"Global,Utility",
+"module":"jsp\/host_selector.jsp",
+"description":"Global control to manipulate hosts across widgets",
+"screendump":"",
+"refresh":"15",
+"parameters":[
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/node_activity_chart.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/node_activity_chart.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/node_activity_chart.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/node_activity_chart.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,51 @@
+{
+"id":"node_activity_chart",
+"title":"Node Activity Graph",
+"version":"0.1",
+"categories":"System,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display Node Activity Graph",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"table","type":"string","value":"node_activity","edit":"0"},
+{"name":"metric","type":"string","value":"down","edit":"0"},
+{"name":"metric","type":"string","value":"used","edit":"0"},
+{"name":"metric","type":"string","value":"free","edit":"0"},
+{"name":"title","type":"string","value":"Node Activity","edit":"0"},
+{"name":"compound_data","type":"string","value":"true","edit":"0"},
+{"name":"render","type":"string","value":"stack-area","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/node_utilization_by_job.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/node_utilization_by_job.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/node_utilization_by_job.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/node_utilization_by_job.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,13 @@
+{
+"id":"hod_job",
+"title":"Map Reduce Job Viewer",
+"version":"0.1",
+"categories":"Hod,Utilities",
+"module":"jsp\/hod_job.jsp",
+"plugin":"chart",
+"description":"Display Map Reduce Jobs information associated with a Hod Job, use Hod Job List to select Hod Job ID",
+"screendump":"",
+"refresh":"15",
+"parameters":[
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/rpc_metrics.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/rpc_metrics.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/rpc_metrics.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/rpc_metrics.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,75 @@
+{
+"id":"rpc_metrics",
+"title":"RPC Metrics",
+"version":"0.1",
+"categories":"Hadoop,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display RPC metrics from Hadoop",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"find_slope","type":"string","value":"true","edit":"0"},
+{"name":"group","type":"string","value":"host","edit":"0"},
+{"name":"group_items","type":"string","value":"hosts","edit":"0"},
+{"name":"table","type":"string","value":"hadoop_rpc","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select","value":"heartbeat_avg_time","label":"Metric","options":[
+{"label":"rpc_processing_time_avg_time","value":"rpc_processing_time_avg_time"}, 
+{"label":"rpc_processing_time_num_ops","value":"rpc_processing_time_num_ops"}, 
+{"label":"rpc_queue_time_avg_time","value":"rpc_queue_time_avg_time"}, 
+{"label":"rpc_queue_time_num_ops","value":"rpc_queue_time_num_ops"}, 
+{"label":"get_build_version_avg_time","value":"get_build_version_avg_time"}, 
+{"label":"get_build_version_num_ops","value":"get_build_version_num_ops"}, 
+{"label":"get_job_counters_avg_time","value":"get_job_counters_avg_time"},  
+{"label":"get_job_counters_num_ops","value":"get_job_counters_num_ops"},  
+{"label":"get_job_profile_avg_time","value":"get_job_profile_avg_time"},  
+{"label":"get_job_profile_num_ops","value":"get_job_profile_num_ops"},  
+{"label":"get_job_status_avg_time","value":"get_job_status_avg_time"},  
+{"label":"get_job_status_num_ops","value":"get_job_status_num_ops"},  
+{"label":"get_new_job_id_avg_time","value":"get_new_job_id_avg_time"},  
+{"label":"get_new_job_id_num_ops","value":"get_new_job_id_num_ops"},  
+{"label":"get_protocol_version_avg_time","value":"get_protocol_version_avg_time"},  
+{"label":"get_protocol_version_num_ops","value":"get_protocol_version_num_ops"},  
+{"label":"get_system_dir_avg_time","value":"get_system_dir_avg_time"},  
+{"label":"get_system_dir_num_ops","value":"get_system_dir_num_ops"},  
+{"label":"get_task_completion_events_avg_time","value":"get_task_completion_events_avg_time"}, 
+{"label":"get_task_completion_events_num_ops","value":"get_task_completion_events_num_ops"}, 
+{"label":"get_task_diagnostics_avg_time","value":"get_task_diagnostics_avg_time"},
+{"label":"get_task_diagnostics_num_ops","value":"get_task_diagnostics_num_ops"},
+{"label":"heartbeat_avg_time","value":"heartbeat_avg_time"},
+{"label":"heartbeat_num_ops","value":"heartbeat_num_ops"},
+{"label":"submit_job_avg_time","value":"submit_job_avg_time"},
+{"label":"submit_job_num_ops","value":"submit_job_num_ops"},
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/system_metrics.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/system_metrics.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/system_metrics.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/system_metrics.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,85 @@
+{
+"id":"system_metrics",
+"title":"System Metrics",
+"version":"0.1",
+"categories":"System,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display system related stats",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"table","type":"string","value":"system_metrics","edit":"0"},
+{"name":"group","type":"string","value":"host","edit":"0"},
+{"name":"group_items","type":"string","value":"hosts","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select","value":"load_1","label":"Metric","options":[
+{"label":"15 minutes load average","value":"load_15"},
+{"label":"5 minutes load average","value":"load_5"},
+{"label":"1 minutes load average","value":"load_1"},
+{"label":"Tasks Total","value":"task_total"},
+{"label":"Tasks Running","value":"task_running"},
+{"label":"Tasks Sleep","value":"task_sleep"},
+{"label":"Tasks Stopped","value":"task_stopped"},
+{"label":"Tasks Zombie","value":"task_zombie"},
+{"label":"Memory Buffers","value":"mem_buffers"},
+{"label":"Memory Cached","value":"mem_cached"},
+{"label":"Memory Used","value":"mem_used"},
+{"label":"Memory Free","value":"mem_free"},
+{"label":"Network Card 1 Receive Error/Second","value":"eth0_rxerrs"},
+{"label":"Network Card 1 Receive Bytes/Second","value":"eth0_rxbyts"},
+{"label":"Network Card 1 Receive Packets/Second","value":"eth0_rxpcks"},
+{"label":"Network Card 1 Receive Dropped/Second","value":"eth0_rxdrops"},
+{"label":"Network Card 1 Transfer Error/Second","value":"eth0_txerrs"},
+{"label":"Network Card 1 Transfer Bytes/Second","value":"eth0_txbyts"},
+{"label":"Network Card 1 Transfer Packets/Second","value":"eth0_txpcks"},
+{"label":"Network Card 1 Transfer Dropped/Second","value":"eth0_txdrops"},
+{"label":"Network Card 2 Receive Error/Second","value":"eth1_rxerrs"},
+{"label":"Network Card 2 Receive Bytes/Second","value":"eth1_rxbyts"},
+{"label":"Network Card 2 Receive Packets/Second","value":"eth1_rxpcks"},
+{"label":"Network Card 2 Receive Dropped/Second","value":"eth1_rxdrops"},
+{"label":"Network Card 2 Transfer Error/Second","value":"eth1_txerrs"},
+{"label":"Network Card 2 Transfer Bytes/Second","value":"eth1_txbyts"},
+{"label":"Network Card 2 Transfer Packets/Second","value":"eth1_txpcks"},
+{"label":"Network Card 2 Transfer Dropped/Second","value":"eth1_txdrops"},
+{"label":"Disk 1 Read KB/Second","value":"sda_rkbs"},
+{"label":"Disk 1 Write KB/Second","value":"sda_wkbs"},
+{"label":"Disk 2 Read KB/Second","value":"sdb_rkbs"},
+{"label":"Disk 2 Write KB/Second","value":"sdb_wkbs"},
+{"label":"Disk 3 Read KB/Second","value":"sdc_rkbs"},
+{"label":"Disk 3 Write KB/Second","value":"sdc_wkbs"},
+{"label":"Disk 4 Read KB/Second","value":"sdd_rkbs"},
+{"label":"Disk 4 Write KB/Second","value":"sdd_wkbs"}
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/system_metrics_pcnt.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/system_metrics_pcnt.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/system_metrics_pcnt.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/system_metrics_pcnt.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,66 @@
+{
+"id":"system_metrics_pcnt",
+"title":"System Metrics By Percentage",
+"version":"0.1",
+"categories":"System,Status",
+"module":"iframe/jsp/single-series-chart-javascript.jsp",
+"description":"Display system related stats by utilization percentage",
+"screendump":"\/images\/server_load.gif",
+"refresh":"15",
+"parameters":[
+{"name":"table","type":"string","value":"system_metrics","edit":"0"},
+{"name":"group","type":"string","value":"host","edit":"0"},
+{"name":"group_items","type":"string","value":"hosts","edit":"0"},
+{"name":"y_axis_max","type":"string","value":"100","edit":"0"},
+{"name":"period","type":"select","value":"","label":"Period","options":[
+{"label":"Use Time Widget","value":""},
+{"label":"Last 1 Hour","value":"last1hr"},
+{"label":"Last 2 Hours","value":"last2hr"},
+{"label":"Last 3 Hours","value":"last3hr"},
+{"label":"Last 6 Hours","value":"last6hr"},
+{"label":"Last 12 Hours","value":"last12hr"},
+{"label":"Last 24 Hours","value":"last24hr"},
+{"label":"Yesterday","value":"yesterday"},
+{"label":"Last 7 Days","value":"last7d"},
+{"label":"Last 30 Days","value":"last30d"}
+]},
+{"name":"metric","type":"select","value":"cpu_user_pcnt","label":"Metric","options":[
+{"label":"CPU System %","value":"cpu_system_pcnt"},
+{"label":"CPU User %","value":"cpu_user_pcnt"},
+{"label":"CPU Idle %","value":"cpu_idle_pcnt"},
+{"label":"CPU Nice %","value":"cpu_nice_pcnt"},
+{"label":"CPU Hardware IRQ %","value":"cpu_hirq_pcnt"},
+{"label":"CPU Software IRQ %","value":"cpu_sirq_pcnt"},
+{"label":"Iowait %","value":"iowait_pcnt"},
+{"label":"Memory Buffers %","value":"mem_buffers_pcnt"},
+{"label":"Memory Used %","value":"mem_used_pcnt"},
+{"label":"Network Card 1 Busy %","value":"eth0_busy_pcnt"},
+{"label":"Network Card 2 Busy %","value":"eth1_busy_pcnt"},
+{"label":"Disk 1 Busy %","value":"sda_busy_pcnt"},
+{"label":"Disk 2 Busy %","value":"sdb_busy_pcnt"},
+{"label":"Disk 3 Busy %","value":"sdc_busy_pcnt"},
+{"label":"Disk 4 Busy %","value":"sdd_busy_pcnt"},
+{"label":"Swap Used %","value":"swap_used_pcnt"}
+]},
+{"name":"width","type":"select","value":"300","label":"Width","options":[
+{"label":"300","value":"300"},
+{"label":"400","value":"400"},
+{"label":"500","value":"500"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"},
+{"label":"1200","value":"1200"}
+]},
+{"name":"height","type":"select","value":"200","label":"Height","options":[
+{"label":"200","value":"200"},
+{"label":"400","value":"400"},
+{"label":"600","value":"600"},
+{"label":"800","value":"800"},
+{"label":"1000","value":"1000"}
+]},
+{"name":"legend","type":"radio","value":"on","label":"Show Legends","options":[
+{"label":"On","value":"on"},
+{"label":"Off","value":"off"}
+]}
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/time.descriptor
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/time.descriptor?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/time.descriptor (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/descriptors/time.descriptor Fri Dec  5 12:30:14 2008
@@ -0,0 +1,18 @@
+{
+"id":"time",
+"title":"Time",
+"version":"0.1",
+"categories":"Global,Utility",
+"module":"jsp\/time.jsp",
+"javascripts":"time.js",
+"description":"Global control to manipulate time across widgets",
+"refresh":"0",
+"parameters":[
+{"name":"time_zone","type":"select_callback","value":"UTC","label":"Time Zone","callback":"/hicc/jsp/get_timezone_list.jsp"},
+{"name":"time_type","type":"select","value":"range","label":"Style","options":[
+{"label":"Date Picker","value":"date"},
+{"label":"Time Period","value":"range"},
+{"label":"Slider","value":"slider"}
+]},
+]
+}

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/index.jsp
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/index.jsp?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/index.jsp (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/index.jsp Fri Dec  5 12:30:14 2008
@@ -0,0 +1,213 @@
+<%@ page import = "javax.servlet.http.*, java.sql.*,java.io.*, java.util.Calendar, java.util.Date, java.text.SimpleDateFormat, java.util.*, org.apache.hadoop.chukwa.hicc.ClusterConfig, org.apache.hadoop.chukwa.hicc.TimeHandler"  %>
+<%
+    if(session.getAttribute("cluster")==null) {
+        ClusterConfig cc = new ClusterConfig();
+        Iterator ci = cc.getClusters();
+        String cluster = (String) ci.next();
+        session.setAttribute("cluster", cluster);
+    }
+    if(session.getAttribute("period")==null || session.getAttribute("start")==null || session.getAttribute("end")==null ||
+       session.getAttribute("time_type")==null) {
+        session.setAttribute("time_type","last");
+        session.setAttribute("period","last1hr");
+        long now = Calendar.getInstance().getTime().getTime();
+        session.setAttribute("start",now-(60*60*1000));
+        session.setAttribute("end",now);
+        TimeHandler time = new TimeHandler(request);
+    }
+    String machine="";
+    if(session.getAttribute("hosts")==null) {
+        session.setAttribute("hosts",machine);
+    }
+    if(((String)request.getHeader("user-agent")).indexOf("iPhone")>0) { %>
+        <jsp:forward page="iphone.jsp" />
+<%  }
+
+%>
+<html><title>Hadoop Infrastructure Care Center</title>
+<body id="main_body">
+<div id="debug"></div>
+<div id="shadow" class="shadow"> 
+<table width="100%" height="100%"><tr><td valign="center" align="middle">
+<table padding="20px">
+<tr><td>
+<font size="32" color="#eeeeee">&nbsp;Loading...&nbsp;</font>&nbsp;</td></tr>
+</table>
+</td></tr></table>
+</div>
+<link href="css/default.css" rel="stylesheet" type="text/css">
+<style type="text/css">@import url('css/calendar.css');</style>
+<link href="css/menu.css" rel="stylesheet" type="text/css">
+<link href="css/tab.css" rel="stylesheet" type="text/css">
+<link href="css/timeframe.css" rel="stylesheet" type="text/css">
+<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/fonts/fonts-min.css" />
+<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/treeview/assets/skins/sam/treeview.css" />
+<!-- all the necessary js files -->
+<script type="text/javascript" src="./js/yahoo-dom-event.js"></script>
+<script type="text/javascript" src="./js/treeview-min.js"></script>
+<script type="text/javascript" src="/hicc/js/workspace/prototype.js"></script>
+<script type="text/javascript" src="/hicc/js/calendar.js"></script>
+<script type="text/javascript" src="/hicc/js/timeframe.js"></script>
+<script type="text/javascript" src="/hicc/js/lang/calendar-en.js"></script>
+<script type="text/javascript" src="/hicc/js/calendar-setup.js"></script>
+<script type="text/javascript" src="/hicc/js/workspace/scriptaculous.js"></script>
+<script type="text/javascript" src="/hicc/js/workspace/effects.js"></script>
+<script type="text/javascript" src="/hicc/js/workspace/dragdrop.js"></script>
+<script type="text/javascript" src="/hicc/js/workspace/workspace.js"></script>
+<script type="text/javascript" src="/hicc/js/slider.js"></script>
+<script type="text/javascript" src="/hicc/js/swfobject.js"></script>
+
+<script type="text/javascript">
+var _users_list=''; //'[% users_list_json %]'.evalJSON();
+var expanded_page=1;
+var need_save=0;
+window.onbeforeunload = check_save;
+</script>
+<script type="text/javascript">
+function toggle_view_all() {
+    if(expanded_page) {
+        document.getElementById('view_all').src='/hicc/images/stop.png';
+        _currentView.getCurrentPage().collapse_all();
+        expanded_page=0;
+    } else {
+        document.getElementById('view_all').src='/hicc/images/stop.png';
+        _currentView.getCurrentPage().expand_all();
+        expanded_page=1;
+    }
+}
+</script>
+<input type=hidden name=cmd id=cmd value=1>
+<table width="100%" cellpadding=3 cellspacing=0>
+<tr><td nowrap><img src="images/chukwa.jpg" align="absmiddle"> Hadoop Infrastructure Care Center</td>
+    <td align="left" nowrap class="portal_top_nav_bar" nowrap> </td></tr>
+</table>
+<table width="100%" cellpadding=0 cellspacing=0 class="menubar">
+<tr><td>
+<div id="menu">
+<ul>
+  <li><select class="formSelect" id="currentpage" onChange="changeView(this);"></select></li>
+</ul>
+<ul>
+  <li><a href="#" onClick="return false;"><img src="/hicc/images/application.png" border="0" align="absmiddle"> Options</a>
+    <ul>
+      <table>
+        <tr><td onClick="javascript:add_widget_menu();"><img src="/hicc/images/add_widget.png"> Add Widget</td></tr>
+        <tr><td onClick="javascript:addColumn();"><img src="/hicc/images/layout_add.png"> Add Column</td></tr>
+        <tr><td onClick="javascript:deleteColumn();"><img src="/hicc/images/layout_delete.png"> Delete Last Column</td></tr>
+        <tr><td onClick="javascript:addNewPage();"><img src="/hicc/images/tab_add.png"> Add New Tab</td></tr>
+        <tr><td onClick="javascript:deleteCurrentPage();"><img src="/hicc/images/tab_delete.png"> Delete Current Tab</td></tr>
+      </table>
+    </ul>
+  </li>
+</ul>
+<ul>
+  <li><a href="#" onClick="javascript:manage_content(); return false;"><img src="/hicc/images/table.png" border="0" align="absmiddle"> Workspace Builder</a></li>
+</ul>
+<ul>
+  <li><a href="#" onClick="saveView(); return false;"><img src="/hicc/images/drive.png" border="0" align="absmiddle"> Save Dashboard</a></li>
+</ul>
+</div>
+</td><td>
+</td><td align="right"><a href='#' onclick='toggle_view_all()' class='glossy_icon'><img id='view_all' src='/hicc/images/stop.png' border=0></a>  <a href='#' onclick='_currentView.getCurrentPage().refresh_all();' class='glossy_icon'><img src='/hicc/images/refresh.png' border=0></a>&nbsp;</div>
+</td></tr>
+</table>
+<table width="100%" cellpadding=0 cellspacing=0>
+<tr><td colspan="3">
+<!-- first page for manage view -->
+<div id="manage_view" style="display:none;overflow:hidden;width:100%;">
+<table cellspacing="10" cellpadding="0" width="100%" class="ppsmenu">
+<tr><td>
+<table width="100%" class="titlebar"><tr><td>Workspace</td><td align="right"><span class="glossy_icon"><a href="#" onClick="manage_content('close');"><img src="images/close.png" align="absmiddle"></a></span></td></tr></table>
+<div id="views_list_div">
+</div>
+</td></tr>
+<tr><td colspan="2">
+<input class="formButton" type="button" name="new_workspace" value="Create New Workspace" onClick="createNewView();"/>
+</td></tr>
+</table>
+</div>
+<!-- end of manage view -->
+
+<!-- panel 3 for creation widgets -->
+<div id="widget_view" style="display:none;overflow:hidden;width:100%;">
+<table cellspacing="10" cellpadding="0" width="100%" class="ppsmenu">
+<tr><td>
+<table width=100% class="titlebar"><tr><td>Widget Menu</td><td width="18"><span class="glossy_icon"><a href="#" onClick="add_widget_menu('close');"><img src="images/close.png"></span></a></td></tr></table>
+<table width="100%" cellpadding="1" cellspacing="1" class="mailListBorder">
+<tr><td class="table-subhead" align="center">Widgets Catalog</td><td class="table-subhead" align="center">Widget Details</td></tr>
+<tr><td valign="top" width="250" class="white">
+<table class="menu_table"><tr><td>
+<div id="myWidgetContainer" style="width: 250px; height: 300px; border: none;overflow: auto;>
+     <span id="treePlaceHolder"
+        style="background-color:#F00; color:#FFF;">
+       Loading tree widget...
+     </span>
+</div>
+</td></tr></table>
+</td><td valign="top" class="configurationTableContent">
+<table width="100%" cellpadding="5" cellspacing="0">
+<tr><td>
+<div id='widget_detail' class="configurationTableContent">
+Select the widget from the widget tree to see the detail.
+</div>
+</td></tr>
+</table>
+
+</td></tr>
+</table>
+</td></tr>
+</table>
+</div>
+<DIV ID="popup-div" class="ppsPopup" STYLE="max-width:300px;position:absolute;visibility:hidden;z-index:100;">
+</DIV>
+<!-- end of panel 3 -->
+<!-- page selector -->
+<table class="page_selector_table" width="100%" cellspacing=0 cellpadding=0>
+<tr><td>
+<div id="page_selector" style="display:block;">
+<ul id="tablist">
+</ul>
+</div>
+</td>
+</tr>
+</table>
+</td></tr>
+<tr><td bgcolor="white" id="workspaceContainer" colspan="3">
+<!-- content location -->
+</td></tr>
+</table>
+
+<div id="rectangleDiv" style="display:none;">
+</div>
+
+<!-- page configuration UI -->
+<div id="page_config_menu" style="display:none;">
+<table width="160" cellpadding=0 cellspacing=0><tr><td width="80" class="ppsPopupHead">&nbsp;</td><td class="ppsPopupTail"><img src="/hicc/css/images/popup_tail.gif"></td><td class="ppsPopupHead">&nbsp;</td><td width="5"></td></tr></table>
+<table width="160" style="border-style:solid; border-top:0; border-left:0; border-width:5px; border-color:#CCCCCC; " cellpadding=0 cellspacing=0>
+<tr><td>
+<table class="ppPopupBody">
+<tr><td class="xMessageHeaderLabel">Page Configuration Menu</td><td align="right">
+</td></tr>
+<tr><td class="ppsmenu"><a href="#" class="ppsmenu" onclick="addColumn();configPage('');">Add a column</a>
+</td></tr>
+<tr><td class="ppsmenu"><a href="#" class="ppsmenu" onclick="deleteColumn();configPage('');">Delete last column</a>
+</td></tr>
+</table>
+</td></tr>
+</table>
+</div>
+<!-- end of page configuration UI -->
+
+<script>
+// initialize the script
+update_views_list();
+initScript('<% if(request.getParameter("view") != null) { out.print(request.getParameter("view")); } else { out.print("default"); } %>');
+set_current_view('<% if(request.getParameter("view") != null) { out.print(request.getParameter("view")); } else { out.print("default"); } %>');
+$('shadow').style.display='none';
+
+function debugMode() {
+}
+
+</script>
+</body>
+</html>

Added: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/js/ajaxtree.js
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/js/ajaxtree.js?rev=723855&view=auto
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/js/ajaxtree.js (added)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/js/ajaxtree.js Fri Dec  5 12:30:14 2008
@@ -0,0 +1,480 @@
+/*
+Title: Ajax Tree
+	Created by Colin Mollenhour
+	
+	Description:
+	This tree class can be used with or without Ajax. You simply define node types and supply options,
+	hooks, handlers, etc. for each type and start creating nodes. All node types can be created using
+	the same constructor by passing it the type as a string. The way it handles data and reacts to user input
+	is completely customizable for each individual node type.
+
+	LIVE DEMO:
+	<http://colin.mollenhour.com/ajaxtree/ajaxtreetest.html>
+	
+Section: Usage
+	Usage specifications and examples.
+	
+	Requirements:
+	Prototype 1.5.0 rc1 <http://prototype.conio.net/>
+	
+	LIVE DEMO:
+	<http://colin.mollenhour.com/ajaxtree/ajaxtreetest.html>
+	
+	Source Code:
+	<http://colin.mollenhour.com/ajaxtree/ajaxtree.js>
+
+Group: Using the Javascript
+	Ajax.Tree is designed to be used in two steps::
+	- Extend the base class with your customizations. See <Ajax.Tree.Usage>
+	- Instantiate nodes of your new class. See <Ajax.Tree.Base.Usage>
+	
+Group: Handling Server Requests
+	The default format for server requests, which can be customized via the <callback> hook:
+	
+	getContents - 'action=getContents&id='this.element.id
+	
+	Now just handle those post variables however you like and use correct format in your <Server Response>.
+	
+Group: Server Response
+	The server response is expected to be in JSON format. It can be sent either in the responseText, or an X-JSON header.
+	The X-JSON header evaluated result is check for the presence of a *nodes* key, which is expected to be an Array.
+	If the X-JSON header does not contain a *nodes* key, the responseText is evaluated. If the evaluated responseText
+	does not have a *nodes* key, no nodes are built and this is *not* an error. Any related hooks will still be called
+	and passed the server response variables as usual.
+
+Topic: Specifications
+	- Must contain a "nodes" array of nodes.
+	- If the "nodes" array does not exist, no nodes will be created. However,
+		the <onContentLoaded> and <onGetContentsComplete> hooks will still be called.
+	- Each element of "nodes" must contain:
+		id - The new node's element id. See <prependParentId>.
+		type - The new node's <type> keyword, as defined in the structure passed to <Ajax.Tree.create>.
+		data - Either a string (for default <insertion>) or some other object to be passed to <insertion>.
+	- Each node can contain nested nodes by adding a "nodes" array to a node.
+	- Other attributes can be scattered throughout the response data. It can be accessed by the
+		<onContentLoaded> and <getContentsComplete> hooks or for each individual node through the <insertion> option.
+	
+Topic: Example
+	This response example coincides with the <Ajax.Tree.Usage> example:
+	(start code)
+	{
+		nodes: [
+			{
+				id: 'dir-1',
+				type: 'directory',
+				data: 'Work',
+				nodes: [
+					{
+						id: 'dir-1_subdir-1',
+						type: 'directory',
+						data: 'Accounting'	
+					}
+				]
+			},
+			{
+				id: 'file-1',
+				type: 'file',
+				data: {
+					name: 'Presentation.ppt',
+					size: '30.2KB',
+					fileid: 53255596
+				},
+			}
+		]
+	}
+	(end)
+
+Class: Ajax.Tree
+	Ajax.Tree is the utility class for <Ajax.Tree.Base>. Using <create>, you can
+	create a new class that is an extension of <Ajax.Tree.Base>. Using this new
+	constructor, you can build a tree dynamically using multiple node types
+	without the need for separate constructors. The node types are defined in a hash
+	passed to <create> which also defines settings and handlers for each type.
+
+Group: Usage
+	Use Ajax.Tree.create to create a customized tree class.
+	
+	This example creates a simple file browser tree. It also demonstrates the use of an overridden
+	<insertion>, and the <onClick> hook.
+	
+	See <Ajax.Tree.Base.Usage> for information on using the constructor produced by this example.
+	
+	For more detail on defining your own types and handling server responses, see <Options> and <Ajax.Tree.Base>.
+	(start code)
+	Ajax.FileBrowser = Ajax.Tree.create({
+		types: {
+			directory: {
+				page: 'filebrowser.php'
+			},
+			file: {
+				leafNode: true,
+				insertion: function(element,data){
+					Element.update(element, data.name+' Size: '+data.size);
+					this.dlLink = Builder.node('span',{
+						id: data.fileid,
+						className: 'download'
+					},['download']);
+					this.events.observe(this.dlLink, 'click', this.options.download.bindAsEventListener(this));
+				},
+				onClick: function(event){
+					showThumbnail(this.element.id);
+				},
+				download: function(event){
+					window.location.href = 'getfile.php?fileid='+Event.element(event).id;
+				}
+			}
+		}
+	});
+	(end)
+	
+Group: Functions
+*/
+Ajax.Tree = {
+	/* Function: create
+	Returns a constructor for a new class that is specific to the structure passed.
+	This new class is an extension of <Ajax.Tree.Base>
+
+	structure - The structure that defines node types and their options and hooks.
+	*/
+	create: function(structure){
+		if( !structure.types._root ){ structure.types._root = {}; }
+		for(var type in structure.types){
+			/* Group: Options
+			All options are unique per type, and can be accessed inside class functions by "this.options.<option>". */
+			var options = {
+				/* Option: className
+				The className for the newly created element div and span elements, defaults to the node type */
+				className: type,
+				/* Option: draggable
+				Not yet implimented. */
+				draggable: false,
+				/* Option: leafNode
+				If true, the <mark> will get the className 'leaf' and clicks will not fire a <toggleChildren>. */
+				leafNode: false,
+				/* Option: page
+				If specified, <getContents> will be called on clicking the <mark>. */
+				page: null,
+				/* Option: prependParentId
+				If not false, the new element id will be prepended with it's parent's id and this option's value as a separator.
+				
+				Example::
+				|prependParentId: '_', parent.id: 'one-4', id: 'two-3'
+				|newid = 'one-4_two-3' */
+				prependParentId: false,
+				/* Option: insertion
+				The insertion function used to handle the node "data".
+				
+				See <Ajax.Tree.Base.insertion> */
+				insertion: Element.update
+			};
+			structure.types[type] = Object.extend(options,structure.types[type]);
+		}
+		var newTreeClass = Class.create();
+		Object.extend(newTreeClass.prototype,Object.extend(Ajax.Tree.Base.prototype,structure));
+		newTreeClass.prototype.constructor = newTreeClass;
+		return newTreeClass;
+	},
+	error: {
+		ajax: function(transport){
+			var msg = 'There was an error communicating with the server:\n'+transport.statusText;
+			Ajax.Tree.showError(msg);
+		}
+	},
+	showError: function(message){
+		alert(message);
+	}
+};
+
+/*
+Class: Ajax.Tree.Base
+	Ajax.Tree.Base is designed to be extended using <Ajax.Tree.create>. The extension
+	of this base class lets you add nodes to a tree in any way you like.
+
+Group: Usage
+	Use this class as the base for your own customized Ajax.Tree class.
+	The Ajax.Tree.Base class is not intended to be used directly. Instead, create your own extension
+	of this class with <Ajax.Tree.create>. With the extended class, you may now start creating nodes
+	using a typical javascript constructor.
+
+Topic: constructor
+	The class returned from <Ajax.Tree.create> can be instantied with the following arguments:
+
+Arguments:
+	parent - The id or element of the new node's parent
+	id - The new node's id
+	type - The new node's type, corresponding to one of the keys of the *types* hash passed to <Ajax.Tree.create>
+	data - A string or other object containing data to be processed by the type's <insertion> function
+
+Example code:
+	See <Ajax.Tree.Usage> for the corresponding, more detailed usage example of <Ajax.Tree.create>
+	(start code)
+	<div id="file_browser"></div>
+	<script type="text/javascript">
+		Ajax.FileBrowser = Ajax.Tree.create({...});
+		new Ajax.FileBrowser('file_browser','root','directory','My Files');
+	</script>
+	(end)
+
+Group: DOM Elements
+The DOM elements created on instantiation of a new node.
+All DOM elements are accessible using *this.<element>*.
+
+	parent - (div) - the node's parent element
+	element - (div) - the primary div, contains mark, span and children. has className: 'treenode' and this.options.className || this.type
+	mark - (span) - the expanded/collapsed mark. has className: 'mark' and one of 'expanded', 'collapsed', 'leaf'
+	span - (span) - the primary container for node data. has className: 'treedata' and this.options.className || this.type
+
+Group: Hooks
+	Hooks are provided for fine control over interactivity. Implement hooks separately for each node type.
+
+NOTE:
+	For all hooks, *this* is a reference to the node's class instance.
+
+Example:
+	Alerts the user as to how many child nodes are loaded.
+	(start code)
+	TreeOfNodes = Ajax.Tree.create({
+		types: {
+			node:  {
+				page: 'nodes.php',
+				onContentLoaded: function(xhr,json){
+					alert('Got '+$H(json.nodes).keys().length+' new nodes');
+				}
+			}
+		}
+	});
+	(end code)
+
+	Hook: callback
+		Called to build query parameters for the Ajax.Request. Should return a query string.
+		
+		id - The id of the node's element.
+	
+	Hook: onClearContents
+		Called after a node's children have been cleared.
+	
+	Hook: onClick
+		Called on user clicking the mark. If this function returns false, the click is effectively cancelled.
+	
+		event - The click event object
+	
+	Hook: onContentLoaded
+		Called after all new nodes have been constructed.
+		
+		xhr - The XMLHttpRequest transport
+		json - The evaluated X-JOSN header object
+	
+	Hook: dispose
+		Called during a node disposal.
+	
+	Hook: onGetContents
+		Called immediately after the Ajax.Request is sent.
+		
+		request - The Ajax.Request object
+	
+	Hook: onGetContentsComplete
+		Called after the Ajax.Request onComplete
+		
+		xhr - The XMLHttpRequest transport
+		json - The evaluated X-JOSN header object
+	
+	Hook: insertion
+		Called by the constructor after the basic node element has been built.
+		
+		element - The tree node's *span* DOM element
+		data - The *data* value from the <getContents> response
+		
+		Default:
+		|Element.update(element,data)
+
+Group: Flags
+All flags listed here are accessed by *this.<flag>* and initialized to the values on the left.
+
+	loaded - false - The data below this node has been loaded (<loadContents> sets to true, <getContents> sets to false)
+	opening - false - Ajax.Request is in progress (<getContents> sets to true, <getContentsComplete> sets to false)
+
+Group: Functions
+	clearContents - clears the node's children and sets loaded to false
+	deleteChildNode - deletes the given child node from the tree, performing all necessary cleanup
+	deleteSelf - deletes this node from the tree, performing all necessary cleanup
+	dispose - calls clearContents and cleans up the node's events, references, etc..
+	getContents - triggers the Ajax.Request if loaded is true, otherwise, calls clearContents
+	hide - hides the node's element
+	hideChildren - hides all of the node's children's elements and sets the mark's class to 'collapsed'
+	show - shows the node's element
+	showChildren  - shows all of the node's children's elements and sets the mark's class to 'expanded'
+	toggle - calls show/hide as appropriate
+	toggleChildren - calls showChildren/hideChildren as appropriate
+	
+Group: Options
+
+See <Ajax.Tree.Options>
+
+Group: Properties
+All properties are accessed by *this.<property>*.
+
+	children - An Array (with Prototype extensions) of all children of the current node
+	element.treeNode - Reference to the tree node (*this*)
+	parent.treeNode - The node's parent's tree node (if exists, else undefined)
+	type - The tree node's type (string)
+	
+*/
+
+Ajax.Tree.Base = {};
+Ajax.Tree.Base.prototype = {
+	initialize: function(parent,id,type,data){
+		this.type = type || '_root';
+		this.options = this.types[this.type];
+		this.children = [];
+		this.loaded = this.opening = this.root = false;
+		this.disposables = [(this.events = new EventCache())];
+				
+		/* create special purpose root node if parent == null */
+		if(parent == null){
+			this.element = $(id);
+			this.element.addClassName(this.type);
+			this.element.treeNode = this;
+			this.parent = this.element.parentNode || document.body;
+			this.root = true;
+			if(data){
+				if(this.options){ this.options.insertion.call(this, this.element,data.data || data); }
+				if(data.nodes){ this.createNodes(data.nodes); }
+			}
+			return;
+		}		
+		this.parent = $(parent);
+		this.id = id;
+		this.createNode();
+		this.options.insertion.call(this, this.span,data.data || data);
+		
+		
+		/* if this node's parent doesn't have a tree node, create a special purpose one */
+		if(!this.parent.treeNode){ var newNode = new this.constructor(null,this.parent); }
+		this.parent.treeNode.children.push(this);
+		if(data.nodes){ this.createNodes(data.nodes); }
+	},
+	clearContents: function(){
+		while(this.children.length){
+			var node = this.children.shift();
+			node.dispose();
+		}
+		this.loaded = false;
+		this.hideChildren();
+		if(this.options.onClearContents){ this.options.onClearContents.call(this); }
+	},
+	createNode: function(){
+		var linkType = (this.options.leafNode ? 'leaf':'collapsed');
+		var newID = (this.options.prependParentId !== false ? this.parent.id+this.options.prependParentId:'')+this.id;
+		this.mark = Builder.node('span',{className:'mark '+linkType});
+		this.span = Builder.node('span',{className:this.options.className+' treedata'});
+		this.element = Builder.node('div',{id:newID,className:this.options.className+' treenode'},[
+			this.mark,this.span
+		]);
+		this.events.observe(this.mark, 'click', this.onClick.bindAsEventListener(this));
+		if(this.options.mouseOver){
+			this.events.observe(this.span, 'mouseover', this.options.mouseOver.bindAsEventListener(this));
+		}
+		if(this.options.mouseOut){
+			this.events.observe(this.span, 'mouseout', this.options.mouseOut.bindAsEventListener(this));
+		}
+		this.element.treeNode = this;
+		this.parent.appendChild(this.element);
+	},
+	createNodes: function(nodes){
+		this.showChildren();
+		this.loaded = true;
+		for(var i=0; i < nodes.length; i++){
+			var newNode = new this.constructor(this.element,nodes[i].id,nodes[i].type,nodes[i]);
+		}
+		if(nodes.length && this.options.sortable){ this.createSortable(); }
+	},
+	createSortable: function(){
+		//if(!this.options.sortable) return;
+		Sortable.create(this.element,{
+			tag: 'div',
+			only: 'treenode'
+		});
+	},
+	deleteChildNode: function(node){
+		this.children = this.children.without(node);
+		node.dispose();
+	},
+	deleteSelf: function(){
+		if(this.parent.treeNode){ this.parent.treeNode.deleteChildNode(this); }
+		else{ this.dispose(); }
+		if(this.options.onDeleteSelf){ this.options.onDeleteSelf.call(this); }
+	},
+	dispose: function(){
+		//if(this.options.sortable){ Sortable.destroy(this.sortable); }
+		this.clearContents();
+		if(this.options.dispose){ this.options.dispose.call(this); }
+		while(this.disposables.length){ this.disposables.shift().dispose(); }
+		this.element.treeNode = null;
+		this.parent.removeChild(this.element);
+	},
+	getContents: function(onSuccess){
+		if(this.opening || !this.options.page){ return; }
+		this.opening = true;
+		var params = 'action=getContents&' + ((this.options.callback) ? 
+			this.options.callback.call(this, this.element.id) : 'id='+this.element.id);
+		var request = new Ajax.Request(this.options.page,{
+			parameters: params,
+			onComplete: this.getContentsComplete.bind(this),
+			onSuccess: function(xhr,json){
+				if(json && json.error){ Ajax.Tree.showError(json.error); return; }
+				if(!xhr.responseText){ Ajax.Tree.showError('Error, empty response from server'); return; }
+				var data = xhr.responseText.evalJSON();
+				this.clearContents();
+				this.showChildren();
+				this.loadContents(data,json);
+				if(onSuccess) onSuccess();
+			}.bind(this),
+			onFailure: Ajax.Tree.error.ajax
+		});
+		if(this.options.onGetContents){ this.options.onGetContents.call(this, request); }
+	},
+	getContentsComplete: function(xhr,json){
+		this.opening = false;
+		if(this.options.onGetContentsComplete){ this.options.onGetContentsComplete.call(this, xhr, json); }
+	},
+	hide: function(el){
+		Element.hide((el || this).element);
+	},
+	hideChildren: function(){
+		this.children.each(this.hide);
+		Element.removeClassName(this.mark,'expanded');
+		Element.addClassName(this.mark,'collapsed');
+	},
+	loadContents: function(data,json){
+		if(this.options.onLoadContent){ this.options.onLoadContent.call(this, data, json); }
+		if(data.nodes){
+			this.createNodes(data.nodes);
+			if(this.options.onContentLoaded){ this.options.onContentLoaded.call(this, data, json); }
+		}
+	},
+	onClick: function(event){
+		if(this.options.onClick){
+			if(this.options.onClick.call(this, event) === false) return;
+		}
+		if(this.options.page){
+			if(this.loaded){ this.clearContents(); }
+			else{ this.getContents(); }
+		}
+		else if(!this.options.leafNode){ this.toggleChildren(); }
+	},
+	show: function(el){
+		Element.show((el || this).element);
+	},
+	showChildren: function(){
+		this.children.each(this.show);
+		Element.removeClassName(this.mark,'collapsed');
+		Element.addClassName(this.mark,'expanded');
+	},
+	toggle: function(){
+		this.element.visible() ? this.hide() : this.show();
+	},
+	toggleChildren: function(){
+		this.isExpanded() ? this.hideChildren() : this.showChildren();
+	},
+	isExpanded: function(){ return this.mark.hasClassName('expanded'); }
+};
\ No newline at end of file



Mime
View raw message