1 7 package java.rmi.server; 8 9 import java.rmi.*; 10 import sun.rmi.server.UnicastServerRef; 11 import sun.rmi.runtime.Log; 12 13 25 public abstract class RemoteServer extends RemoteObject 26 { 27 28 private static final long serialVersionUID = -4100238210092549637L; 29 30 34 protected RemoteServer() { 35 super(); 36 } 37 38 44 protected RemoteServer(RemoteRef ref) { 45 super(ref); 46 } 47 48 59 public static String getClientHost() throws ServerNotActiveException { 60 return sun.rmi.transport.tcp.TCPTransport.getClientHost(); 61 } 62 63 79 public static void setLog(java.io.OutputStream out) 80 { 81 logNull = (out == null); 82 UnicastServerRef.callLog.setOutputStream(out); 83 } 84 85 91 public static java.io.PrintStream getLog() 92 { 93 return (logNull ? null : UnicastServerRef.callLog.getPrintStream()); 94 } 95 96 private static boolean logNull = !UnicastServerRef.logCalls; 98 } 99 | Popular Tags |