1 2 9 10 package org.objectweb.rmijdbc; 11 12 import java.sql.*; 13 import java.rmi.RemoteException ; 14 import java.rmi.server.UnicastRemoteObject ; 15 import java.rmi.server.Unreferenced ; 16 17 public class RJSavepointServer 18 extends UnicastRemoteObject implements RJSavepointInterface, Unreferenced { 19 20 Savepoint jdbcSavepoint_; 21 22 public RJSavepointServer(Savepoint s) throws RemoteException { 23 super(RJJdbcServer.rmiJdbcListenerPort, 24 RJJdbcServer.rmiClientSocketFactory, RJJdbcServer.rmiServerSocketFactory); 25 jdbcSavepoint_ = s; 26 } 27 28 public void unreferenced() { Runtime.getRuntime().gc(); } 29 30 public int getSavepointId() throws RemoteException , SQLException { 31 return jdbcSavepoint_.getSavepointId(); 32 } 33 34 public String getSavepointName() throws RemoteException , SQLException { 35 return jdbcSavepoint_.getSavepointName(); 36 } 37 38 }; 39 40 | Popular Tags |