Esempio n. 1
0
 public boolean isWritable() throws SailException {
   try {
     return rmi.isWritable();
   } catch (RemoteException ex) {
     throw new SailException(RMI_CONNECTION_FAILED, ex);
   }
 }
Esempio n. 2
0
 public void initialize() throws SailException {
   try {
     rmi.initialize();
   } catch (RemoteException ex) {
     throw new SailException(RMI_CONNECTION_FAILED, ex);
   }
 }
Esempio n. 3
0
 public File getDataDir() {
   try {
     return rmi.getDataDir();
   } catch (RemoteException ex) {
     throw new RuntimeException(RMI_CONNECTION_FAILED, ex);
   }
 }
Esempio n. 4
0
 public void setDataDir(File file) {
   try {
     rmi.setDataDir(file);
   } catch (RemoteException ex) {
     throw new RuntimeException(RMI_CONNECTION_FAILED, ex);
   }
 }
Esempio n. 5
0
 public NotifyingSailConnection getConnection() throws SailException {
   try {
     RmiSailConnectionListenerCallbackImpl callback = new RmiSailConnectionListenerCallbackImpl();
     return new LocalSailConnection(rmi.connect(callback), callback);
   } catch (RemoteException ex) {
     throw new SailException(RMI_CONNECTION_FAILED, ex);
   }
 }
Esempio n. 6
0
 private synchronized RmiSailChangedListenerCallbackImpl callback() throws RemoteException {
   if (callback == null) {
     rmi.addCallback(callback = new RmiSailChangedListenerCallbackImpl(this));
   }
   return callback;
 }