Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Frost2012-11-30 09:48:20 -0500
committerChristopher Frost2012-11-30 09:48:20 -0500
commit23f59189d37eb8ef744bb2b0ccffc5b900217572 (patch)
tree6c502d6a381623da4e544ca46f6e386d242fb747 /org.eclipse.virgo.management.console
parent6659f793cbc774c4c6f119bb7747e28a24f639c7 (diff)
downloadorg.eclipse.virgo.kernel-23f59189d37eb8ef744bb2b0ccffc5b900217572.tar.gz
org.eclipse.virgo.kernel-23f59189d37eb8ef744bb2b0ccffc5b900217572.tar.xz
org.eclipse.virgo.kernel-23f59189d37eb8ef744bb2b0ccffc5b900217572.zip
368141 - Enable new admin console to administer nano
Diffstat (limited to 'org.eclipse.virgo.management.console')
-rw-r--r--org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js34
1 files changed, 20 insertions, 14 deletions
diff --git a/org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js b/org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js
index ca18cfe8..181a2523 100644
--- a/org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js
+++ b/org.eclipse.virgo.management.console/src/main/webapp/js/dumps.js
@@ -190,6 +190,8 @@ var DumpViewer = function(){
new TopBar(tableHolder, layoutManager, dataSource).init();
$('#side-bar').height($('#dump-item-content').height() - 32);
});
+ }, function(){
+ controls.append($('<div />').text('Unable to retrieve Bundle data for the state dump, this requires the Virgo Kernel or above.'));
});
};
@@ -255,21 +257,25 @@ var QuasiDataSource = function(dumpFolder){
});
};
- self.updateData = function(callback){
+ self.updateData = function(callback, failCallback){
util.doQuery('exec/org.eclipse.virgo.kernel:type=Medic,name=StateDumpInspector/listBundles/' + self.dumpFolder, function(response){
- self.bundles = {};
- $.each(response.value, function(index, item){
- self.bundles[item.identifier] = { 'SymbolicName': item.symbolicName,
- 'Version': item.version,
- 'Identifier': item.identifier,
- 'State': item.state,
- 'Region': item.region,
- 'Location': item.location,
- 'Fragment': item.fragment,
- 'ExportedPackages': item.exportedPackages,
- 'ImportedPackages': item.importedPackages};
- });
- callback();
+ if(response.value){
+ self.bundles = {};
+ $.each(response.value, function(index, item){
+ self.bundles[item.identifier] = { 'SymbolicName': item.symbolicName,
+ 'Version': item.version,
+ 'Identifier': item.identifier,
+ 'State': item.state,
+ 'Region': item.region,
+ 'Location': item.location,
+ 'Fragment': item.fragment,
+ 'ExportedPackages': item.exportedPackages,
+ 'ImportedPackages': item.importedPackages};
+ });
+ callback();
+ }else{
+ failCallback();
+ }
});
};

Back to the top