Commit Graph

876 Commits

Author SHA1 Message Date
unknown 4fcaa226bd Some metrics are missing the '/sec' suffix. This fix first tries to add
the counter without the '/sec' and if fails, try again with it. If the
second call fails, throw an exception.This issue must be addressed at the
java level (and not C code), since the counter names must be translated
before to support i18n native OS locals.
Please also note, the C code (at Pdh.c), tries to do the same, but at
this level we cannot use the translation mechanism the Java level offers,
hence this fix won't handle non-English i18n locals.
2014-09-03 13:22:19 +03:00
Doug MacEachern 73f9b8cf84 GPL v2 license -> Apache 2 license
(grit-generated)
2010-04-28 14:57:11 -07:00
Doug MacEachern bb122cc1e4 fix Actual{Free,Used} assertions 2010-04-28 11:05:06 -07:00
Doug MacEachern 30e8d0e2c1 fix ProcCpu.getPercent assertion per SIGAR-145 2010-04-21 15:20:05 -07:00
Doug MacEachern b3078dca91 bring back closeSigar() call in shutdown (commented out in cd42290) 2010-04-21 15:02:01 -07:00
Doug MacEachern a5dacd4d03 clear ProcessQueryFactory and Humidor instances on shutdown 2010-04-21 13:56:25 -07:00
Doug MacEachern 8cd05ddc64 mv ProcessQueryFactory.clear calls to tearDown() 2010-04-21 13:55:01 -07:00
Doug MacEachern c9ef9f4bb6 add close() method 2010-04-21 13:47:06 -07:00
Doug MacEachern aa2cbaa89b System.getenv throws Error in 1.4 jre 2010-04-16 11:01:02 -07:00
Doug MacEachern c46af75d74 (SIGAR-201) JNIEnv->ExceptionCheck to avoid possible SEGV on OutOfMemoryError 2010-04-15 10:55:09 -07:00
Doug MacEachern 55002f1930 (SIGAR-213) check ENV.ANT_HOME/lib for junit in Main-Class 2010-04-14 13:46:28 -07:00
Doug MacEachern cd422901c9 (SIGAR-213) remove junit.jar from distribution 2010-04-07 21:23:56 -07:00
Doug MacEachern 29c96e2343 (SIGAR-207) append instance index in Pdh.getInstances() 2010-04-01 14:53:25 -07:00
Doug MacEachern 2dc981dfa8 (SIGAR-207) Add Pdh.getCounterType method 2010-03-31 14:54:25 -07:00
Doug MacEachern 7905904cb6 (SIGAR-207) Add Pdh.getDescription method 2010-03-31 13:17:02 -07:00
Doug MacEachern e20e2eaa54 add -i (inode format) support to df command 2010-02-09 18:01:34 -08:00
Doug MacEachern 035a097325 only display event code in toString as the Event Viewer does 2009-11-09 16:45:06 -08:00
Doug MacEachern e86a150a8d 'N/A' for null user in EventLogRecord.toString 2009-11-09 16:34:31 -08:00
Doug MacEachern 32512cde90 include the same fields as Event Viewer in EventLogRecord.toString 2009-11-09 16:30:47 -08:00
Doug MacEachern 9cc30ca006 (SIGAR-191) fix EventLogRecord.computerName 2009-11-09 16:27:22 -08:00
Doug MacEachern 3e4a408f74 (SIGAR-190) add category to EventLogRecord 2009-11-09 16:17:37 -08:00
Doug MacEachern a96bd1bc04 Pdh test adjustments for windows 2000 2009-10-23 14:52:51 -07:00
Doug MacEachern 32040563ce (SIGAR-185) fix RegistryKey open on windows 2000 2009-10-23 14:50:29 -07:00
Doug MacEachern 7d483e3982 Humidor test 2009-07-08 15:59:24 -07:00
Doug MacEachern ce39c1ad1e support for caller constructed Sigar object 2009-07-08 15:28:49 -07:00
Jon Travis 22e9e06b9d (SIGAR-150) Wrapper class to synchronize Sigar method invocation
Signed-off-by: Doug MacEachern <dougm@hyperic.com>
2009-07-08 14:56:11 -07:00
Doug MacEachern 3f3a070045 add getNetServicesName to SigarProxy interface 2009-07-07 15:36:37 -07:00
Doug MacEachern b3abdd5a53 (SIGAR-151) Add Modules support to PTQL 2009-06-06 08:38:06 -07:00
Doug MacEachern 5ac96fb803 make SigarProxyCached.invoke synchronized 2009-05-15 16:58:33 -07:00
Doug MacEachern ae289d3d41 (SIGAR-134) use UNICODE in EventLog wrapper 2009-02-12 16:37:29 -08:00
Doug MacEachern 7ef48da327 dos2unix 2009-02-09 14:21:00 -08:00
Doug MacEachern 7a5288278c dos2unix 2009-02-09 14:15:49 -08:00
Doug MacEachern 2e3c302f4f dos2unix 2009-02-09 13:28:00 -08:00
Doug MacEachern 3a9d6b7024 remove invalid assertion 2009-02-06 14:32:02 -08:00
Doug MacEachern 5df4c608b4 s/SVN/SCM/ 2009-02-06 13:53:59 -08:00
Doug MacEachern a7495637a9 [SIGAR-133] use InputStream.skip (bytes) instead of Reader.skip (chars) in onChange 2009-02-06 13:52:33 -08:00
Doug MacEachern be5f4930a7 handle processes that may have gone away 2009-02-06 13:45:44 -08:00
Doug MacEachern a6b5f3f30b check getNumberOfRecords != 0 before calling getOldestRecord 2008-09-13 01:37:19 +00:00
Doug MacEachern 61327b9034 [SIGAR-120] Support WoW registry reflection 2008-09-12 05:14:40 +00:00
Doug MacEachern 7ac30e778a Tomcat6, to test 32-bit on 64-bit 2008-09-12 03:48:36 +00:00
Doug MacEachern 9b4dd7b263 possible for subkeys/values not to exist 2008-09-12 00:48:03 +00:00
Doug MacEachern 29d57da8a9 add another test for software values 2008-09-12 00:40:11 +00:00
Doug MacEachern 898e933070 add some getValue tests 2008-09-12 00:19:57 +00:00
Doug MacEachern 19a76d5fa1 output boottime when testing Uptime 2008-09-09 00:09:59 +00:00
Doug MacEachern 0cbf1411d2 include sys/time.h except on FreeBSD 7 2008-09-07 15:17:23 +00:00
Doug MacEachern c54ad52a99 compile on FreeBSD 7 2008-09-06 18:22:19 +00:00
Doug MacEachern f4d6d50966 process table may change between find and findProcess 2008-08-10 22:02:12 +00:00
Doug MacEachern 34333d64e8 include svn revision in version properties 2008-08-10 18:59:53 +00:00
Doug MacEachern 37d3ed6dda bump version to 1.6.0, maint will no longer break bincompat 2008-08-09 23:38:32 +00:00
Doug MacEachern dd0dcc870d avoid the racing condition 2008-08-09 16:30:05 +00:00