cvs commit: jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni OS.java

2005-05-12 Thread William A. Rowe, Jr.

wrowe  2005/05/12 12:29:47

  Modified:jni/java/org/apache/tomcat/jni OS.java Address.java
  Log:
More ^M polution fixed, whitespace changes only.
  
  Revision  ChangesPath
  1.5   +15 -15
 jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/OS.java
  
  Index: OS.java
  ===
  RCS file: 
 /home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/OS.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- OS.java   18 Jan 2005 10:22:50 -  1.4
  +++ OS.java   12 May 2005 19:29:47 -  1.5
  @@ -73,23 +73,23 @@
* Gather system info.
* PRE
* On exit the inf array will be filled with:
  - * inf[0]  - Physical RAM
  - * inf[1]  - Available RAM
  - * inf[2]  - Total page file (swap + Physical RAM)
  - * inf[3]  - Free page file
  + * inf[0]  - Physical RAM
  + * inf[1]  - Available RAM
  + * inf[2]  - Total page file (swap + Physical RAM)
  + * inf[3]  - Free page file
* inf[4]  - Memory Load
  - *
  - * inf[5]  - Idle Time in microseconds
  - * inf[6]  - Kernel Time in microseconds
  + *
  + * inf[5]  - Idle Time in microseconds
  + * inf[6]  - Kernel Time in microseconds
* inf[7]  - User Time in microseconds
  - *
  - * inf[8]  - Process creation time (apr_time_t)
  - * inf[9]  - Process Kernel Time in microseconds
  + *
  + * inf[8]  - Process creation time (apr_time_t)
  + * inf[9]  - Process Kernel Time in microseconds
* inf[10] - Process User Time in microseconds
  - *
  - * inf[11] - Current working set size.
  - * inf[12] - Peak working set size.
  - * inf[13] - Number of page faults.
  + *
  + * inf[11] - Current working set size.
  + * inf[12] - Peak working set size.
  + * inf[13] - Number of page faults.
* /PRE
* @param inf array that will be filled with system informations.
*/
  
  
  
  1.5   +8 -8  
 jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Address.java
  
  Index: Address.java
  ===
  RCS file: 
 /home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Address.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Address.java  16 Apr 2005 16:45:13 -  1.4
  +++ Address.java  12 May 2005 19:29:47 -  1.5
  @@ -72,13 +72,13 @@
*/
   public static native String getnameinfo(long sa, int flags);
   
  -/**
  - * Return the IP address (in numeric address string format) in
  - * an APR socket address.  APR will allocate storage for the IP address 
  - * string from the pool of the apr_sockaddr_t.
  - * @param ss The socket address to reference.
  - * @return The IP address.
  - */
  +/**
  + * Return the IP address (in numeric address string format) in
  + * an APR socket address.  APR will allocate storage for the IP address 
  + * string from the pool of the apr_sockaddr_t.
  + * @param ss The socket address to reference.
  + * @return The IP address.
  + */
   public static native String getip(long sa);
   
   /**
  
  
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni OS.java

2005-01-18 Thread mturk
mturk   2005/01/18 02:22:50

  Modified:jni/java/org/apache/tomcat/jni OS.java
  Log:
  Add OS.info for gathering stats
  
  Revision  ChangesPath
  1.4   +26 -8 
jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/OS.java
  
  Index: OS.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/OS.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- OS.java   17 Jan 2005 18:28:31 -  1.3
  +++ OS.java   18 Jan 2005 10:22:50 -  1.4
  @@ -63,18 +63,36 @@
   public static native String localeEncoding(long pool);
   
   /**
  - * Sleep for the specified number of micro-seconds.
  - * br /bWarning :/b May sleep for longer than the specified time.
  - * @param t desired amount of time to sleep.
  - */
  -public static native void sleep(long t);
  -
  -/**
* Generate random bytes.
* @param buf Buffer to fill with random bytes
* @param len Length of buffer in bytes
*/
   public static native int random(byte [] buf, int len);
   
  +/**
  + * Gather system info.
  + * PRE
  + * On exit the inf array will be filled with:
  + * inf[0]  - Physical RAM

  + * inf[1]  - Available RAM

  + * inf[2]  - Total page file (swap + Physical RAM)

  + * inf[3]  - Free page file

  + * inf[4]  - Memory Load
  + *

  + * inf[5]  - Idle Time in microseconds

  + * inf[6]  - Kernel Time in microseconds

  + * inf[7]  - User Time in microseconds
  + *

  + * inf[8]  - Process creation time (apr_time_t)

  + * inf[9]  - Process Kernel Time in microseconds

  + * inf[10] - Process User Time in microseconds
  + *

  + * inf[11] - Current working set size.

  + * inf[12] - Peak working set size.

  + * inf[13] - Number of page faults.

  + * /PRE
  + * @param inf array that will be filled with system informations.
  + */
  +public static native int info(long [] inf);
   
   }
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]