1 29 30 package com.caucho.server.util; 31 32 import java.util.logging.Level ; 33 import java.util.logging.Logger ; 34 35 39 public class JniCauchoSystem { 40 private static Logger log 41 = Logger.getLogger(JniCauchoSystem.class.getName()); 42 43 private static JniCauchoSystem _system; 44 45 protected JniCauchoSystem() 46 { 47 } 48 49 public static JniCauchoSystem create() 50 { 51 synchronized (JniCauchoSystem.class) { 52 if (_system == null) { 53 try { 54 Class cl = Class.forName("com.caucho.server.util.JniCauchoSystemImpl"); 55 56 _system = (JniCauchoSystem) cl.newInstance(); 57 } catch (Throwable e) { 58 log.log(Level.FINEST, e.toString(), e); 59 } 60 61 if (_system == null) 62 _system = new JniCauchoSystem(); 63 } 64 65 return _system; 66 } 67 } 68 69 72 public double getLoadAvg() 73 { 74 return 0; 75 } 76 } 77 | Popular Tags |