public boolean isWritable() throws SailException { try { return rmi.isWritable(); } catch (RemoteException ex) { throw new SailException(RMI_CONNECTION_FAILED, ex); } }
public void initialize() throws SailException { try { rmi.initialize(); } catch (RemoteException ex) { throw new SailException(RMI_CONNECTION_FAILED, ex); } }
public File getDataDir() { try { return rmi.getDataDir(); } catch (RemoteException ex) { throw new RuntimeException(RMI_CONNECTION_FAILED, ex); } }
public void setDataDir(File file) { try { rmi.setDataDir(file); } catch (RemoteException ex) { throw new RuntimeException(RMI_CONNECTION_FAILED, ex); } }
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); } }
private synchronized RmiSailChangedListenerCallbackImpl callback() throws RemoteException { if (callback == null) { rmi.addCallback(callback = new RmiSailChangedListenerCallbackImpl(this)); } return callback; }