Commit Graph

868 Commits

Author SHA1 Message Date
Doug MacEachern fa5bea7363 call methods directly instead of using SigarInvokerJMX 2006-03-04 07:07:33 +00:00
Doug MacEachern 296af07277 add MemResident and MemPageFaults 2006-03-04 03:29:21 +00:00
Doug MacEachern 9a7d971c3b add jmx package 2006-03-04 03:28:55 +00:00
Doug MacEachern c13a918e32 rid eclipse warnings 2006-03-04 03:17:05 +00:00
Doug MacEachern 0ef68e8beb remove vsize and rss 2006-03-04 02:44:27 +00:00
Doug MacEachern 5e2271ca59 deprecating ProcMem.getVsize, ProcMem.getSize will be the same on all.
deprecating ProcMem.getRss, ProcMem.getResident will be the same on all.
2006-03-04 02:34:01 +00:00
Doug MacEachern f9f8509fc1 leave setExpire as a deprecated stub for back-compat 2006-03-02 01:45:51 +00:00
Doug MacEachern d78cb4a0c3 remove per-type expire time, clunky and doesnt work on types w/ args 2006-03-02 01:43:13 +00:00
Doug MacEachern c590a913fa remove unused var 2006-03-02 01:41:47 +00:00
Doug MacEachern 8993abbd98 add isLoopback method 2006-03-02 01:29:13 +00:00
Doug MacEachern 848dcc5093 maintain 'last' Cpu pointers in the getCpuPerc methods rather than the getCpu
methods.
2006-03-02 00:35:31 +00:00
Doug MacEachern b8a3cde988 add main method to test CpuPerc 2006-03-02 00:25:24 +00:00
Doug MacEachern 44e27c9d7d better logging 2006-03-01 22:09:33 +00:00
Doug MacEachern 9965f09f1c fix cache 2006-03-01 22:08:12 +00:00
Doug MacEachern 00a7b17f94 adjustments for ipv6 2006-02-28 20:53:58 +00:00
Doug MacEachern bfad6a3193 add some ipv6 stuff 2006-02-28 20:52:55 +00:00
Doug MacEachern 041ab0034f add getNetListenAddress method 2006-02-28 19:24:04 +00:00
Doug MacEachern c97c11fe4b add loopback constants 2006-02-28 19:18:46 +00:00
Doug MacEachern 6e7cf6f585 re-enable getGarbage test 2006-02-28 18:44:15 +00:00
Doug MacEachern fb9d624b0c add getNetInterfaceConfig() util to get default ethernet config 2006-02-28 18:37:55 +00:00
Doug MacEachern 52f138031f add NetFlags.ANY_ADDR 2006-02-27 22:48:33 +00:00
Doug MacEachern 9f1fa65239 add RPC.strerror 2006-02-27 01:47:41 +00:00
Doug MacEachern f0cdd946c5 change rpc_ping to return the status code 2006-02-27 01:33:12 +00:00
Doug MacEachern 4bd1621076 move NFS_PROGRAM constant here 2006-02-27 00:44:42 +00:00
Doug MacEachern b07fd54671 add mapping from /etc/rpc 2006-02-27 00:43:55 +00:00
Doug MacEachern 797d9c1a13 make parser package access 2006-02-27 00:40:36 +00:00
Doug MacEachern 7d2596e0fe make service parser more generic 2006-02-27 00:22:03 +00:00
Doug MacEachern b3fda3e6c1 replace nfs_ping with generic rpc_ping 2006-02-26 23:31:07 +00:00
Doug MacEachern 88ea672ba6 always print totals for comparision 2006-02-08 18:09:39 +00:00
Doug MacEachern c94556a2e0 remove SynchronizedSigar 2006-01-23 05:04:16 +00:00
Doug MacEachern 79c01a041b add getNetConnectionList 2006-01-23 05:00:47 +00:00
Doug MacEachern 238045723a try ProcExe 2006-01-22 22:12:09 +00:00
Doug MacEachern 38e5a2ff35 add ProcUtil.getDescription 2006-01-22 22:07:18 +00:00
Doug MacEachern a4ccf9a36b cleanup based on eclipse warnings 2006-01-22 21:56:45 +00:00
Doug MacEachern 294c539f16 keep track of states per-ip 2006-01-22 21:47:27 +00:00
Doug MacEachern 021fb5183e move getJavaMainClass to ProcUtil class 2006-01-22 21:43:19 +00:00
Doug MacEachern 6bfbfad766 add pause/resume service controls 2006-01-17 21:44:37 +00:00
Doug MacEachern 1be17d8e6d absolute path required for FindExecutable 2006-01-16 17:58:40 +00:00
Doug MacEachern b452be5c40 treat exe same as cwd, skip assertion if empty 2006-01-16 00:36:06 +00:00
Doug MacEachern 29b59a0d2b if counter name does not exist, try w/ "/sec" appended 2006-01-16 00:33:01 +00:00
Doug MacEachern 9ba9ce1a23 -Dsigar.testVerbose=true will turn on verbose 2006-01-13 18:46:13 +00:00
Doug MacEachern 83d4958bb0 add win32 methods to help find exe associated w/ a script extension 2006-01-10 22:37:27 +00:00
Doug MacEachern 1ec36664bc support mapping of os impl errors to Sigar*Exception classes 2006-01-04 22:45:31 +00:00
Doug MacEachern ee0f0c774a skip Totals if there is only 1 cpu 2006-01-02 17:07:54 +00:00
Doug MacEachern 526ee37bcb fix compile on freebsd 4.x 2005-12-31 18:43:09 +00:00
Doug MacEachern 0d2a149924 refactor interaction with windows dlls 2005-12-20 23:09:34 +00:00
Doug MacEachern c2b8921196 filter out some files 2005-12-20 01:48:02 +00:00
Doug MacEachern 54105b5eb3 if -jar, try to get Main-Class from jar manifest 2005-12-16 21:37:26 +00:00
Doug MacEachern 430962a988 if -jar, use the jar name since no classname will be specified 2005-12-16 20:14:11 +00:00
Doug MacEachern 97a31a24f5 add native version/build date 2005-12-16 01:20:17 +00:00
Doug MacEachern e014912280 (Final) is not a codename 2005-12-15 23:35:36 +00:00
Doug MacEachern 9166277502 comment 2005-12-14 03:02:19 +00:00
Doug MacEachern b4256d7aac fix comment 2005-12-14 03:01:29 +00:00
Doug MacEachern 7162f1c590 add du command 2005-12-14 02:59:05 +00:00
Doug MacEachern 2e7bb972fd add DirUsage 2005-12-14 02:58:26 +00:00
Doug MacEachern ab3abd5119 add dir_stat.disk_usage 2005-12-14 01:28:44 +00:00
Doug MacEachern 142721a52f provide option to use sudo to read the file 2005-12-08 20:46:09 +00:00
Doug MacEachern d9a2f6f284 InputStream wrapper to read files w/ sudo 2005-12-08 20:45:32 +00:00
Doug MacEachern 1921b62a7b fix osx description 2005-12-01 22:40:13 +00:00
Doug MacEachern 1e307231d7 proc_mem.page_faults for darwin 2005-11-28 17:50:43 +00:00
Doug MacEachern 14677ee1b8 add pinfo command to view all proc fields 2005-11-23 19:46:19 +00:00
Doug MacEachern 504ad65e3d use ProcState.toString 2005-11-23 19:34:47 +00:00
Doug MacEachern a939985b5d generate toMap and toString methods 2005-11-23 19:33:12 +00:00
Doug MacEachern 02ccb0c023 doc 2005-11-23 18:04:16 +00:00
Doug MacEachern 530157168d add proc_mem page fault metrics 2005-11-23 17:39:28 +00:00
Doug MacEachern 663abf6ceb test all pids 2005-11-23 17:24:24 +00:00
Doug MacEachern c0b7bfffc0 plat doc 2005-11-23 16:27:42 +00:00
Doug MacEachern 2a460dbff6 beef++ 2005-11-23 03:09:23 +00:00
Doug MacEachern 6b7a36f521 add proc_state.processor 2005-11-23 01:16:52 +00:00
Doug MacEachern 3b07e0933e doc ProcState.getThreads supported platforms 2005-11-23 00:41:33 +00:00
Doug MacEachern 2a6c6d566a print priority 2005-11-22 22:22:13 +00:00
Doug MacEachern fb61a2ebb0 add proc_state.threads metric 2005-11-22 21:45:45 +00:00
Doug MacEachern 5ae081f7a9 make calculate method public 2005-11-21 22:22:15 +00:00
Doug MacEachern fbc109eee3 include wait time in getCombined 2005-11-21 22:01:21 +00:00
Doug MacEachern bb478479b2 add support for IFF_SLAVE flag (used by vmnic) 2005-11-18 18:26:52 +00:00
Doug MacEachern 583922f3d0 use NetInterfaceConfig.getType() 2005-11-18 18:09:12 +00:00
Doug MacEachern e8e6f86666 add NetInterfaceConfig.getType() 2005-11-18 18:08:49 +00:00
Doug MacEachern 21e504babe backout debug turd 2005-11-17 02:51:50 +00:00
Doug MacEachern 05624b41cb dont bail in net_interface_config_get if address query fails (e.g. vmnic1) 2005-11-17 02:50:37 +00:00
Doug MacEachern 134a80e9a3 start thread after watcher is added 2005-11-14 18:32:20 +00:00
Doug MacEachern 4f4cb3643b change diff format to better suit HQ 2005-11-14 18:31:07 +00:00
Doug MacEachern 16fcee7b8c fix ctime diff 2005-11-12 01:06:51 +00:00
Doug MacEachern 0b8fa1438a setup/shutdown dmalloc 2005-11-09 18:38:33 +00:00
Doug MacEachern 94d3d82aab more changes to avoid dmalloc reporting leaks 2005-11-09 18:22:00 +00:00
Doug MacEachern 0dfdef864c use new Sigar for getFQDN 2005-11-09 18:05:16 +00:00
Doug MacEachern aa28742fdd more sigar.close for dmalloc 2005-11-09 17:31:16 +00:00
Doug MacEachern 3a822b7d4f sigar.close() on shutdown else dmalloc complains of leaks 2005-11-09 16:53:09 +00:00
Doug MacEachern a77e9a63b3 doc update 2005-11-01 19:16:12 +00:00
Doug MacEachern 12752e0f6a include sigar_util.h 2005-10-10 20:17:28 +00:00
Doug MacEachern 77df863144 sigar_t already has a handle to advapi32.dll, use it 2005-10-10 20:15:12 +00:00
Doug MacEachern d5558f8487 refresh jsigar->env pointer used for logging 2005-10-10 20:01:29 +00:00
Doug MacEachern fadcfdcbf5 add getInstance() for back-compat 2005-10-07 20:55:44 +00:00
Doug MacEachern 406cc69036 include totals from Sigar.getCpuPerc() 2005-09-28 15:56:57 +00:00
Doug MacEachern 753d627296 turn on native logging w/ -Dsigar.nativeLogging=true 2005-09-28 03:20:33 +00:00
Doug MacEachern 4359ca4fce fix compile 2005-09-24 22:59:53 +00:00
Doug MacEachern 129bb7e80b add stopAndWait backcompat method 2005-09-24 22:58:26 +00:00
Doug MacEachern 7de3ef0517 dont read every record unless verbose 2005-09-24 21:17:19 +00:00
Doug MacEachern d4f0bab72e various fixes 2005-09-24 21:16:29 +00:00
Doug MacEachern a07fe311f8 javadoc fixup 2005-09-24 21:02:21 +00:00
Doug MacEachern f6a9d2ff3e beef up tests 2005-09-24 20:34:30 +00:00
Doug MacEachern e71a9e5b3e EventLogRecord.message fixes 2005-09-24 04:37:55 +00:00
Doug MacEachern 34db9d884b use EventLog constants 2005-09-24 03:35:09 +00:00
Doug MacEachern 47cc3db671 change case of constants, windows is insenstive, better this way for display purposes 2005-09-24 01:45:29 +00:00
Doug MacEachern 67f3334250 rename EventLogRecord.getStringData() to getMessage() 2005-09-24 00:24:49 +00:00
Doug MacEachern 80fa6f52eb fix typo 2005-09-24 00:16:52 +00:00
Doug MacEachern 624f93de8a ensure null termination 2005-09-23 02:38:49 +00:00
Doug MacEachern 288bd907f2 fix EventLogRecord.stringData 2005-09-23 02:31:43 +00:00
Doug MacEachern f0d6eba45d print logdir 2005-09-23 00:13:16 +00:00
Doug MacEachern 236363efa8 change getStringValue to try EXPANDSZ_METADATA if STRING_METADATA fails 2005-09-23 00:12:58 +00:00
Doug MacEachern 1bc0ecade2 save a reference to log name and pass around internally 2005-09-23 00:11:55 +00:00
Doug MacEachern c0c77a83b3 fix compile 2005-09-23 00:10:53 +00:00
Doug MacEachern c28ab5253a some fixes for EventLogRecord.stringData 2005-09-22 17:10:27 +00:00
Doug MacEachern e65b3f3068 misc minor cleanups 2005-09-22 15:32:22 +00:00
Doug MacEachern 1ac57c1137 add log name constants 2005-09-22 15:28:39 +00:00
Doug MacEachern 48c96918d8 synchronize on logs 2005-09-21 23:00:36 +00:00
Doug MacEachern 7d77935ffe change getInstance to take arg for name of the log 2005-09-21 22:57:54 +00:00
Doug MacEachern 3b91001651 add main method to watch event logs 2005-09-21 22:51:41 +00:00
Doug MacEachern 09f3af2f3e update agent queries 2005-09-21 22:51:10 +00:00
Doug MacEachern f11c79da7e print current user 2005-09-13 03:42:17 +00:00
Doug MacEachern cdd9211475 netware stuff 2005-08-28 06:49:00 +00:00
Doug MacEachern fd7a5001e0 no SIGINT on NetWare 2005-08-28 06:22:10 +00:00
Doug MacEachern 8fc1facb28 generate netware exports from javasigar.c 2005-08-28 06:00:27 +00:00
Doug MacEachern 59ec9d00e1 generate .def file for netware 2005-08-28 05:49:29 +00:00
Doug MacEachern c3ca0a22fb use auto-format printf 2005-07-24 18:24:20 +00:00
Doug MacEachern 32b8a5d334 use printf 2005-07-24 18:11:09 +00:00
Doug MacEachern bccdccdee0 auto-format printf if no format is specified 2005-07-24 18:08:04 +00:00
Doug MacEachern 31f138dd0b handle time == 0 2005-07-24 05:01:08 +00:00
Doug MacEachern 4eca5b0aa0 add pipe_size to resource_limit 2005-07-22 02:26:48 +00:00
Doug MacEachern 065cc2937d use system property for dumpClass 2005-07-22 01:42:56 +00:00
Doug MacEachern 081c28ff77 support -H flag for hard limits 2005-07-22 01:04:51 +00:00
Doug MacEachern 114c26d6c6 use invoker 2005-07-22 01:01:23 +00:00
Doug MacEachern 56aa4553f5 remove resource_limit.ulimited, switch to ResourceLimit.INFINITY 2005-07-21 23:34:36 +00:00
Doug MacEachern cad4b55102 skip loaded rc msg unless isatty 2005-07-21 04:54:42 +00:00
Doug MacEachern f37fc926f5 break loop if not isatty 2005-07-21 04:53:27 +00:00
Doug MacEachern a7b4acb4bb include unistd.h for isatty 2005-07-21 04:39:35 +00:00
Doug MacEachern f1b13601a2 add isatty method. only useNative if isatty 2005-07-21 04:37:45 +00:00
Doug MacEachern 1f6fabc9c1 add isatty method 2005-07-21 04:36:53 +00:00
Doug MacEachern c6dd77749b make sigar instance static for getSigar() 2005-07-21 04:13:10 +00:00
Doug MacEachern 4e27c142d0 print filesystem and netif names 2005-07-21 03:06:14 +00:00
Doug MacEachern fd5d821940 add FileSystem.toString 2005-07-21 03:04:27 +00:00
Doug MacEachern 186ec234fc only print cpuinfo once, it'll be the same for each 2005-07-21 02:57:15 +00:00
Doug MacEachern 4682ff2eab remove newline 2005-07-21 02:44:12 +00:00
Doug MacEachern 447d2410b0 print version info once when run w/ 'time 10 test' 2005-07-21 02:37:10 +00:00
Doug MacEachern b8a145e95f SunOS 5.6 == Solaris 2.6 2005-07-21 02:29:40 +00:00
Doug MacEachern 2246f7e747 allow int arg to specific number of iterations 2005-07-21 02:15:46 +00:00
Doug MacEachern a3e6120bc7 catch getNetInterfaceConfig 2005-07-21 00:23:47 +00:00
Doug MacEachern bad3fb89fc remove unused import 2005-07-19 17:07:05 +00:00
Doug MacEachern dc8f31deb8 fix indent 2005-07-17 20:12:42 +00:00
Doug MacEachern 0410f0e457 tests for recent stuff 2005-07-17 20:09:25 +00:00
Doug MacEachern 3ff4089db1 remove dhcp_server from net_info 2005-07-17 17:46:07 +00:00
Doug MacEachern 924c46fdbf convert Route to shell commmand and format the output 2005-07-13 00:17:24 +00:00
Doug MacEachern 568e3045bf string version of flags 2005-07-12 18:35:26 +00:00
Doug MacEachern ac90ac2799 add some route flags 2005-07-12 18:35:09 +00:00
Doug MacEachern 006d84e029 host name 2005-07-11 22:44:34 +00:00
Doug MacEachern 75bbbb0f45 add net_info.host_name 2005-07-11 22:43:56 +00:00
Doug MacEachern 9e98a05fc7 rename net_info.domain to domain_name 2005-07-11 20:41:57 +00:00
Doug MacEachern dca5d82396 add netinfo command 2005-07-11 20:24:43 +00:00
Doug MacEachern 0677fa7fe8 add NetInfo getters 2005-07-11 20:22:16 +00:00
Doug MacEachern 63afc8aa07 add NetInfo class 2005-07-11 20:21:48 +00:00
Doug MacEachern 67c3589698 add IS_WIN32 2005-07-10 08:05:41 +00:00
Doug MacEachern 45fd89c9ab remove osf1 2005-07-10 07:59:49 +00:00
Doug MacEachern 0a59528b45 various helpers 2005-07-10 07:58:50 +00:00
Doug MacEachern 6debd2fefa fix solaris vendor version 2005-07-08 01:47:59 +00:00
Doug MacEachern e945164266 print ulimit 2005-07-08 01:27:12 +00:00
Doug MacEachern 545ec710e4 add ulimit command 2005-07-08 01:25:06 +00:00
Doug MacEachern 5b68d679a7 add ResourceLimit getters 2005-07-08 01:16:46 +00:00
Doug MacEachern 043e1c143f generate ResourceLimit class 2005-07-08 01:11:42 +00:00
Doug MacEachern 73eed8b1c7 add win32_throw_error function 2005-06-27 04:22:36 +00:00
Doug MacEachern 9e79ac3d83 not need to declare native methods final 2005-06-27 04:15:24 +00:00
Doug MacEachern 4d4c242493 win32_throw_last_error right after function call to preserve GetLastError 2005-06-27 04:13:33 +00:00
Doug MacEachern 547f584064 remove hungarian notation 2005-06-27 03:41:43 +00:00
Doug MacEachern ee4b71fc84 more service commands 2005-06-27 02:12:59 +00:00
Doug MacEachern 04e9442455 add win32 service command 2005-06-27 01:56:10 +00:00
Doug MacEachern d4df988507 s/serviceStartName/startName/ 2005-06-27 01:20:59 +00:00
Doug MacEachern 61c9ad6a15 rename ServiceStartName to StartName 2005-06-27 01:20:37 +00:00
Doug MacEachern 53430acdcc moving list method to Service class 2005-06-27 01:18:44 +00:00
Doug MacEachern b342c2aca2 extend SigarException 2005-06-27 01:17:23 +00:00
Doug MacEachern 25398b10bf remote Win32.{GetLastError,GetErrorMessage}, handled in jni code now 2005-06-26 22:11:04 +00:00
Doug MacEachern 57b2a03436 fix compile 2005-06-26 22:10:28 +00:00
Doug MacEachern 284479c5ea throw exception if DeleteService fails 2005-06-26 22:07:58 +00:00
Doug MacEachern 1ce84e00fc throw exceptions in jni, GetLastError may have changed by the time it returns to java land 2005-06-26 22:04:32 +00:00
Doug MacEachern c74f93fdea throw exceptions in jni, GetLastError may have changed by the time it returns to java land 2005-06-26 22:02:02 +00:00
Doug MacEachern 10fde2cca9 extern C 2005-06-26 22:01:04 +00:00
Doug MacEachern 5b3c4c83db fixups 2005-06-26 22:00:53 +00:00
Doug MacEachern 4fe5f84c59 test bogus service name 2005-06-26 22:00:35 +00:00
Doug MacEachern 150c4c5e9c add function to throw exception w/ FormatMessage of GetLastError() 2005-06-26 21:06:03 +00:00
Doug MacEachern 01f5cb6c9e increase chance of accurate error messages 2005-06-26 05:33:52 +00:00
Doug MacEachern 7f2451aa76 cleanup control stuff 2005-06-26 05:27:35 +00:00
Doug MacEachern bf281b55b6 cleanup start/stop methods w/ timeout arg to reuse code and hence behave the same 2005-06-26 05:11:18 +00:00
Doug MacEachern ff25200d99 use method overloading instead of stupid AndWaitFor methods 2005-06-26 04:09:56 +00:00
Doug MacEachern 490bc9906e fix javadoc 2005-06-26 04:02:00 +00:00
Doug MacEachern d9c6759f8c rename status() to getStatus() 2005-06-26 04:01:02 +00:00
Doug MacEachern b88ae70e8c add getStatusString method 2005-06-26 03:59:04 +00:00
Doug MacEachern 27e3f136fa add String versions of int fields 2005-06-26 03:47:58 +00:00
Doug MacEachern aa9baeefd1 changes to main method 2005-06-26 03:22:08 +00:00
Doug MacEachern c38c868c35 add list method 2005-06-26 03:21:28 +00:00
Doug MacEachern 1fabb41896 test stuff 2005-06-26 03:21:09 +00:00
Doug MacEachern 72e7b88512 change Service.create to take ServiceConfig arg 2005-06-26 02:53:54 +00:00
Doug MacEachern 7e3f7cce07 rename binaryPathName to path 2005-06-26 02:44:44 +00:00
Doug MacEachern a0017f6dca add name/password fields to ServiceConfig so it can be used to create services 2005-06-26 02:42:40 +00:00
Doug MacEachern 82a5ad05ab default displayName to serviceName 2005-06-26 02:39:34 +00:00
Doug MacEachern bcd101741b add description to ServiceConfig 2005-06-26 02:18:05 +00:00
Doug MacEachern 5b87277a6f ServiceConfig.dependencies needs to be String[] 2005-06-26 01:54:11 +00:00
Doug MacEachern 5c9c3c6cf2 remove dll late binding code from asf. not only is it super ugly, it is not
thread safe.  change to use GetProcAddress the same way everyone else in the
world does.  (M-x un-bloom-ify)
2005-06-26 01:11:20 +00:00
Doug MacEachern 0532dd1e1d plug memory leak in GetErrorMessage 2005-06-26 00:52:03 +00:00
Doug MacEachern 5cd9bfd25e move GetLastError and GetErrorMessage to base class 2005-06-26 00:50:08 +00:00
Doug MacEachern 67494670b6 rename Win32Bindings to Win32 2005-06-26 00:42:47 +00:00
Doug MacEachern c4a20457de change exception throwing so we get a reasonable stacktrace 2005-06-26 00:39:53 +00:00
Doug MacEachern 084300bce2 rid hungarian notation and fixup formatting 2005-06-26 00:36:47 +00:00
Doug MacEachern 2f1392e264 what could be less serializable than class with 2 fields that are pointers to C structures 2005-06-26 00:20:06 +00:00
Doug MacEachern 706b6fded1 remove unused imports 2005-06-25 23:48:05 +00:00
Doug MacEachern de5e9861dd add getConfig method 2005-06-25 23:21:00 +00:00
Doug MacEachern 3037ef8b00 use Sigar.load() 2005-06-25 23:20:43 +00:00
Doug MacEachern 6764e30773 add function to fillin ServiceConfig object 2005-06-25 23:18:50 +00:00
Doug MacEachern fbf1872788 add win32 package for main method invocation 2005-06-25 23:18:12 +00:00
Doug MacEachern a9bd0f6a42 save loadError 2005-06-25 23:17:46 +00:00
Doug MacEachern e91665d842 remove QueryServiceStartType 2005-06-25 17:01:08 +00:00
Doug MacEachern 1163e0c803 add ServiceConfig class and move some constants there 2005-06-25 16:58:59 +00:00
Doug MacEachern 351754816d set vendorCodeName for redhat 2005-06-16 22:45:41 +00:00
Doug MacEachern 657bd2375f fix compile 2005-06-16 22:41:41 +00:00
Doug MacEachern 0faf17d946 add VendorCodeName, use it for osx description 2005-06-16 22:38:14 +00:00
Doug MacEachern de2812fab3 output description 2005-06-16 22:21:41 +00:00
Doug MacEachern 4fa97499bf add constants for names and add getDescription method 2005-06-16 22:17:13 +00:00
Doug MacEachern 61ebe669e7 add vendorName, make all os.name the same values we use elsewhere 2005-06-16 21:58:28 +00:00
Doug MacEachern a20b334406 catch getProcCpu 2005-06-16 21:27:54 +00:00
Doug MacEachern 39e76c9b4b trace attrs 2005-06-15 01:52:45 +00:00
Doug MacEachern a15d63d3e3 rename h_query to query 2005-06-15 00:40:32 +00:00
Doug MacEachern 2e17b9cded simply counter management by removing it when we are done with it 2005-06-15 00:24:33 +00:00
Doug MacEachern 7eabd263f5 rename Pdh.getSingleValue to Pdh.getRawValue 2005-06-15 00:17:04 +00:00
Doug MacEachern 77b18f35e2 remove some unused pdh stuff.
rename 'cp' to 'path'.
2005-06-15 00:12:19 +00:00
Doug MacEachern 241b1066e6 add Pdh.getFormattedValue method 2005-06-14 23:51:06 +00:00
Doug MacEachern 30a2812d1a recognize CentOS 2005-06-14 21:52:25 +00:00
Doug MacEachern 3e5ba8a9ec recognize redhat 'ES' 2005-06-14 00:17:28 +00:00
Doug MacEachern c67e485d0f typemap sigar_uint64_t to avoid compile warnings 2005-05-14 00:31:25 +00:00
Doug MacEachern c1224a3ad2 version fixups 2005-05-13 21:24:00 +00:00
Doug MacEachern 5e4d3e4475 test failing on my win3k due to log record ~100k. will fix later 2005-05-13 21:16:02 +00:00
Doug MacEachern fade72859d only print loaded rc file msg if interactive 2005-05-13 18:11:32 +00:00
Doug MacEachern 3d5e199f5b use shell commands 2005-05-13 18:07:27 +00:00
Doug MacEachern dbf28a4397 make displayTimes optional 2005-05-13 18:06:46 +00:00
Doug MacEachern 4bc5584626 format output, check total > 0 2005-05-13 18:06:23 +00:00
Doug MacEachern bb5021d3ad add OpereratingSystem and java stuff, format output 2005-05-13 18:05:48 +00:00
Doug MacEachern 14826fdca5 add more from sys props 2005-05-13 18:05:00 +00:00
Doug MacEachern b5b16908a3 Combined should not include wait time 2005-05-12 02:43:46 +00:00
Doug MacEachern 083414a22a use getMountPoint rather than getFileSystem in getMountedFileSystemUsage 2005-05-11 00:23:42 +00:00
Doug MacEachern fd0543300a remove win32 special case 2005-05-10 21:29:59 +00:00
Doug MacEachern 2c7f23f793 declare SigarNotImplementedException 2005-05-10 21:29:29 +00:00
Doug MacEachern 58318b381d catch NotImplemented 2005-05-10 21:20:51 +00:00
Doug MacEachern 916a46bce3 add NetStat test 2005-05-10 20:32:52 +00:00
Doug MacEachern 3e48aa1c0b test NetStat 2005-05-10 20:32:24 +00:00
Doug MacEachern e34bbcfa2d args fixup 2005-05-10 16:48:23 +00:00
Doug MacEachern 6630ffe562 eclipse effed my whitespace 2005-05-10 16:15:03 +00:00
Doug MacEachern 7333533c82 add NetStat getters 2005-05-10 16:13:37 +00:00
Doug MacEachern 3a81fd6b02 rename NetPortMap to NetStat 2005-05-10 15:25:42 +00:00
Doug MacEachern dc55b40c5e include tcp in the names, might want to add udp or whatever later 2005-05-10 14:50:20 +00:00
Doug MacEachern d5c3c18371 add state getters 2005-05-10 14:42:33 +00:00
Doug MacEachern 1c0de9075a add totals for num in/out connections 2005-05-10 14:32:04 +00:00
Doug MacEachern 442c90c506 more use of native flag 2005-05-10 00:14:39 +00:00
Doug MacEachern 9b626f890c provide pure java getline impl 2005-05-10 00:04:33 +00:00
Doug MacEachern 9afd3392ed check for null line 2005-05-09 23:32:40 +00:00
Doug MacEachern 894fe8adae make outbound info more useful and more like the inbound 2005-05-08 18:44:28 +00:00
Doug MacEachern f8ed2e0444 whitespace nits 2005-05-08 17:42:09 +00:00
Doug MacEachern df43f0d115 change getFileSystemList to update the FileSystemMap 2005-05-08 17:33:42 +00:00
Doug MacEachern 6e8e15e4e5 move etc/services parsing to its own class, NetServices 2005-05-08 16:28:46 +00:00
Doug MacEachern 7851cc3299 add outbound connections, change existing stuff to be called inbound 2005-05-07 23:14:34 +00:00
Doug MacEachern b20fe9f6b6 fix file stat 2005-05-07 19:01:20 +00:00
Doug MacEachern d550f84e77 add missing TCP flags 2005-05-07 18:42:43 +00:00
Doug MacEachern 9cfbd13722 refactor. include state counts 2005-05-07 06:02:25 +00:00
Doug MacEachern 204041aed7 add static NetConnection.getStateString 2005-05-07 06:01:32 +00:00
Doug MacEachern d780891c15 more info 2005-05-06 17:16:39 +00:00
Doug MacEachern 10a438d4e0 include nice and wait times in Combined 2005-05-06 17:16:24 +00:00
Doug MacEachern d272ec6aca remove unused imports 2005-05-06 15:59:22 +00:00
Doug MacEachern a670613f0c minor optmization for 0 or 1 match 2005-04-28 16:58:38 +00:00
Doug MacEachern 41a75d9253 remove unused finder 2005-04-28 00:47:47 +00:00
Doug MacEachern d0c60802c4 add public getLogger method 2005-04-28 00:39:13 +00:00
Doug MacEachern 9ffbe0fa34 ProcessQueryFactory does not use the SigarProxy object 2005-04-28 00:21:25 +00:00
Doug MacEachern d630fa0647 fix typos 2005-04-27 22:39:05 +00:00
Doug MacEachern 22452e99fc add file_system_usage_t.used field 2005-04-26 19:55:21 +00:00
Doug MacEachern 4beb4e6fc4 turns on we need PERF_DETAIL_WIZARD for pdhGetInstances 2005-04-20 01:31:52 +00:00
Doug MacEachern 14960e14e5 add queue metric, fixup formatting 2005-04-07 02:06:24 +00:00
Doug MacEachern fe14eb78f0 print disk byte metrics 2005-04-07 01:24:29 +00:00
Doug MacEachern a3dd84419b add new disk fields 2005-04-07 01:24:06 +00:00
Doug MacEachern 52bb9324e9 freebsd has disk reads/writes 2005-04-07 01:19:31 +00:00
Doug MacEachern 15053e98ac add pdhConnectMachine 2005-03-30 00:59:45 +00:00
Doug MacEachern 02f67cbd73 remove getThreadCpuDiff method, lives in CpuTimer class now 2005-03-22 05:11:16 +00:00
Doug MacEachern 491ff005ac use CpuTimer 2005-03-22 05:09:48 +00:00
Doug MacEachern 2fb7a2fab3 update ProcPort doc 2005-03-20 02:59:22 +00:00
Doug MacEachern 807c8af462 pass protocol param to ProcPort method 2005-03-16 03:24:26 +00:00
Doug MacEachern 4291d52164 convert String protocol to int 2005-03-16 03:24:04 +00:00
Doug MacEachern bcb098a34d stub proc_port for all platforms 2005-03-16 02:47:57 +00:00
Doug MacEachern c31d2c5712 add protocol param to proc_port function 2005-03-16 02:44:52 +00:00
Doug MacEachern b82ab9ede1 allow services file to be overridden with sigar.net.services.file property 2005-03-15 23:21:36 +00:00
Doug MacEachern db88e7f04a use Map rather than List to keep track of addresses 2005-03-15 23:19:07 +00:00
Doug MacEachern 9abeb7ef2b make sure we dont do NfsFileSystem on win32 2005-03-15 21:40:36 +00:00
Doug MacEachern 31b3fd00ba update NetConnection docs for FreeBSD 2005-03-15 19:00:08 +00:00
Doug MacEachern 6a1f299636 use nfs.getUnreachableMessage() 2005-03-15 18:46:02 +00:00
Doug MacEachern 08cb512ad1 throw NfsUnreachableException from getMountedFileSystemUsage 2005-03-15 18:45:44 +00:00
Doug MacEachern 32282980ab exception helpers 2005-03-15 18:45:02 +00:00
Doug MacEachern f4c20803c6 subclass for when nfs server ping fails 2005-03-15 18:44:37 +00:00
Doug MacEachern 6523175e55 add nfs ping to getMountedFileSystemUsage method 2005-03-15 18:07:41 +00:00
Doug MacEachern 68fcd5c586 better formatting 2005-03-12 18:04:02 +00:00
Doug MacEachern 26af15095d NetConnection doc update 2005-03-12 04:51:32 +00:00
Doug MacEachern 6076da7508 NetConnection queue fields 2005-03-12 04:50:47 +00:00
Doug MacEachern 581f13713f add TCP state constants 2005-03-11 17:20:52 +00:00
Doug MacEachern 4f7a9ccb80 udp connections have no state 2005-03-11 17:18:57 +00:00
Doug MacEachern 91b3efc822 print state 2005-03-11 17:16:07 +00:00
Doug MacEachern 98761935f7 add NetConnection state 2005-03-11 17:15:24 +00:00
Doug MacEachern c66f80fa06 windows service file is not in /etc/services 2005-03-11 04:14:27 +00:00
Doug MacEachern ca1e9686d9 map port to service name 2005-03-11 02:37:59 +00:00
Doug MacEachern 29087cf649 add getServiceName method 2005-03-11 02:37:38 +00:00
Doug MacEachern 3d0dc203d8 map listening tcp ports to connected remote addresses 2005-03-11 01:48:56 +00:00
Doug MacEachern 058a459872 add top-level package 2005-03-11 01:44:28 +00:00
Doug MacEachern 7c901c486e support -n flag and ip->hostname conversion 2005-03-11 01:27:19 +00:00
Doug MacEachern 757892710a solaris stuff 2005-03-10 03:46:06 +00:00
Doug MacEachern 7b8e4a5feb print more stuff in main 2005-03-10 03:36:08 +00:00
Doug MacEachern e22d3b5016 win32 stuff 2005-03-10 02:19:45 +00:00
Doug MacEachern f67401d7ae add add() method 2005-03-09 19:09:21 +00:00
Doug MacEachern 90ad5a74f2 collect over multiple stop/start 2005-03-09 18:36:28 +00:00
Doug MacEachern 36a053a3a8 use CpuTimer 2005-03-09 17:04:15 +00:00
Doug MacEachern 531c3e32c6 reusable cpu timer 2005-03-09 17:03:50 +00:00
Doug MacEachern a961ce1ea1 some vendor stuff 2005-03-08 01:10:10 +00:00
Doug MacEachern ca5bb41344 more args match tests 2005-03-02 04:02:57 +00:00
Doug MacEachern ae4f5eddfe fix args matcher 2005-03-02 03:53:19 +00:00
Doug MacEachern 9d33872a93 VMware vendor 2005-03-01 23:00:54 +00:00
Doug MacEachern d8f0ca3bdf only create one instance 2005-02-28 00:31:41 +00:00
Doug MacEachern 69158c8553 some cleanup 2005-02-27 22:42:05 +00:00
Doug MacEachern cb332cccdc use OS class to get linux vendor info 2005-02-27 22:29:28 +00:00
Doug MacEachern 4152a45f7a starting class to get more os/vendor specific info 2005-02-26 02:03:11 +00:00
Doug MacEachern 13bbd7faec format host like the real who command 2005-02-25 03:44:40 +00:00
Doug MacEachern 9606115c1e format time like the real who command 2005-02-25 03:35:04 +00:00
Doug MacEachern 827d731120 turn off paging 2005-02-25 01:30:57 +00:00
Doug MacEachern 4c34af094a setter for isInteractive 2005-02-25 01:30:45 +00:00
Doug MacEachern 4612d3d5bc seconds is not hires enough for the shell commands 2005-02-25 01:22:41 +00:00
Doug MacEachern d3306f6b1b need to diff the cpu times 2005-02-25 01:16:55 +00:00
Doug MacEachern 183359750f format time 2005-02-24 21:10:31 +00:00
Doug MacEachern 8021f4de5b print times 2005-02-24 19:30:25 +00:00
Doug MacEachern eece975d12 stub a time command 2005-02-24 17:37:29 +00:00
Doug MacEachern 9410608f43 add who command 2005-02-22 01:52:23 +00:00
Doug MacEachern db846e1557 who command 2005-02-22 01:52:07 +00:00
Doug MacEachern 921a20182d add getWhoList method 2005-02-22 01:51:51 +00:00
Doug MacEachern bd2ef09744 who bindings 2005-02-22 01:51:21 +00:00
Doug MacEachern 208e0c449e extra nfs sanity check 2005-02-21 04:05:23 +00:00
Doug MacEachern b6228e48d4 make static ping method public 2005-02-21 02:33:17 +00:00
Doug MacEachern 7cf08bd006 use InetAddress lookup cache 2005-02-21 02:29:14 +00:00
Doug MacEachern a4601ea2a8 prevent hang if nfs server is down 2005-02-21 02:19:49 +00:00
Doug MacEachern 6095ad4e6f use NfsFileSystem objects for nfs mounts 2005-02-21 02:19:13 +00:00
Doug MacEachern f00916afee extend FileSystem to ping nfs server 2005-02-21 02:03:17 +00:00
Doug MacEachern 760dac9604 nfs ping binding 2005-02-21 02:02:45 +00:00
Doug MacEachern 074e696438 expose the load method 2005-02-21 01:55:07 +00:00
Doug MacEachern ab6c32409d make sure handles are marked invalid 2005-02-20 00:16:18 +00:00
Doug MacEachern 894b300ad0 synchronize close methods that are invoked by the finalize method 2005-02-20 00:06:25 +00:00
Doug MacEachern 906df7ae55 seen 0 atime on freebsd 2005-02-19 00:34:35 +00:00
Doug MacEachern 07e8e4fc9c freebsd fixup 2005-02-17 02:21:01 +00:00
Doug MacEachern f8a7c94beb make sure mhz dont change 2005-02-17 01:48:25 +00:00
Doug MacEachern 07ab121475 need long to store pointer on 64bit linux 2005-02-16 22:22:49 +00:00
Doug MacEachern 63c5b91496 platform doc updates 2005-02-13 06:49:16 +00:00
Doug MacEachern 00580471d5 check if CacheSize is valid 2005-02-13 05:37:20 +00:00
Doug MacEachern a4a38b0725 trace start_time in Date format 2005-02-09 07:05:43 +00:00
Doug MacEachern d49a0b720a GetInstances only needs PERF_DETAIL_NOVICE to get the names 2005-01-26 22:04:56 +00:00
Doug MacEachern 14942613a3 use PdhGetRawCounterValue instead of PdhGetFormattedCounterValue 2005-01-26 22:00:44 +00:00
Doug MacEachern 3da65be191 finalize needs to be protected not public else will not get invoked 2005-01-20 00:49:12 +00:00
Doug MacEachern c462123080 declare that the native methods throw Win32Exception 2005-01-20 00:48:19 +00:00
Doug MacEachern 00e64ab40d PR: 9664
fix close method so if an app directly calls close(), finalize wont blow up.
2005-01-20 00:45:00 +00:00
Doug MacEachern a168c9c0f6 prevent negative cpu percentage 2004-12-17 07:04:50 +00:00
Doug MacEachern eb1528f3f4 add Service.getServiceNames method 2004-12-12 02:48:39 +00:00
Doug MacEachern e2be44cf1c windows fix 2004-12-11 21:11:41 +00:00
Doug MacEachern ce617f3867 hpux has disk metrics now 2004-12-11 20:31:48 +00:00
Doug MacEachern 7362619bc1 more fixes for ibm/websphere4 jdk 2004-12-10 00:45:36 +00:00
Doug MacEachern e4a6c819be better format 2004-12-07 06:30:07 +00:00
Doug MacEachern 5b51110c92 update disk metric docs 2004-12-07 06:29:32 +00:00
Doug MacEachern aa0731c3b8 add iostat command 2004-12-07 06:26:25 +00:00
Doug MacEachern 25c3a927e7 better to make a copy than modify the const string 2004-12-06 01:06:15 +00:00
Doug MacEachern dfdff8b635 use SIGAR_FIELD_NOTIMPL constant in place of -1 or 0 for fields which are not implemented for a given platform 2004-12-05 23:36:48 +00:00
Doug MacEachern 136f564d4b getFileSystemUsage for all fs types 2004-12-05 22:36:54 +00:00
Doug MacEachern 8ebc572677 indent 2004-12-05 01:20:46 +00:00
Doug MacEachern e5582816c6 start disk i/o metrics 2004-12-05 01:18:57 +00:00
Doug MacEachern 93e7a04f89 fix bug under websphere4.0 jdk, key was not always null terminated 2004-11-23 00:22:53 +00:00
Doug MacEachern 9b111665f1 fix close/finalize 2004-11-22 06:09:47 +00:00
Doug MacEachern 84ca523e7b need to load pdh.dll before sigar.dll 2004-11-22 02:20:26 +00:00
Doug MacEachern 5a31d9cdab remove setters, just use the fields 2004-11-22 02:07:37 +00:00
Doug MacEachern df88ea5bb4 add cpu wait 2004-11-22 02:05:07 +00:00
Doug MacEachern 46ba56bc17 add cpu.wait metric 2004-11-22 01:51:34 +00:00
Doug MacEachern 921a4ce41c moving ThreadCpuTime.getDiff into Sigar.getThreadCpuDiff 2004-11-21 19:40:21 +00:00
Doug MacEachern 2aeeb877c0 use ThreadCpu instead of ThreadCpuTime 2004-11-21 19:22:01 +00:00
Doug MacEachern 14f2e8811f making the native method public and renaming to gather 2004-11-21 19:11:55 +00:00
Doug MacEachern 9616fb7f39 add control method 2004-11-21 18:39:53 +00:00
Doug MacEachern cb8dd003ea make Service.close method public 2004-11-21 03:12:26 +00:00
Doug MacEachern f038a56119 make fields package access 2004-11-21 03:07:39 +00:00
Doug MacEachern a4ed059eae change access for stuff meant to be private 2004-11-21 03:05:17 +00:00
Doug MacEachern 6598602dbc change access for stuff meant to be private 2004-11-21 02:55:19 +00:00
Doug MacEachern 844b34564b remove unused imports 2004-11-21 02:15:41 +00:00
Doug MacEachern 3d89246fef include win32 tests 2004-11-21 02:07:40 +00:00
Doug MacEachern b65a58609f dont test creating of services by default 2004-11-21 01:22:46 +00:00
Doug MacEachern 2a148decc1 dont test creating of registry keys by default 2004-11-21 01:22:37 +00:00
Doug MacEachern 60865160cf fix package name 2004-11-21 01:17:30 +00:00
Doug MacEachern 96e7c48c6c remove unused imports 2004-11-20 21:16:58 +00:00
Doug MacEachern c132f5a706 load pdh.dll for NT 2004-11-20 21:11:09 +00:00
Doug MacEachern a77a94454f share some utils 2004-11-20 21:02:39 +00:00
Doug MacEachern 6353b7bcc3 merging in the win32bindings package 2004-11-20 21:01:16 +00:00
Doug MacEachern 3b0a6af2d2 valid for packets == 0 2004-11-20 19:18:32 +00:00
Doug MacEachern 3cc2b04986 more like linux free command 2004-11-20 02:55:22 +00:00