X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plekit%2Ftable%2Fcolumns.js;h=32dbbf3d5e98383e07885c6e71a53ed291cff46e;hb=d694eb9fdfe0a7bcb9d8fc7b571751475f4227be;hp=daf64d604adef4fabf1cb87c3ca04fbc0af93919;hpb=bbdd2d949c4f1dc8db02dcc184d651f534a7b2a5;p=plewww.git diff --git a/plekit/table/columns.js b/plekit/table/columns.js index daf64d6..32dbbf3 100644 --- a/plekit/table/columns.js +++ b/plekit/table/columns.js @@ -6,272 +6,299 @@ var normal_color = "black"; //Descriptions overriding the default ones set in Accessors_site.py and configuration -var sourceComon = 'CoMon'; -var sourceTophat = 'TopHat'; -var sourceTophatAPI = 'TopHat API'; -var sourceMySlice = 'MySlice'; -var sourceCymru = 'Team Cymru'; -var sourceMyPLC = 'MyPLC API'; -var sourceManiacs = 'MANIACS'; -var sourceMaxmind = 'MaxMind'; -var sourceMonitor = 'Monitor'; -var hardwareReqs = 'current PlanetLab hardware requirement'; -var selectReferenceNode ='Select reference node: '; -//var addButton = ''; -//var deleteButton = ''; +var sourceComon = 'CoMon'; +var sourceTophat = 'TopHat'; +var sourceTophatAPI = 'TopHat API'; +var sourceMySlice = 'MySlice'; +var sourceCymru = 'Team Cymru'; +var sourceSonoma = 'SONoMA'; +var sourceMyPLC = 'MyPLC API'; +var sourceManiacs = 'MANIACS'; +var sourceMaxmind = 'MaxMind'; +var sourceMonitor = 'Monitor'; +var hardwareReqs = 'current PlanetLab hardware requirement'; +var selectReferenceNode ='
'; +var selectReferenceNodeRTT =''; var descHOSTNAME = "test"; - var titleAU = 'Authority'; -var detailAU = 'The authority of the global PlanetLab federation that the site of the node belongs to.'; -var valuesAU = 'Values: PLC (PlanetLab Central), PLE (PlanetLab Europe)'; +var detailAU = 'The authority of the global PlanetLab federation that the site of the node belongs to.'; +var valuesAU = 'PLC (PlanetLab Central), PLE (PlanetLab Europe)'; var sourceAU = 'Source: '+sourceMyPLC; -var descAU = ''+titleAU+''+detailAU+'
'+valuesAU+'
'+sourceAU;
+var descAU = ''+titleAU+' '+detailAU+' Values: '+valuesAU+' Source: '+sourceMyPLC+'
'+valuesST+'
'+sourceST;
+var valuesST = 'Values: online (up and running), good (up and running recently), offline (unreachable today), down (node unreachable for more than one day), failboot (reachable, but only by administrators for debugging purposes).';
+var descST = ''+titleST+' '+valuesST+' '+sourceST+'
'+detailA+'
'+valuesA+'
'+sourceA;
+var valuesA = 'x86_64, i386, n/a';
+var descA = ''+titleA+' '+detailA+' Values: '+valuesA+' '+sourceA+'
'+valuesAS+'
' + sourceAS;
+var valuesAS = 'Values: Integer between 0 and 65535, n/a';
+var descAS = ''+titleAS+' '+valuesAS+' ' + sourceAS+'
'+valuesAST+'
'+sourceAST;
+var valuesAST = 'Values: t1 (tier-1), t2 (tier-2), edu (university), comp (company), nic (network information centre -- old name for a domain name registry operator), ix (IXP), n/a';
+var descAST = ''+titleAST+' '+valuesAST+' '+sourceAST+'
'+sourceASN;
+var descASN = ''+titleASN+' '+sourceASN+'
'+detailBU+'
'+selectPeriodBU+'
'+valuesBU+'
'+sourceBU;
+var valuesBU ='Unit: Kbps';
+var detailBU = 'The average transmited bandwidh over the selected period. The period is the most recent for which data is available, with CoMon data being collected by MySlice daily.'
+var descBU = ''+titleBU+' '+detailBU+' '+selectPeriodBU+' '+valuesBU+' '+sourceBU+'
'+detailBW+'
'+valuesBW+'
'+sourceBW;
+var valuesBW = 'Unit: Kbps';
+var detailBW = 'The bandwidth limit is a cap on the total outbound bandwidth usage of a node. It is set by the site administrator (PI). For more details see Bandwidth Limits (planet-lab.org).';
+var descBW = ''+titleBW+' '+detailBW+' '+valuesBW+' '+sourceBW+'
(Older nodes may have fewer cores).';
-var descCC = ''+titleCC+'
'+valuesCC+'
'+sourceCC;
+var detailCC = 'The number of CPU cores on the node. For reference, the '+hardwareReqs+' is 4 cores min. (Older nodes may have fewer cores).';
+var descCC = ''+titleCC+' '+detailCC+' '+sourceCC+'
'+valuesCN+'
'+sourceCN;
+var detailCN = 'The number of CPUs on the node. For reference, the '+hardwareReqs+' is 1 (if quad core) or 2 (if dual core).';
+var descCN = ''+titleCN+' '+detailCN+' '+sourceCN+' '+detailCPC+' '+sourceCPC+'
'+detailCR+'
'+valuesCR+'
'+sourceCR;
+var valuesCR = 'Unit: GHz';
+var descCR = ''+titleCR+' '+detailCR+' '+valuesCR+' '+sourceCR+'
'+detailCF+'
'+selectPeriodCF+'
'+valuesCF+'
'+sourceCF;
+var valuesCF = 'Unit: %';
+var detailCF = 'The average CPU percentage that gets allocated to a test slice named burb that is periodically run by CoMon.';
+var descCF = ''+titleCF+' '+detailCF+' '+selectPeriodCF+' '+valuesCF+' '+sourceCF+'
'+sourceDN;
+var descDN = ''+titleDN+' '+sourceDN+'
'+detailDA+'
'+sourceDA;
+var detailDA = 'The date that the node was added to PlanetLab.';
+var descDA = ''+titleDA+' '+detailDA+' '+sourceDA+' '+detailDL+' '+valuesDL+' '+sourceDL+'
'+detailDS+'
'+valuesDS+'
'+sourceDS;
+var valuesDS = 'Unit: GB';
+var descDS = ''+titleDS+' '+detailDS+' '+valuesDS+' '+sourceDS+'
'+detailDU+'
'+valuesDU+'
'+sourceDU;
+var sourceDU = 'Source: '+sourceComon;
+var valuesDU = 'Unit: GB';
+var detailDU = 'The amount of disk space currently consumed.';
+var descDU = ''+titleDU+' '+detailDU+' '+valuesDU+' '+sourceDU+'
'+detailDF+'
'+valuesDF+'
'+sourceDF;
+var sourceDF = 'Source: '+sourceComon;
+var valuesDF = 'Unit: GB.';
+var detailDF = 'The amount of disk space currently available.';
+var descDF = ''+titleDF+' '+detailDF+' '+valuesDF+' '+sourceDF+'
'+detailHC+'
'+selectReferenceNode+'
'+sourceHC;
+var detailHC = 'TopHat conducts traceroutes every five minutes in a full mesh between all PlanetLab nodes. The hop count is the length of the traceroute from the node to the reference node, based upon the most recently reported traceroute.';
+var descHC = ''+titleHC+' '+detailHC+' '+selectReferenceNode+' '+sourceHC+'
'+sourceIP;
+var descIP = ''+titleIP+' '+sourceIP+'
'+detailL+'
'+selectPeriodL+'
'+valuesL+'
'+sourceL;
+var valuesL = 'Unit: 5-minute load';
+var detailL = 'The average 5-minute load (as reported by the Unix uptime command) over the selected period.';
+var descL = ''+titleL+' '+detailL+' '+selectPeriodL+' '+valuesL+' '+sourceL+'
'+sourceLON;
+var descLON = ''+titleLON+' '+sourceLON+'
'+sourceLAT;
+var descLAT = ''+titleLAT+' '+sourceLAT+'
'+detailLCN+'
'+sourceLCN;
+var detailLCN = 'Based on the latitude and longitude information.';
+var descLCN = ''+titleLCN+' '+detailLCN+' '+sourceLCN+'
'+detailLCT+'
'+sourceLCT;
+var detailLCT = 'Based on the latitude and longitude information.';
+var descLCT = ''+titleLCT+' '+detailLCT+' '+sourceLCT+'
'+detailLCY+'
'+sourceLCY;
+var detailLCY = 'Based on the latitude and longitude information.';
+var descLCY = ''+titleLCY+' '+detailLCY+' '+sourceLCY+'
'+detailLPR+'
'+valuesLPR+'
'+sourceLPR;
+var valuesLPR = 'Unit: float.';
+var detailLPR = 'The radius of the circle corresponding to the error in precision of the geolocalization estimate.';
+var descLPR = ''+titleLPR+' '+detailLPR+' '+valuesLPR+' '+sourceLPR+'
'+detailLRN+'
'+sourceLRN;
+var detailLRN = 'Based on the latitude and longitude information.';
+var descLRN = ''+titleLRN+' '+detailLRN+' '+sourceLRN+'
'+valuesMS+'
'+sourceMS;
+var valuesMS = 'Unit: GB.';
+var descMS = ''+titleMS+' '+detailMS+' '+valuesMS+' '+sourceMS+'
Unit: %'; -var detailMU = 'The average active memory utilization as reported by CoMon.'; -var descMU = ''+titleMU+'
'+detailMU+'
'+selectPeriodMU+'
'+valuesMU+'
'+sourceMU; - -var titleNEC= 'Network information (ETOMIC)'; -var sourceNEC = 'Source: '+sourceTophat; -var valuesNEC = 'Values: yes/no'; -var detailNEC = 'The existence of a colocated ETOMIC box. When an ETOMIC box is present, you have the possibility to conduct high-precision measurements through the '+sourceTophatAPI+'.'; -var descNEC = ''+titleNEC+'
'+detailNEC+'
'+valuesNEC+'
'+sourceNEC; - -var titleNSN= 'Network information (SONoMA)'; -var sourceNSN = 'Source: '+sourceTophat; -var valuesNSN = 'Values: yes/no'; -var detailNSN = 'The existence of a SONoMA agent. When an SONoMA is present, you have the possibility to have access to high-precision measurements through the '+sourceTophatAPI+'.'; -var descNSN = ''+titleNSN+'
'+detailNSN+'
'+valuesNSN+'
'+sourceNSN; - -var titleNTH= 'Network information (TopHat)'; -var sourceNTH = 'Source: '+sourceTophat; -var valuesNTH = 'Values: yes/no'; -var detailNTH = 'The existence of a colocated TDMI (TopHat Dedicated Measurement Infrastructure) agent. When a TDMI agent is present, you have access to a wide variety of network topology measurements through the '+sourceTophatAPI+'.'; -var descNTH = ''+titleNTH+'
'+detailNTH+'
'+valuesNTH+'
'+sourceNTH; - -var titleNDS= 'Network information (DIMES)'; -var sourceNDS = 'Source: '+sourceTophat; -var valuesNDS = 'Values: yes/no'; -var detailNDS = 'The existence of a colocated DIMES agent. When a DIMES agent is present, you have access to DIMES measurements through the '+sourceTophatAPI+'.'; -var descNDS = ''+titleNDS+'
'+detailNDS+'
'+valuesNDS+'
'+sourceNDS;
+var valuesMU = 'Unit: %';
+var detailMU = 'The average active memory utilization as reported by CoMon.';
+var descMU = ''+titleMU+' '+detailMU+' '+selectPeriodMU+' '+valuesMU+' '+sourceMU+' '+detailMA+' '+valuesMA+' '+sourceMA+' '+detailMAS+' '+valuesMAS+' '+sourceMAS+' '+detailMAE+' '+valuesMAE+' '+sourceMAE+' '+detailMAT+' '+valuesMAT+' '+sourceMAT+' '+detailMAD+' '+valuesMAD+' '+sourceMAD+'
Values: yes/no'; -var detailNSF = ' Whether the node can send packets successfully (or not) with a spoofed IP source address.'; -var descNSF = ''+titleNSF+'
'+detailNSF+'
'+valuesNSF+'
'+sourceNSF;
+var valuesNSF = 'Values: yes/no';
+var detailNSF = 'Whether the node can send packets successfully (or not) with a spoofed IP source address.';
+var descNSF = ''+titleNSF+' '+detailNSF+' '+valuesNSF+' '+sourceNSF+'
Values: yes/no'; -var detailNSR = ' Whether the node can send packets packets using the IP source route option. See herefor more info.'; -var descNSR = ''+titleNSR+'
'+detailNSR+'
'+valuesNSR+'
'+sourceNSR;
+var valuesNSR = 'Values: yes/no';
+var detailNSR = 'Whether the node can send packets packets using the IP source route option. See herefor more info.';
+var descNSR = ''+titleNSR+' '+detailNSR+' '+valuesNSR+' '+sourceNSR+'
Values: yes/no'; -var detailNTP = ' Whether the node can send packets packets using the IP timestamp option. See herefor more info.'; -var descNTP = ''+titleNTP+'
'+detailNTP+'
'+valuesNTP+'
'+sourceNTP;
+var valuesNTP = 'Values: yes/no';
+var detailNTP = 'Whether the node can send packets packets using the IP timestamp option. See herefor more info.';
+var descNTP = ''+titleNTP+' '+detailNTP+' '+valuesNTP+' '+sourceNTP+'
Values: yes/no'; -var detailNRR = ' Whether the node can send packets packets using the IP record route option. See herefor more info.'; -var descNRR = ''+titleNRR+'
'+detailNRR+'
'+valuesNRR+'
'+sourceNRR;
+var valuesNRR = 'Values: yes/no';
+var detailNRR = 'Whether the node can send packets packets using the IP record route option. See herefor more info.';
+var descNRR = ''+titleNRR+' '+detailNRR+' '+valuesNRR+' '+sourceNRR+'
'+valuesOS+'
'+sourceOS;
+var valuesOS = 'Values: f8, f12, Cent/OS, other, n/a';
+var descOS = ''+titleOS+' '+detailOS+' '+valuesOS+' '+sourceOS+' '+detailRTT+' '+selectReferenceNodeRTT+' '+sourceRTT+'
'+detailR+'
'+selectPeriodR+'
'+valuesR+'
'+sourceR;
+var detailR = 'CoMon queries nodes every 5 minutes, for 255 queries per day. The average reliability is the percentage of queries over the selected period for which CoMon reports a value. The period is the most recent for which data is available, with CoMon data being collected by MySlice daily.';
+var valuesR = 'Unit: %';
+var descR = ''+titleR+' '+detailR+' '+selectPeriodR+' '+valuesR+' '+sourceR+'
Your slivers will be available only during timeslots where you have obtained leases (see tab above).
Please note that as of August 2010 this feature is experimental. Feedback is appreciated at devel@planet-lab.org'; -var descRES = ''+titleRES+'
'+detailRES+'
'+valuesRES+'
'+sourceRES; +//var valuesRES = 'Values: yes/no'; +var valuesRES = 'Values: -R- (if yes)'; +var detailRES = 'Whether the node can be reserved for a certain duration. Your slivers will be available only during timeslots where you have obtained leases (see tab above).
Please note that as of August 2010 this feature is experimental. Feedback is appreciated at devel@planet-lab.org
'; +var descRES = ''+titleRES+''+detailRES+'
'+valuesRES+'
'+sourceRES+'
'; var selectPeriodS = 'Select period: '; var titleS = 'Active slices'; var sourceS = 'Source: '+sourceComon+' (via '+sourceMySlice+')'; -var valuesS = 'Unit: %'; -var detailS = 'Average number of active slices over the selected period for which CoMon reports a value. The period is the most recent for which data is available, with CoMon data being collected by MySlice daily.'; -var descS = ''+titleS+''+detailS+'
'+selectPeriodS+'
'+valuesS+'
'+sourceS;
+var valuesS = 'Unit: %';
+var detailS = 'Average number of active slices over the selected period for which CoMon reports a value. The period is the most recent for which data is available, with CoMon data being collected by MySlice daily.';
+var descS = ''+titleS+' '+detailS+' '+selectPeriodS+' '+valuesS+' '+sourceS+' '+detailSM+' '+sourceSM+'
'+sourceSN;
+var descSN = ''+titleSN+' '+sourceSN+'
'+detailSSH+'
'+selectPeriodSSH+'
'+valuesSSH+'
'+sourceSSH;
+var descSSH = ''+titleSSH+' '+detailSSH+' '+selectPeriodSSH+' '+valuesSSH+' '+sourceSSH+'
'+detailUT+'
'+valuesUT+'
'+sourceUT;
+var descUT = ''+titleUT+' '+detailUT+' '+valuesUT+' '+sourceUT+'
data[2] = "+data_table[2]); //debugfilter("data = "+data + " with type "+data_type + " and source "+data_source); +//debugfilter("
data table length = "+data_table.length);
-if (data != "")
+if (data_table.length > 1)
{
-//debugfilter("GOT SOME DATA");
-
var node_data;
var table_id1 = 'nodes';
@@ -774,6 +809,7 @@ if (data != "")
}
}
+ //debugfilter("Reset sorting .....");
//tablePaginater.init(table_id1);
fdTableSort.init(table_id1);
@@ -826,10 +862,10 @@ if (data_table[node_index] == '---potential---')
//fdTableSort.removeTableCache(table_id2);
//document.getElementById('loading'+column).innerHTML = "";
- //debugfilter("Reset sorting .....");
}
+
document.getElementById('loading'+column).innerHTML = "";
}
@@ -859,13 +895,12 @@ function addColumnAjax(column, header) {
var slice_id = document.getElementById('slice_id').value;
var selectedperiod = document.getElementById('period'+column).value;
-
var fetched = document.getElementById('fetched'+column).value;
var data_source = document.getElementById('source'+column).value;
var data_type = document.getElementById('type'+column).value;
var to_load = false;
- //debugfilter("
adding "+column+","+header+','+fetched+','+t);
+ //debugfilter("
adding "+column+","+header+','+fetched+','+t+','+data_source+','+data_type);
if (fetched.indexOf("false")!=-1)
{
@@ -880,8 +915,12 @@ function addColumnAjax(column, header) {
if (to_load)
{
+ //debugfilter("ready to load ... ");
document.getElementById('loading'+column).innerHTML = "";
var url = "/plekit/php/updateColumn.php?slice_id="+slice_id+"&tagName="+t+"&data_type="+data_type+"&data_source="+data_source;
+ if (t == "hopcount")
+ url = url+"&ref_node="+document.getElementById('selected_reference_node').value;
+ //debugfilter("calling "+url);
load_data(column, header, url, data_source, data_type, t);
}
}
@@ -905,8 +944,10 @@ function addColumn(column, fetch) {
if (inTypeD(column)!=-1)
{
- conf = header+":"+document.getElementById('reference_node').value;
- document.getElementById('selected_reference_node').value=document.getElementById('reference_node').value;
+ //conf = header+":"+document.getElementById('reference_node').value;
+ //document.getElementById('selected_reference_node').value=document.getElementById('reference_node').value;
+ conf = header+":"+document.getElementById('refnodeHC').value;
+ document.getElementById('selected_reference_node').value=document.getElementById('refnodeHC').value;
}
else
conf = header;
@@ -947,8 +988,8 @@ function deleteColumn(column) {
}
-/*
+/*
EXTRA