com.plumtree.uiinfrastructure.util
Class XPProcess

java.lang.Object
  extended by com.plumtree.uiinfrastructure.util.XPProcess

public class XPProcess
extends java.lang.Object

Wraps a local subprocess. This code is taken from XDK 3.0.x XPProcess. Why? Because It's used in uiifrastructure which uses XDK 3.0.3 and for ALI 6.5 and we need to move to XDK 4.1.x where this code is not. It does not need to be in XDK as ALI is the only app that ever used it. - caius

Author:
Caius van Nouhuys

Constructor Summary
XPProcess()
          Construct an XPProcess for the CURRENT process.
XPProcess(java.lang.Process process)
          Construct an XPProcess from the platform-local equivalent.
 
Method Summary
static XPProcess GetCurrentProcess()
          Get the XPProcess that corresponds to the current process (the one your code is running in)
 long GetMemoryBytes()
          Get the amount of memory being used by this process
 long GetVirtualMemoryBytes()
          Get the number of bytes of virtual memory being used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPProcess

public XPProcess(java.lang.Process process)
Construct an XPProcess from the platform-local equivalent.

Parameters:
process -

XPProcess

public XPProcess()
Construct an XPProcess for the CURRENT process.

Method Detail

GetCurrentProcess

public static XPProcess GetCurrentProcess()
Get the XPProcess that corresponds to the current process (the one your code is running in)

Returns:
the current XPProcess

GetVirtualMemoryBytes

public long GetVirtualMemoryBytes()
Get the number of bytes of virtual memory being used.

Returns:
The number of bytes, or 0 if that information is not available

GetMemoryBytes

public long GetMemoryBytes()
Get the amount of memory being used by this process

Returns:
The number of bytes



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.