Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getParametersFromViewPropertiesSuccessCallback: function (data) {
var properties = Em.get(data, 'parameters'),
sliderConfigs = App.SliderApp.store.all('sliderConfig');
sliderConfigs.forEach(function (model) {
var key = model.get('viewConfigName');
model.set('value', properties[key]);
});
if (properties['view.slider.user'] != null
&& properties['view.slider.user'] != App.get('sliderUser')) {
App.set('sliderUser', properties['view.slider.user']);
}
if (properties['java.home'] != null
&& properties['java.home'] != App.get('javaHome')) {
App.set('javaHome', properties['java.home']);
}
this.initMetricsServerProperties();
this.finishSliderConfiguration(data);
},
cur['jarbase'] = 'jdom-2.0.6';
cur['java.awt.graphicsenv'] = 'sun.awt.Win32GraphicsEnvironment';
cur['java.awt.printerjob'] = 'sun.awt.windows.WPrinterJob';
cur['java.class.path'] = 'C:\\Java8\\git\\jdom\\build\\instrumented;C:\\Java8\\git\\jdom\\build\\junit;C:\\Java8\\git\\jdom\\lib\\jaxen-1.1.6.jar;C:\\Java8\\git\\jdom\\lib\\xercesImpl.jar;C:\\Java8\\git\\jdom\\lib\\xml-apis.jar;C:\\Java8\\git\\jdom\\lib\\junit-4.8.2.jar;C:\\Java8\\git\\jdom\\contrib\\lib\\isorelax.jar;C:\\Java8\\git\\jdom\\lib\\xalan\\xalan-2.7.2.jar;C:\\Java8\\git\\jdom\\lib\\xalan\\serializer-2.7.2.jar;C:\\Java8\\git\\jdom\\build\\core;C:\\Java8\\git\\jdom\\build\\contrib;C:\\Java8\\git\\jdom\\lib\\cobertura\\asm-3.0.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\asm-tree-3.0.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\cobertura.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\jakarta-oro-2.0.8.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\log4j-1.2.9.jar;C:\\Java8\\git\\jdom;C:\\Java\\jre1.5.0_21\\lib\\ext\\QTJava.zip;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant-launcher.jar;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant.jar;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant-junit.jar;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant-junit4.jar';
cur['java.class.version'] = '51.0';
cur['java.endorsed.dirs'] = 'C:\\Java\\jdk1.7.0_75\\jre\\lib\\endorsed';
cur['java.ext.dirs'] = 'C:\\Java\\jdk1.7.0_75\\jre\\lib\\ext;C:\\windows\\Sun\\Java\\lib\\ext';
cur['java.home'] = 'C:\\Java\\jdk1.7.0_75\\jre';
cur['java.io.tmpdir'] = 'C:\\Users\\rolf\\AppData\\Local\\Temp\\';
cur['java.library.path'] = 'C:\\Java\\jdk1.7.0_75\\jre\\bin;C:\\windows\\Sun\\Java\\bin;C:\\windows\\system32;C:\\windows;C:/eclipse-java8/jre/bin/server;C:/eclipse-java8/jre/bin;C:/eclipse-java8/jre/lib/amd64;C:\\ProgramData\\Oracle\\Java\\javapath;c:\\Program Files (x86)\\Intel\\iCLS Client\\;c:\\Program Files\\Intel\\iCLS Client\\;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;c:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\Intel\\OpenCL SDK\\2.0\\bin\\x86;C:\\Program Files (x86)\\Intel\\OpenCL SDK\\2.0\\bin\\x64;C:\\Program Files (x86)\\GNU\\GnuPG\\pub;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files (x86)\\Calibre2\\;C:\\eclipse-java8;;.';
cur['java.runtime.name'] = 'Java(TM) SE Runtime Environment';
cur['java.runtime.version'] = '1.7.0_75-b13';
cur['java.specification.name'] = 'Java Platform API Specification';
cur['java.specification.vendor'] = 'Oracle Corporation';
cur['java.specification.version'] = '1.7';
cur['java.vendor'] = 'Oracle Corporation';
prepareDBCheckAction: function() {
var ambariProperties = null;
var properties = this.get('content.serviceProperties');
var params = this.get('preparedDBProperties');
ambariProperties = App.router.get('clusterController.ambariProperties');
params['db_name'] = this.get('dbType');
params['jdk_location'] = ambariProperties['jdk_location'];
params['jdk_name'] = ambariProperties['jdk.name'];
params['java_home'] = ambariProperties['java.home'];
params['threshold'] = 60;
params['ambari_server_host'] = location.hostname;
params['check_execute_list'] = "db_connection_check";
App.ajax.send({
name: 'custom_action.create',
sender: this,
data: {
requestInfo: {
"context": "Check host",
"action": "check_host",
"parameters": params
},
filteredHosts: [this.get('content.reassignHosts.target')]
},
getParametersFromViewPropertiesSuccessCallback: function (data) {
var properties = Em.get(data, 'parameters'),
sliderConfigs = App.SliderApp.store.all('sliderConfig');
sliderConfigs.forEach(function (model) {
var key = model.get('viewConfigName');
model.set('value', properties[key]);
});
if (properties['view.slider.user'] != null
&& properties['view.slider.user'] != App.get('sliderUser')) {
App.set('sliderUser', properties['view.slider.user']);
}
if (properties['java.home'] != null
&& properties['java.home'] != App.get('javaHome')) {
App.set('javaHome', properties['java.home']);
}
this.initMetricsServerProperties();
this.finishSliderConfiguration(data);
},
cur['jarbase'] = 'jdom-2.0.6';
cur['java.awt.graphicsenv'] = 'sun.awt.Win32GraphicsEnvironment';
cur['java.awt.printerjob'] = 'sun.awt.windows.WPrinterJob';
cur['java.class.path'] = 'C:\\Java8\\git\\jdom\\build\\instrumented;C:\\Java8\\git\\jdom\\build\\junit;C:\\Java8\\git\\jdom\\lib\\jaxen-1.1.6.jar;C:\\Java8\\git\\jdom\\lib\\xercesImpl.jar;C:\\Java8\\git\\jdom\\lib\\xml-apis.jar;C:\\Java8\\git\\jdom\\lib\\junit-4.8.2.jar;C:\\Java8\\git\\jdom\\contrib\\lib\\isorelax.jar;C:\\Java8\\git\\jdom\\lib\\xalan\\xalan-2.7.2.jar;C:\\Java8\\git\\jdom\\lib\\xalan\\serializer-2.7.2.jar;C:\\Java8\\git\\jdom\\build\\core;C:\\Java8\\git\\jdom\\build\\contrib;C:\\Java8\\git\\jdom\\lib\\cobertura\\asm-3.0.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\asm-tree-3.0.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\cobertura.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\jakarta-oro-2.0.8.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\log4j-1.2.9.jar;C:\\Java8\\git\\jdom;C:\\Java\\jre1.5.0_21\\lib\\ext\\QTJava.zip;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant-launcher.jar;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant.jar;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant-junit.jar;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant-junit4.jar';
cur['java.class.version'] = '51.0';
cur['java.endorsed.dirs'] = 'C:\\Java\\jdk1.7.0_75\\jre\\lib\\endorsed';
cur['java.ext.dirs'] = 'C:\\Java\\jdk1.7.0_75\\jre\\lib\\ext;C:\\windows\\Sun\\Java\\lib\\ext';
cur['java.home'] = 'C:\\Java\\jdk1.7.0_75\\jre';
cur['java.io.tmpdir'] = 'C:\\Users\\rolf\\AppData\\Local\\Temp\\';
cur['java.library.path'] = 'C:\\Java\\jdk1.7.0_75\\jre\\bin;C:\\windows\\Sun\\Java\\bin;C:\\windows\\system32;C:\\windows;C:/eclipse-java8/jre/bin/server;C:/eclipse-java8/jre/bin;C:/eclipse-java8/jre/lib/amd64;C:\\ProgramData\\Oracle\\Java\\javapath;c:\\Program Files (x86)\\Intel\\iCLS Client\\;c:\\Program Files\\Intel\\iCLS Client\\;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;c:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\Intel\\OpenCL SDK\\2.0\\bin\\x86;C:\\Program Files (x86)\\Intel\\OpenCL SDK\\2.0\\bin\\x64;C:\\Program Files (x86)\\GNU\\GnuPG\\pub;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files (x86)\\Calibre2\\;C:\\eclipse-java8;;.';
cur['java.runtime.name'] = 'Java(TM) SE Runtime Environment';
cur['java.runtime.version'] = '1.7.0_75-b13';
cur['java.specification.name'] = 'Java Platform API Specification';
cur['java.specification.vendor'] = 'Oracle Corporation';
cur['java.specification.version'] = '1.7';
cur['java.vendor'] = 'Oracle Corporation';
prepareDBCheckAction: function() {
var params = this.get('preparedDBProperties');
var ambariProperties = App.router.get('clusterController.ambariProperties');
params['db_name'] = this.get('dbType');
params['jdk_location'] = ambariProperties['jdk_location'];
params['jdk_name'] = ambariProperties['jdk.name'];
params['java_home'] = ambariProperties['java.home'];
params['threshold'] = 60;
params['ambari_server_host'] = location.hostname;
params['check_execute_list'] = "db_connection_check";
App.ajax.send({
name: 'cluster.custom_action.create',
sender: this,
data: {
requestInfo: {
"context": "Check host",
"action": "check_host",
"parameters": params
},
filteredHosts: [this.get('content.reassignHosts.target')]
},
cur['jarbase'] = 'jdom-2.0.6';
cur['java.awt.graphicsenv'] = 'sun.awt.Win32GraphicsEnvironment';
cur['java.awt.printerjob'] = 'sun.awt.windows.WPrinterJob';
cur['java.class.path'] = 'C:\\Java8\\git\\jdom\\build\\instrumented;C:\\Java8\\git\\jdom\\build\\junit;C:\\Java8\\git\\jdom\\lib\\jaxen-1.1.6.jar;C:\\Java8\\git\\jdom\\lib\\xercesImpl.jar;C:\\Java8\\git\\jdom\\lib\\xml-apis.jar;C:\\Java8\\git\\jdom\\lib\\junit-4.8.2.jar;C:\\Java8\\git\\jdom\\contrib\\lib\\isorelax.jar;C:\\Java8\\git\\jdom\\lib\\xalan\\xalan-2.7.2.jar;C:\\Java8\\git\\jdom\\lib\\xalan\\serializer-2.7.2.jar;C:\\Java8\\git\\jdom\\build\\core;C:\\Java8\\git\\jdom\\build\\contrib;C:\\Java8\\git\\jdom\\lib\\cobertura\\asm-3.0.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\asm-tree-3.0.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\cobertura.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\jakarta-oro-2.0.8.jar;C:\\Java8\\git\\jdom\\lib\\cobertura\\log4j-1.2.9.jar;C:\\Java8\\git\\jdom;C:\\Java\\jre1.5.0_21\\lib\\ext\\QTJava.zip;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant-launcher.jar;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant.jar;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant-junit.jar;C:\\eclipse-java8\\plugins\\org.apache.ant_1.9.2.v201404171502\\lib\\ant-junit4.jar';
cur['java.class.version'] = '51.0';
cur['java.endorsed.dirs'] = 'C:\\Java\\jdk1.7.0_75\\jre\\lib\\endorsed';
cur['java.ext.dirs'] = 'C:\\Java\\jdk1.7.0_75\\jre\\lib\\ext;C:\\windows\\Sun\\Java\\lib\\ext';
cur['java.home'] = 'C:\\Java\\jdk1.7.0_75\\jre';
cur['java.io.tmpdir'] = 'C:\\Users\\rolf\\AppData\\Local\\Temp\\';
cur['java.library.path'] = 'C:\\Java\\jdk1.7.0_75\\jre\\bin;C:\\windows\\Sun\\Java\\bin;C:\\windows\\system32;C:\\windows;C:/eclipse-java8/jre/bin/server;C:/eclipse-java8/jre/bin;C:/eclipse-java8/jre/lib/amd64;C:\\ProgramData\\Oracle\\Java\\javapath;c:\\Program Files (x86)\\Intel\\iCLS Client\\;c:\\Program Files\\Intel\\iCLS Client\\;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;c:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\Intel\\OpenCL SDK\\2.0\\bin\\x86;C:\\Program Files (x86)\\Intel\\OpenCL SDK\\2.0\\bin\\x64;C:\\Program Files (x86)\\GNU\\GnuPG\\pub;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files (x86)\\Calibre2\\;C:\\eclipse-java8;;.';
cur['java.runtime.name'] = 'Java(TM) SE Runtime Environment';
cur['java.runtime.version'] = '1.7.0_75-b13';
cur['java.specification.name'] = 'Java Platform API Specification';
cur['java.specification.vendor'] = 'Oracle Corporation';
cur['java.specification.version'] = '1.7';
cur['java.vendor'] = 'Oracle Corporation';
info: [
{
"name": "JVM信息",
"value": sysInfo["java.runtime.name"] + " " + sysInfo["java.runtime.version"] + " " + sysInfo["java.vm.name"]
}, {
"name": "JVM版本",
"value": sysInfo["java.version"]
}, {
"name": "JVM厂商",
"value": sysInfo["java.vendor"]
}, {
"name": "厂商网址",
"value": sysInfo["java.vendor.url"]
}, {
"name": "JAVA_HOME",
"value": sysInfo["java.home"]
}, {
"name": "X86/X64",
"value": sysInfo["sun.arch.data.model"]
}
]
}
});
//环境模块渲染
if (sysInfo != undefined)
var envInfo = new Vue({
el: '#EnvInfo',
data: {
info: [
{
"name": "临时目录",
cur['jar.dir'] = 'C:\\work\\eclipse-workspaces\\workspace-simontuffs\\one-jar\\build\\jars';
cur['java.awt.graphicsenv'] = 'sun.awt.Win32GraphicsEnvironment';
cur['java.awt.printerjob'] = 'sun.awt.windows.WPrinterJob';
cur['java.class.path'] = 'C:\\work\\eclipse-workspaces\\workspace-simontuffs\\one-jar\\dist\\one-jar-example-ext-0.96.jar;C:\\work\\eclipse-workspaces\\workspace-simontuffs\\one-jar\\build\\ant\\test;C:\\Program Files\\Altova\\xmlspy\\XMLSpyInterface.jar;C:\\work\\eclipse-3.1.1\\eclipse\\plugins\\org.junit_3.8.1\\junit.jar;C:\\work\\eclipse-3.3\\eclipse-install\\plugins\\org.apache.ant_1.7.0.v200706080842\\lib\\ant-launcher.jar;C:\\work\\eclipse-3.3\\eclipse-install\\plugins\\org.apache.ant_1.7.0.v200706080842\\lib\\ant.jar;C:\\work\\eclipse-3.3\\eclipse-install\\plugins\\org.apache.ant_1.7.0.v200706080842\\lib\\ant-junit.jar';
cur['java.class.version'] = '48.0';
cur['java.endorsed.dirs'] = 'C:\\j2sdk1.4.2_04\\jre\\lib\\endorsed';
cur['java.ext.dirs'] = 'C:\\j2sdk1.4.2_04\\jre\\lib\\ext';
cur['java.home'] = 'C:\\j2sdk1.4.2_04\\jre';
cur['java.io.tmpdir'] = 'C:\\DOCUME~1\\simon\\LOCALS~1\\Temp\\';
cur['java.library.path'] = 'C:\\j2sdk1.4.2_04\\jre\\bin;.;C:\\WINDOWS\\System32;C:\\WINDOWS;C:\\Program Files\\Java\\jre1.6.0_01\\bin\\client;C:\\Program Files\\Java\\jre1.6.0_01\\bin;C:\\Program Files\\Java\\jre1.6.0_01\\bin\\client;C:\\Program Files\\Java\\jre1.6.0_01\\bin;C:\\Program Files\\Java\\jre1.6.0_01\\bin\\client;C:\\Program Files\\Java\\jre1.6.0_01\\bin;C:\\Program Files\\Java\\jre1.6.0_01\\bin\\client;C:\\Program Files\\Java\\jre1.6.0_01\\bin;C:\\Program Files\\Java\\jre1.6.0_01\\bin\\client;C:\\Program Files\\Java\\jre1.6.0_01\\bin;C:\\Program Files\\Java\\jre1.6.0_01\\bin\\client;C:\\Program Files\\Java\\jre1.6.0_01\\bin;C:\\Program Files\\Java\\jre1.6.0_01\\bin\\client;C:\\Program Files\\Java\\jre1.6.0_01\\bin;C:\\Program Files\\Java\\jre1.6.0_01\\bin\\client;C:\\Program Files\\Java\\jre1.6.0_01\\bin;C:\\Perl\\bin\\;c:\\jdj1.5.0_03\\bin;c:\\cygwin\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program Files\\Microsoft SQL Server\\80\\Tools\\Binn\\;C:\\Program Files\\cvsnt;C:\\Program Files\\Perforce;%QUARTUS_ROOTDIR%\\bin;C:\\Program Files\\rainingdata\\tigerlogic\\xdms\\libs\\jre\\bin\\server;C:\\Program Files\\rainingdata\\tigerlogic\\xdms\\libs\\jre\\bin\\server;C:\\Program Files\\Subversion\\bin;C:\\altera\\61\\modelsim_ae\\win32aloem;c:\\work\\eclipse-3.1.1\\tptp-4.1.0-20051018\\agent\\bin;C:\\jwsdp-1.5\\jwsdp-shared\\bin;C:\\jwsdp-1.4\\jwsdp-shared\\bin;C:\\Sun\\SJSAS-7-1\\bin;C:\\jwsdp-1.3\\jwsdp-shared\\bin;C:\\Program Files\\OpenVPN\\bin';
cur['java.runtime.name'] = 'Java(TM) 2 Runtime Environment, Standard Edition';
cur['java.runtime.version'] = '1.4.2_04-b05';
cur['java.specification.name'] = 'Java Platform API Specification';
cur['java.specification.vendor'] = 'Sun Microsystems Inc.';
cur['java.specification.version'] = '1.4';
cur['java.util.prefs.PreferencesFactory'] = 'java.util.prefs.WindowsPreferencesFactory';
getJDKNameSuccessCallback: function (data) {
this.set('needJDKCheckOnHosts', !data.RootServiceComponents.properties["jdk.name"]);
this.set('jdkLocation', Em.get(data, "RootServiceComponents.properties.jdk_location"));
this.set('javaHome', data.RootServiceComponents.properties["java.home"]);
},