Commit b5c393c2 authored by Antoine Thevenet's avatar Antoine Thevenet
Browse files

The script to recover probes data can be used from a windows PC

parent 29defec2
{
"probes": [
{
"name": "cpu",
"path": "org.ow2.clif.probe.cpu.Insert",
"help": "polling_period_in_milliseconds execution_time_is_seconds"
},
{
"name": "disk",
"path": "org.ow2.clif.probe.disk.Insert",
"help": "polling_period_in_milliseconds execution_time_is_seconds partition_path"
},
{
"name": "jmx_jvm",
"path": "org.ow2.clif.probe.jmx_jvm.Insert",
"help": "polling_period_in_milliseconds execution_time_is_seconds configuration_file"
},
{
"name": "memory",
"path": "org.ow2.clif.probe.memory.Insert",
"help": "polling_period_in_milliseconds execution_time_is_seconds"
},
{
"name": "network",
"path": "org.ow2.clif.probe.network.Insert",
"help": "polling_period_in_milliseconds execution_time_is_seconds network_interface_name_or_IP_address_or_description"
},
{
"name": "rtp",
"path": "org.ow2.clif.probe.rtp.Insert",
"help": "polling_period_in_milliseconds execution_time_is_seconds port_number_or_range"
}
]
}
set basedir = "%~dp0"
type %basedir%/isac-probes.json
......@@ -560,8 +560,6 @@ public class FileSystemStorage {
processBuilder = new ProcessBuilder("retrievePlugins.sh");
}
Process process = processBuilder.start();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
StringBuilder stringBuilder = new StringBuilder();
......@@ -589,8 +587,16 @@ public class FileSystemStorage {
// Os dependant
String osName = System.getProperty("os.name");
ProcessBuilder processBuilder = null;
if (osName.indexOf("win") >= 0) {
processBuilder = new ProcessBuilder("retrieveProbes.bat");
}
else if (osName.indexOf("nix") >= 0 || osName.indexOf("nux") >= 0 || osName.indexOf("aix") >= 0) {
processBuilder = new ProcessBuilder("retrieveProbes.sh");
}
ProcessBuilder processBuilder = new ProcessBuilder("retrieveProbes.sh");
Process process = processBuilder.start();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
StringBuilder stringBuilder = new StringBuilder();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment