Package db.buffers
Interface RemoteBufferFileHandle
- All Superinterfaces:
BufferFileHandle,Remote
RemoteBufferFileHandle facilitates access to a remote BufferFile
via RMI.
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
Modifier and TypeMethodDescriptionvoidvoidclose()booleandelete()voiddispose()get(int index) intint[]intProvides 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.intgetParameter(String name) String[]booleanvoidput(DataBuffer buf, int index) voidsetFreeIndexes(int[] indexes) voidsetParameter(String name, int value) boolean
-
Method Details
-
isReadOnly
- Specified by:
isReadOnlyin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
setReadOnly
- Specified by:
setReadOnlyin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getParameter
- Specified by:
getParameterin interfaceBufferFileHandle- Throws:
NoSuchElementExceptionIOException- See Also:
-
setParameter
- Specified by:
setParameterin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
clearParameters
- Specified by:
clearParametersin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getParameterNames
- Specified by:
getParameterNamesin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getBufferSize
- Specified by:
getBufferSizein interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getIndexCount
- Specified by:
getIndexCountin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
getFreeIndexes
- Specified by:
getFreeIndexesin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
setFreeIndexes
- Specified by:
setFreeIndexesin interfaceBufferFileHandle- Throws:
IOException- See Also:
-
close
- Specified by:
closein interfaceBufferFileHandle- Throws:
IOException- See Also:
-
delete
- Specified by:
deletein interfaceBufferFileHandle- Throws:
IOException- 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:
-