com.sun.btrace
Class BTraceUtils.Sys

java.lang.Object
  extended by com.sun.btrace.BTraceUtils.Sys
Enclosing class:
BTraceUtils

public static class BTraceUtils.Sys
extends java.lang.Object


Nested Class Summary
static class BTraceUtils.Sys.Env
           
static class BTraceUtils.Sys.Memory
           
static class BTraceUtils.Sys.VM
           
 
Constructor Summary
BTraceUtils.Sys()
           
 
Method Summary
static java.lang.String $(int n)
          Returns n'th command line argument.
static int $length()
          Returns the number of command line arguments.
static void exit()
          This is same as exit(int) except that the exit code is zero.
static void exit(int exitCode)
          Exits the BTrace session -- note that the particular client's tracing session exits and not the observed/traced program! After exit call, the trace action method terminates immediately and no other probe action method (of that client) will be called after that.
static int getpid()
          Returns the process id of the currently BTrace'd process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTraceUtils.Sys

public BTraceUtils.Sys()
Method Detail

$

public static java.lang.String $(int n)
Returns n'th command line argument. null if not available.

Parameters:
n - command line argument index
Returns:
n'th command line argument

getpid

public static int getpid()
Returns the process id of the currently BTrace'd process.


$length

public static int $length()
Returns the number of command line arguments.


exit

public static void exit(int exitCode)
Exits the BTrace session -- note that the particular client's tracing session exits and not the observed/traced program! After exit call, the trace action method terminates immediately and no other probe action method (of that client) will be called after that.

Parameters:
exitCode - exit value sent to the client

exit

public static void exit()
This is same as exit(int) except that the exit code is zero.

See Also:
exit(int)