*/
public class SystemInformationEnv{
public static SystemInformationEnvObject getSystemEnv(){
SigarProxy sigar = SigarHolder.getInstance();
SystemInformationEnvObject envObj = new SystemInformationEnvObject();
long[] pids = new long[0];
try {
pids = sigar.getProcList();
} catch (SigarException ex) {
}
for(int i = 0; i < pids.length; i++){
Map env;
try {
env = sigar.getProcEnv(pids[i]);
envObj.addAllEnv(env);
} catch(SigarPermissionDeniedException pEx){
} catch (SigarException ex) {
Logger.getLogger(SystemInformationEnv.class.getName()).log(Level.SEVERE, null, ex);
}