Package db.buffers
Interface RemoteManagedBufferFileHandle
- All Superinterfaces:
BufferFileHandle,ManagedBufferFileHandle,Remote
RemoteManagedBufferFileHandle facilitates access to a ManagedBufferFile
via RMI.
IMPORTANT: Methods from BufferFileHandle and ManagedBufferFile must
be re-declared here so they may be properly marshalled for remote invocation via RMI.
This became neccessary with an OpenJDK 11.0.6 change made to
RemoteObjectInvocationHandler.
-
Method Summary
ChangeModifier and TypeMethodDescriptionMODIFIEDbooleancanSave()MODIFIEDvoidvoidclose()MODIFIEDbooleandelete()voiddispose()get(int index) MODIFIEDintMODIFIEDlongbyte[]getForwardModMapData(int oldVersion) MODIFIEDint[]MODIFIEDintProvides local access to an input block stream.getInputBlockStream(byte[] changeMapData) Provides local access to an input block stream for a given change map.Get an input block stream handle which will facilitate access to a remote InputBlockStream.getInputBlockStreamHandle(byte[] changeMapData) Get an input block stream handle, for a given change map, which will facilitate access to a remote InputBlockStream.getNextChangeDataFile(boolean getFirst) getOutputBlockStream(int blockCount) Provides local access to an output block stream.getOutputBlockStreamHandle(int blockCount) Get an output block stream handle which will facilitate access to a remote InputBlockStream.MODIFIEDintgetParameter(String name) NOTE: NoSuchElementException is runtime so must be handled if wrapped in RemoteExceptionMODIFIEDString[]MODIFIEDbooleanvoidput(DataBuffer buf, int index) voidsaveCompleted(boolean commit) MODIFIEDvoidsetFreeIndexes(int[] indexes) MODIFIEDvoidsetParameter(String name, int value) booleanMODIFIEDvoidsetVersionComment(String comment)
-
Method Details
-
isReadOnly MODIFIED
added throws RemoteException; removed throws IOException-boolean isReadOnly() throws IOException+boolean isReadOnly() throws RemoteException- Specified by:
isReadOnlyin interfaceBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
setReadOnly
- Specified by:
setReadOnlyin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getParameter MODIFIED
added throws RemoteException; removed throws NoSuchElementException; removed throws IOException-int getParameter(java.lang.String name) throws NoSuchElementException, IOException+int getParameter(java.lang.String name) throws RemoteExceptionDescription copied from interface:BufferFileHandleNOTE: NoSuchElementException is runtime so must be handled if wrapped in RemoteException- Specified by:
getParameterin interfaceBufferFileHandle- Throws:
RemoteExceptionNoSuchElementException(removed)IOException(removed)- See Also:
-
setParameter MODIFIED
added throws RemoteException; removed throws IOException-void setParameter(java.lang.String name, int value) throws IOException+void setParameter(java.lang.String name, int value) throws RemoteException- Specified by:
setParameterin interfaceBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
clearParameters MODIFIED
added throws RemoteException; removed throws IOException-void clearParameters() throws IOException+void clearParameters() throws RemoteException- Specified by:
clearParametersin interfaceBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
getParameterNames MODIFIED
added throws RemoteException; removed throws IOException-java.lang.String[] getParameterNames() throws IOException+java.lang.String[] getParameterNames() throws RemoteException- Specified by:
getParameterNamesin interfaceBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
getBufferSize MODIFIED
added throws RemoteException; removed throws IOException-int getBufferSize() throws IOException+int getBufferSize() throws RemoteException- Specified by:
getBufferSizein interfaceBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
getIndexCount MODIFIED
added throws RemoteException; removed throws IOException-int getIndexCount() throws IOException+int getIndexCount() throws RemoteException- Specified by:
getIndexCountin interfaceBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
getFreeIndexes MODIFIED
added throws RemoteException; removed throws IOException-int[] getFreeIndexes() throws IOException+int[] getFreeIndexes() throws RemoteException- Specified by:
getFreeIndexesin interfaceBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
setFreeIndexes MODIFIED
added throws RemoteException; removed throws IOException-void setFreeIndexes(int[] indexes) throws IOException+void setFreeIndexes(int[] indexes) throws RemoteException- Specified by:
setFreeIndexesin interfaceBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
close
- Specified by:
closein interfaceBufferFileHandle- Throws:
IOException- See Also:
-
delete MODIFIED
added throws RemoteException; removed throws IOException-boolean delete() throws IOException+boolean delete() throws RemoteException- Specified by:
deletein interfaceBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
get
- Specified by:
getin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
put
- Specified by:
putin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
dispose
- Specified by:
disposein interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getInputBlockStream
Description copied from interface:BufferFileHandleProvides local access to an input block stream. This method should only be used if the associatedBufferFileAdapter.isRemote()is false.- Specified by:
getInputBlockStreamin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getOutputBlockStream
Description copied from interface:BufferFileHandleProvides local access to an output block stream. This method should only be used if the associatedBufferFileAdapter.isRemote()is false.- Specified by:
getOutputBlockStreamin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getInputBlockStreamHandle
Description copied from interface:BufferFileHandleGet an input block stream handle which will facilitate access to a remote InputBlockStream. The handle will facilitate use of a remote streaming interface. This method should only be used if the associatedBufferFileAdapter.isRemote()is true.- Specified by:
getInputBlockStreamHandlein interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getOutputBlockStreamHandle
Description copied from interface:BufferFileHandleGet an output block stream handle which will facilitate access to a remote InputBlockStream. The handle will facilitate use of a remote streaming interface. This method should only be used if the associatedBufferFileAdapter.isRemote()is true.- Specified by:
getOutputBlockStreamHandlein interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getSaveFile
- Specified by:
getSaveFilein interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
saveCompleted
- Specified by:
saveCompletedin interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
canSave MODIFIED
added throws RemoteException; removed throws IOException-boolean canSave() throws IOException+boolean canSave() throws RemoteException- Specified by:
canSavein interfaceManagedBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
setVersionComment MODIFIED
added throws RemoteException; removed throws IOException-void setVersionComment(java.lang.String comment) throws IOException+void setVersionComment(java.lang.String comment) throws RemoteException- Specified by:
setVersionCommentin interfaceManagedBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
getNextChangeDataFile
- Specified by:
getNextChangeDataFilein interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
getSaveChangeDataFile
- Specified by:
getSaveChangeDataFilein interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
getCheckinID MODIFIED
added throws RemoteException; removed throws IOException-long getCheckinID() throws IOException+long getCheckinID() throws RemoteException- Specified by:
getCheckinIDin interfaceManagedBufferFileHandle- Throws:
RemoteExceptionIOException(removed)- See Also:
-
getForwardModMapData
- Specified by:
getForwardModMapDatain interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
getInputBlockStream
Description copied from interface:ManagedBufferFileHandleProvides local access to an input block stream for a given change map. This method should only be used if the associatedBufferFileAdapter.isRemote()is false.- Specified by:
getInputBlockStreamin interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
getInputBlockStreamHandle
BlockStreamHandle<InputBlockStream> getInputBlockStreamHandle(byte[] changeMapData) throws IOException Description copied from interface:ManagedBufferFileHandleGet an input block stream handle, for a given change map, which will facilitate access to a remote InputBlockStream. The handle will facilitate use of a remote streaming interface. This method should only be used if the associatedBufferFileAdapter.isRemote()is true.- Specified by:
getInputBlockStreamHandlein interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-