com.caucho.server.util
Class JniCauchoSystemImpl

java.lang.Object
  extended by com.caucho.server.util.JniCauchoSystem
      extended by com.caucho.server.util.JniCauchoSystemImpl

public class JniCauchoSystemImpl
extends JniCauchoSystem

A wrapper for Caucho system variables, allowing tests to override the default variables.


Constructor Summary
protected JniCauchoSystemImpl()
           
 
Method Summary
 double getLoadAvg()
          Returns true if we're currently running a test.
 void initJniBackground()
          Initialize any JNI code
 boolean isEnabled()
           
 
Methods inherited from class com.caucho.server.util.JniCauchoSystem
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JniCauchoSystemImpl

protected JniCauchoSystemImpl()
Method Detail

initJniBackground

public void initJniBackground()
Description copied from class: JniCauchoSystem
Initialize any JNI code

Overrides:
initJniBackground in class JniCauchoSystem

isEnabled

public boolean isEnabled()

getLoadAvg

public double getLoadAvg()
Returns true if we're currently running a test.

Overrides:
getLoadAvg in class JniCauchoSystem