True but even when the disk space is run out we cannot surely say its the cause of a error.
Say for example u are creating a file and end up getting an exception . You could at this
juncture throw an exceptuion stating that disk is possibly full. So the concept of disk
usage is not "sure" inside the JVM its all just a "possibility".
 
Otherwise we should welcome Jissy to JNI rather correct ? :) Cos its the only way to get
this then.
 
-Shankar
 
 

-----Original Message-----
From: Alan Williamson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 1:37 AM
To: JDJList
Subject: [jdjlist] RE: Disk Usage

But Jissy isn't asking about the memory of the JVM.
 
It was the memory of the disk space.
 
alan
 
http://www.javasos.com/
-----Original Message-----
From: H Shankaranarayanan [mailto:[EMAIL PROTECTED]]
Sent: 24 July 2002 22:10
To: JDJList
Subject: [jdjlist] RE: Disk Usage

All memory calculations in Java are based on the Total memory and the free memory of the JVM.
See the corresponding Runtime APIs.
If you want to throw a disk full exception or something then you could say "possibly" and not surely
its out of disk memory.
hope this helps.
--Shankar

 -----Original Message-----
From: Jissy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 12:41 AM
To: JDJList
Subject: [jdjlist] RE: Disk Usage

I came across few utilities written in Java that compute disk usage.  How do they compiute it then?
----- Original Message -----
To: JDJList
Sent: Wednesday, July 24, 2002 1:05 PM
Subject: [jdjlist] RE: Disk Usage

No.  Its dependent on the operating system.
 
Welcome to Java!
 
:-)
 
 
-----Original Message-----
From: Jissy [mailto:[EMAIL PROTECTED]]
Sent: 24 July 2002 08:31
To: JDJList
Subject: [jdjlist] Disk Usage

Hi
 
Does anybody know of a fast mechanism for computing the hard disk usage in Java.
 
Regards
Jissy
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to