Package db.buffers
Interface RemoteBufferFileHandle
- All Superinterfaces:
BufferFileHandle,Remote
RemoteBufferFileHandle facilitates access to a remote BufferFile
via RMI.
IMPORTANT: Methods from BufferFileHandle 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 TypeMethodDescriptionMODIFIEDvoidvoidclose()MODIFIEDbooleandelete()voiddispose()get(int index) MODIFIEDintMODIFIEDint[]MODIFIEDintProvides local access to an input block stream.Get an input block stream handle which will facilitate access to a remote InputBlockStream.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) MODIFIEDvoidsetFreeIndexes(int[] indexes) MODIFIEDvoidsetParameter(String name, int value) boolean
-
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:
-