Package db.buffers
Interface RemoteManagedBufferFileHandle
- All Superinterfaces:
BufferFileHandle,ManagedBufferFileHandle,Remote
RemoteManagedBufferFileHandle facilitates access to a ManagedBufferFile
via RMI.
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
Modifier and TypeMethodDescriptionbooleancanSave()voidvoidclose()booleandelete()voiddispose()get(int index) intlongbyte[]getForwardModMapData(int oldVersion) int[]intProvides 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.intgetParameter(String name) String[]booleanvoidput(DataBuffer buf, int index) voidsaveCompleted(boolean commit) voidsetFreeIndexes(int[] indexes) voidsetParameter(String name, int value) booleanvoidsetVersionComment(String comment)
-
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:
-
getSaveFile
- Specified by:
getSaveFilein interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
saveCompleted
- Specified by:
saveCompletedin interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
canSave
- Specified by:
canSavein interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
setVersionComment
- Specified by:
setVersionCommentin interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
getNextChangeDataFile
- Specified by:
getNextChangeDataFilein interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
getSaveChangeDataFile
- Specified by:
getSaveChangeDataFilein interfaceManagedBufferFileHandle- Throws:
IOException- See Also:
-
getCheckinID
- Specified by:
getCheckinIDin interfaceManagedBufferFileHandle- Throws:
IOException- 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:
-