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 TypeMethodDescriptionboolean
canSave()
void
void
close()
boolean
delete()
void
dispose()
get
(int index) int
long
byte[]
getForwardModMapData
(int oldVersion) int[]
int
Provides 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.int
getParameter
(String name) String[]
boolean
void
put
(DataBuffer buf, int index) void
saveCompleted
(boolean commit) void
setFreeIndexes
(int[] indexes) void
setParameter
(String name, int value) boolean
void
setVersionComment
(String comment)
-
Method Details
-
isReadOnly
- Specified by:
isReadOnly
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
setReadOnly
- Specified by:
setReadOnly
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
getParameter
- Specified by:
getParameter
in interfaceBufferFileHandle
- Throws:
NoSuchElementException
IOException
- See Also:
-
setParameter
- Specified by:
setParameter
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
clearParameters
- Specified by:
clearParameters
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
getParameterNames
- Specified by:
getParameterNames
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
getBufferSize
- Specified by:
getBufferSize
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
getIndexCount
- Specified by:
getIndexCount
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
getFreeIndexes
- Specified by:
getFreeIndexes
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
setFreeIndexes
- Specified by:
setFreeIndexes
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
close
- Specified by:
close
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
delete
- Specified by:
delete
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
get
- Specified by:
get
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
put
- Specified by:
put
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
dispose
- Specified by:
dispose
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
getInputBlockStream
Description copied from interface:BufferFileHandle
Provides local access to an input block stream. This method should only be used if the associatedBufferFileAdapter.isRemote()
is false.- Specified by:
getInputBlockStream
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
getOutputBlockStream
Description copied from interface:BufferFileHandle
Provides local access to an output block stream. This method should only be used if the associatedBufferFileAdapter.isRemote()
is false.- Specified by:
getOutputBlockStream
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
getInputBlockStreamHandle
Description copied from interface:BufferFileHandle
Get 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:
getInputBlockStreamHandle
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
getOutputBlockStreamHandle
Description copied from interface:BufferFileHandle
Get 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:
getOutputBlockStreamHandle
in interfaceBufferFileHandle
- Throws:
IOException
- See Also:
-
getSaveFile
- Specified by:
getSaveFile
in interfaceManagedBufferFileHandle
- Throws:
IOException
- See Also:
-
saveCompleted
- Specified by:
saveCompleted
in interfaceManagedBufferFileHandle
- Throws:
IOException
- See Also:
-
canSave
- Specified by:
canSave
in interfaceManagedBufferFileHandle
- Throws:
IOException
- See Also:
-
setVersionComment
- Specified by:
setVersionComment
in interfaceManagedBufferFileHandle
- Throws:
IOException
- See Also:
-
getNextChangeDataFile
- Specified by:
getNextChangeDataFile
in interfaceManagedBufferFileHandle
- Throws:
IOException
- See Also:
-
getSaveChangeDataFile
- Specified by:
getSaveChangeDataFile
in interfaceManagedBufferFileHandle
- Throws:
IOException
- See Also:
-
getCheckinID
- Specified by:
getCheckinID
in interfaceManagedBufferFileHandle
- Throws:
IOException
- See Also:
-
getForwardModMapData
- Specified by:
getForwardModMapData
in interfaceManagedBufferFileHandle
- Throws:
IOException
- See Also:
-
getInputBlockStream
Description copied from interface:ManagedBufferFileHandle
Provides 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:
getInputBlockStream
in interfaceManagedBufferFileHandle
- Throws:
IOException
- See Also:
-
getInputBlockStreamHandle
BlockStreamHandle<InputBlockStream> getInputBlockStreamHandle(byte[] changeMapData) throws IOException Description copied from interface:ManagedBufferFileHandle
Get 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:
getInputBlockStreamHandle
in interfaceManagedBufferFileHandle
- Throws:
IOException
- See Also:
-