Package db.buffers
Interface RemoteManagedBufferFileHandle
-
- All Superinterfaces:
BufferFileHandle,ManagedBufferFileHandle,java.rmi.Remote
public interface RemoteManagedBufferFileHandle extends ManagedBufferFileHandle, java.rmi.Remote
RemoteManagedBufferFileHandlefacilitates access to a ManagedBufferFile via RMI.Methods from
BufferFileHandleandManagedBufferFilemust 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 toRemoteObjectInvocationHandler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanSave()voidclearParameters()voidclose()booleandelete()voiddispose()DataBufferget(int index)intgetBufferSize()longgetCheckinID()byte[]getForwardModMapData(int oldVersion)int[]getFreeIndexes()intgetIndexCount()InputBlockStreamgetInputBlockStream()Provides local access to an input block stream.InputBlockStreamgetInputBlockStream(byte[] changeMapData)Provides local access to an input block stream for a given change map.BlockStreamHandle<InputBlockStream>getInputBlockStreamHandle()Get an input block stream handle which will facilitate access to a remote InputBlockStream.BlockStreamHandle<InputBlockStream>getInputBlockStreamHandle(byte[] changeMapData)Get an input block stream handle, for a given change map, which will facilitate access to a remote InputBlockStream.BufferFileHandlegetNextChangeDataFile(boolean getFirst)OutputBlockStreamgetOutputBlockStream(int blockCount)Provides local access to an output block stream.BlockStreamHandle<OutputBlockStream>getOutputBlockStreamHandle(int blockCount)Get an output block stream handle which will facilitate access to a remote InputBlockStream.intgetParameter(java.lang.String name)java.lang.String[]getParameterNames()BufferFileHandlegetSaveChangeDataFile()ManagedBufferFileHandlegetSaveFile()booleanisReadOnly()voidput(DataBuffer buf, int index)voidsaveCompleted(boolean commit)voidsetFreeIndexes(int[] indexes)voidsetParameter(java.lang.String name, int value)booleansetReadOnly()voidsetVersionComment(java.lang.String comment)
-
-
-
Method Detail
-
isReadOnly
boolean isReadOnly() throws java.io.IOException- Specified by:
isReadOnlyin interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.isReadOnly()
-
setReadOnly
boolean setReadOnly() throws java.io.IOException- Specified by:
setReadOnlyin interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.setReadOnly()
-
getParameter
int getParameter(java.lang.String name) throws java.util.NoSuchElementException, java.io.IOException- Specified by:
getParameterin interfaceBufferFileHandle- Throws:
java.util.NoSuchElementExceptionjava.io.IOException- See Also:
BufferFile.getParameter(java.lang.String)
-
setParameter
void setParameter(java.lang.String name, int value) throws java.io.IOException- Specified by:
setParameterin interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.setParameter(java.lang.String, int)
-
clearParameters
void clearParameters() throws java.io.IOException- Specified by:
clearParametersin interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.clearParameters()
-
getParameterNames
java.lang.String[] getParameterNames() throws java.io.IOException- Specified by:
getParameterNamesin interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.getParameterNames()
-
getBufferSize
int getBufferSize() throws java.io.IOException- Specified by:
getBufferSizein interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.getBufferSize()
-
getIndexCount
int getIndexCount() throws java.io.IOException- Specified by:
getIndexCountin interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.getIndexCount()
-
getFreeIndexes
int[] getFreeIndexes() throws java.io.IOException- Specified by:
getFreeIndexesin interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.getFreeIndexes()
-
setFreeIndexes
void setFreeIndexes(int[] indexes) throws java.io.IOException- Specified by:
setFreeIndexesin interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.setFreeIndexes(int[])
-
close
void close() throws java.io.IOException- Specified by:
closein interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.close()
-
delete
boolean delete() throws java.io.IOException- Specified by:
deletein interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
}
-
get
DataBuffer get(int index) throws java.io.IOException
- Specified by:
getin interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.get(DataBuffer, int)
-
put
void put(DataBuffer buf, int index) throws java.io.IOException
- Specified by:
putin interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.put(DataBuffer, int)
-
dispose
void dispose() throws java.io.IOException- Specified by:
disposein interfaceBufferFileHandle- Throws:
java.io.IOException- See Also:
BufferFile.dispose()
-
getInputBlockStream
InputBlockStream getInputBlockStream() throws java.io.IOException
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:
java.io.IOException- See Also:
BufferFileAdapter.getInputBlockStream()
-
getOutputBlockStream
OutputBlockStream getOutputBlockStream(int blockCount) throws java.io.IOException
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:
java.io.IOException- See Also:
BufferFileAdapter.getOutputBlockStream(int)
-
getInputBlockStreamHandle
BlockStreamHandle<InputBlockStream> getInputBlockStreamHandle() throws java.io.IOException
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:
java.io.IOException- See Also:
BufferFileAdapter.getInputBlockStream()
-
getOutputBlockStreamHandle
BlockStreamHandle<OutputBlockStream> getOutputBlockStreamHandle(int blockCount) throws java.io.IOException
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:
java.io.IOException- See Also:
BufferFileAdapter.getOutputBlockStream(int)
-
getSaveFile
ManagedBufferFileHandle getSaveFile() throws java.io.IOException
- Specified by:
getSaveFilein interfaceManagedBufferFileHandle- Throws:
java.io.IOException- See Also:
ManagedBufferFile.getSaveFile()
-
saveCompleted
void saveCompleted(boolean commit) throws java.io.IOException- Specified by:
saveCompletedin interfaceManagedBufferFileHandle- Throws:
java.io.IOException- See Also:
ManagedBufferFile.saveCompleted(boolean)
-
canSave
boolean canSave() throws java.io.IOException- Specified by:
canSavein interfaceManagedBufferFileHandle- Throws:
java.io.IOException- See Also:
ManagedBufferFile.canSave()
-
setVersionComment
void setVersionComment(java.lang.String comment) throws java.io.IOException- Specified by:
setVersionCommentin interfaceManagedBufferFileHandle- Throws:
java.io.IOException- See Also:
ManagedBufferFile.setVersionComment(java.lang.String)
-
getNextChangeDataFile
BufferFileHandle getNextChangeDataFile(boolean getFirst) throws java.io.IOException
- Specified by:
getNextChangeDataFilein interfaceManagedBufferFileHandle- Throws:
java.io.IOException- See Also:
ManagedBufferFile.getNextChangeDataFile(boolean)
-
getSaveChangeDataFile
BufferFileHandle getSaveChangeDataFile() throws java.io.IOException
- Specified by:
getSaveChangeDataFilein interfaceManagedBufferFileHandle- Throws:
java.io.IOException- See Also:
ManagedBufferFile.getSaveChangeDataFile()
-
getCheckinID
long getCheckinID() throws java.io.IOException- Specified by:
getCheckinIDin interfaceManagedBufferFileHandle- Throws:
java.io.IOException- See Also:
ManagedBufferFile.getCheckinID()
-
getForwardModMapData
byte[] getForwardModMapData(int oldVersion) throws java.io.IOException- Specified by:
getForwardModMapDatain interfaceManagedBufferFileHandle- Throws:
java.io.IOException- See Also:
ManagedBufferFile.getForwardModMapData(int)
-
getInputBlockStream
InputBlockStream getInputBlockStream(byte[] changeMapData) throws java.io.IOException
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:
java.io.IOException- See Also:
ManagedBufferFileAdapter.getInputBlockStream(byte[])
-
getInputBlockStreamHandle
BlockStreamHandle<InputBlockStream> getInputBlockStreamHandle(byte[] changeMapData) throws java.io.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:
java.io.IOException- See Also:
ManagedBufferFileAdapter.getInputBlockStream(byte[])
-
-